Commit c08cd184 broke building on x86-64 because it introduced
references to REG_Exx registers in common code. This fixes the issue by
defining the REG_Exx registers on x86-64 as aliases for their 64-bit
versions, i.e. REG_Rxx.

Signed-off-by: Eduard - Gabriel Munteanu <[email protected]>
---
 arch/x86/include/arch/registers_64.h |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/arch/x86/include/arch/registers_64.h 
b/arch/x86/include/arch/registers_64.h
index 0e7933e..4459383 100644
--- a/arch/x86/include/arch/registers_64.h
+++ b/arch/x86/include/arch/registers_64.h
@@ -25,6 +25,16 @@ enum machine_reg {
        REG_RSP = NR_REGISTERS, /* R4 */
        REG_RBP, /* R5 */
        REG_UNASSIGNED = ~0UL,
+
+       /* Aliases that aid the reuse of code from x86-32. */
+       REG_EAX = REG_RAX,
+       REG_ECX,
+       REG_EDX,
+       REG_EBX,
+       REG_ESI,
+       RED_EDI,
+       REG_ESP = REG_RSP,
+       REG_EBP,
 };
 
 const char *reg_name(enum machine_reg reg);
-- 
1.6.0.6


------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
Jatovm-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jatovm-devel

Reply via email to