REX prefixes have a base value of 0x40 (i.e. hex), not 40 (i.e. decimal).

Signed-off-by: Eduard - Gabriel Munteanu <[email protected]>
---
 arch/x86/emit-code.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/x86/emit-code.c b/arch/x86/emit-code.c
index 6515624..9f7a46c 100644
--- a/arch/x86/emit-code.c
+++ b/arch/x86/emit-code.c
@@ -1495,7 +1495,7 @@ void *emit_itable_resolver_stub(struct vm_class *vmc,
  * x86-64 code emitters *
  ************************/
 
-#define        REX             40
+#define        REX             0x40
 #define REX_W          (REX | 8)       /* 64-bit operands */
 #define REX_R          (REX | 4)       /* ModRM reg extension */
 #define REX_X          (REX | 2)       /* SIB index extension */
-- 
1.6.0.6


------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have 
the opportunity to enter the BlackBerry Developer Challenge. See full prize 
details at: http://p.sf.net/sfu/blackberry
_______________________________________________
Jatovm-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jatovm-devel

Reply via email to