[kaffe] CVS kaffe (hkraemer): fixed passing of register ids in move_register
Kaffe CVS
cvs-commits at kaffe.org
Fri Jul 30 08:22:58 PDT 2004
PatchSet 5032
Date: 2004/07/30 15:13:34
Author: hkraemer
Branch: HEAD
Tag: (none)
Log:
fixed passing of register ids in move_register
Members:
ChangeLog:1.2590->1.2591
kaffe/kaffevm/jit3/registers.c:1.15->1.16
Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.2590 kaffe/ChangeLog:1.2591
--- kaffe/ChangeLog:1.2590 Fri Jul 30 15:01:37 2004
+++ kaffe/ChangeLog Fri Jul 30 15:13:34 2004
@@ -1,5 +1,10 @@
2004-07-30 Helmer Kraemer <hkraemer at freenet.de>
+ * kaffe/kaffevm/jit3/registers.c (move_register): fixed passing of
+ register ids to the backend
+
+2004-07-30 Helmer Kraemer <hkraemer at freenet.de>
+
* kaffe/kaffevm/kaffe.def (GETSTATIC): treat static final fields of
initialized classes as constants
Index: kaffe/kaffe/kaffevm/jit3/registers.c
diff -u kaffe/kaffe/kaffevm/jit3/registers.c:1.15 kaffe/kaffe/kaffevm/jit3/registers.c:1.16
--- kaffe/kaffe/kaffevm/jit3/registers.c:1.15 Tue Jul 6 15:57:15 2004
+++ kaffe/kaffe/kaffevm/jit3/registers.c Fri Jul 30 15:13:36 2004
@@ -42,7 +42,7 @@
*/
kregs reginfo[] = {
REGISTER_SET
- { /* BAD */ 0, 0, 0, 0, 0, 0 }
+ { /* BAD */ 0, 0, 0, 0, 0, 0, 0 }
};
/**
@@ -210,35 +210,35 @@
{
#if defined(HAVE_move_register_long)
if (reginfo[toreg].type & Rlong) {
- HAVE_move_register_long(toreg, fromreg);
+ HAVE_move_register_long(reginfo[toreg].regno, reginfo[fromreg].regno);
return (1);
}
else
#endif
#if defined(HAVE_move_register_int)
if (reginfo[toreg].type & (Rint|Rsubint)) {
- HAVE_move_register_int(toreg, fromreg);
+ HAVE_move_register_int(reginfo[toreg].regno, reginfo[fromreg].regno);
return (1);
}
else
#endif
#if defined(HAVE_move_register_ref)
if (reginfo[toreg].type & Rref) {
- HAVE_move_register_ref(toreg, fromreg);
+ HAVE_move_register_ref(reginfo[toreg].regno, reginfo[fromreg].regno);
return (1);
}
else
#endif
#if defined(HAVE_move_register_double)
if (reginfo[toreg].type & Rdouble) {
- HAVE_move_register_double(toreg, fromreg);
+ HAVE_move_register_double(reginfo[toreg].regno, reginfo[fromreg].regno);
return (1);
}
else
#endif
#if defined(HAVE_move_register_float)
if (reginfo[toreg].type & Rfloat) {
- HAVE_move_register_float(toreg, fromreg);
+ HAVE_move_register_float(reginfo[toreg].regno, reginfo[fromreg].regno);
return (1);
}
else
More information about the kaffe
mailing list