[kaffe] PATCH: consistently separate jitter and backend register ID

Casey Marshall rsdio at metastatic.org
Mon Mar 8 10:42:02 PST 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi.

Working on the MIPS JIT3 I have made some small changes to the
architechture-independent register code for JIT3 that at least allow
the MIPS JIT to pass all the tests in test/internal. To summarize,
slotRegister now returns the `jitter ID' of the assigned register (the
index into the reginfo array), instead of the `backend ID'. All code
that depends on the former is unchanged, and all code that depends on
the latter now uses a new macro, `slotRegisterRegister', that is
equivalent to slotRegister, but returns the backend ID.

These changes are thankfully small, and do not break the x86 JIT at
least. There may be other code that needs `slotRegisterRegister'
instead of `slotRegister' now, and I of course welcome suggestions for
a better name (that is, unless you prefer that a wise-ass names
things).

This doesn't yet fix the MIPS JIT, but that is coming along. Next is
to fix floating-point comparisons.

2004-03-08  Casey Marshall <rsdio at metastatic.org>

	* config/mips/jit3-mips.def:
	(pushl_xRC): use slotRegisterRegister.
        (fpushl_xRC): likewise.

	* kaffe/kaffevm/register.c:
        (slotRegister): return jitter ID, not backend ID.

	* kaffe/kaffevm/register.h:
        (slotRegisterRegister): new macro.
        Replace instances of `slotRegister' with
        `slotRegisterRegister' througout.

Cheers,

- -- 
Casey Marshall || rsdio at metastatic.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.7 <http://mailcrypt.sourceforge.net/>

iD8DBQFATL4XgAuWMgRGsWsRAg1HAJ9rgHmwyfHq0Ncn6geE05KBz1a5EQCcDZ7h
W+6u7OGR/S3SqFTQlgJ8FwQ=
=Qgpa
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mips-registers.patch
Type: text/x-patch
Size: 9146 bytes
Desc: not available
Url : http://pogo.kaffe.org/pipermail/kaffe/attachments/20040308/21ece7c7/mips-registers-0002.bin


More information about the kaffe mailing list