alignment problem ?
Kiyo Inaba
inaba at src.ricoh.co.jp
Sat Jul 18 02:44:50 PDT 1998
>It seems that Java long (long long) are expected to be aligned to 8 bytes,
...
>Anybody can think of where I should look ?
OK, I got similar problem on m68k. You have to check
resolveObjectFields in kaffe/kaffevm/classMethod.c and if
alignment calculation in this function is funny, you can
define new ALIGNMENT_OF_SIZE macro in 'md.h'.
You can check the result to set bp when getfield or putfield
are executed (which are handled in 'kaffe/kaffevm/kaffe.def')
by comparing,
(void *)sp[0].v.taddr+(finfo.field)->info.boffset
and the address of field in structure.
Kiyo
More information about the kaffe
mailing list