* src/vm/jit/x86_64/patcher.c (patcher_putfieldconst): Fixed.
authorStefan Ring <stefan@complang.tuwien.ac.at>
Wed, 18 Jun 2008 19:47:48 +0000 (21:47 +0200)
committerStefan Ring <stefan@complang.tuwien.ac.at>
Wed, 18 Jun 2008 19:47:48 +0000 (21:47 +0200)
src/vm/jit/x86_64/patcher.c

index 0a69cfd973b4d17e4eb6d2d2f459191b1fc7d6fa..be30afa3759f0711b57cb8b7fbf489d81480707f 100644 (file)
@@ -325,9 +325,9 @@ bool patcher_putfieldconst(patchref_t *pr)
        if (IS_2_WORD_TYPE(fi->type) || IS_ADR_TYPE(fi->type)) {
                /* handle special case when the base register is %r12 */
 
-               byte = *(ra + 2);
+               byte = *(ra + 12);
 
-               if (byte == 0x84) {
+               if (byte == 0x94) {
                        *((uint32_t *) (ra + 14))      = fi->offset;
                }
                else {