Explicit assignment makes things more clear and safer, should the
enumeration change.

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

diff --git a/arch/x86/include/arch/registers_64.h 
b/arch/x86/include/arch/registers_64.h
index a6383be..31a5937 100644
--- a/arch/x86/include/arch/registers_64.h
+++ b/arch/x86/include/arch/registers_64.h
@@ -29,13 +29,13 @@ enum machine_reg {
 
        /* 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_ECX = REG_RCX,
+       REG_EDX = REG_RDX,
+       REG_EBX = REG_RBX,
+       REG_ESI = REG_RSI,
+       RED_EDI = REG_RDI,
        REG_ESP = REG_RSP,
-       REG_EBP,
+       REG_EBP = REG_RBP,
 };
 
 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