# Patch created by kt # Date: Di 15. Jan 22:11:02 CET 2008 # Repository: libjit # Comments: # # Fix a bug with memindex adressing if the displacement is greater than 255. # Now always BP is used (register no. 5) instead of the basereg. #### End of Preamble #### #### Patch data follows #### Index: jit/jit-gen-x86.h =================================================================== RCS file: /cvsroot/dotgnu-pnet/libjit/jit/jit-gen-x86.h,v retrieving revision 1.7 diff -c -r1.7 jit-gen-x86.h *** jit/jit-gen-x86.h 23 Dec 2007 18:18:45 -0000 1.7 --- jit/jit-gen-x86.h 15 Jan 2008 21:11:08 -0000 *************** *** 312,318 **** x86_imm_emit8 ((inst), (disp)); \ } else { \ x86_address_byte ((inst), 2, (r), 4); \ ! x86_address_byte ((inst), (shift), (indexreg), 5); \ x86_imm_emit32 ((inst), (disp)); \ } \ } while (0) --- 312,318 ---- x86_imm_emit8 ((inst), (disp)); \ } else { \ x86_address_byte ((inst), 2, (r), 4); \ ! x86_address_byte ((inst), (shift), (indexreg), (basereg)); \ x86_imm_emit32 ((inst), (disp)); \ } \ } while (0) #### End of Patch data ####