This provides reg_type() on x86-64, as required by other code.
Signed-off-by: Eduard - Gabriel Munteanu <[email protected]>
---
arch/x86/registers_64.c | 23 +++++++++++++++++++++++
1 files changed, 23 insertions(+), 0 deletions(-)
diff --git a/arch/x86/registers_64.c b/arch/x86/registers_64.c
index 7a3dd0e..192c0ac 100644
--- a/arch/x86/registers_64.c
+++ b/arch/x86/registers_64.c
@@ -25,6 +25,24 @@
*/
#include "arch/registers.h"
+#include "jit/vars.h"
+
+static enum machine_reg_type register_types[] = {
+ [REG_RAX] = REG_TYPE_GPR,
+ [REG_RBX] = REG_TYPE_GPR,
+ [REG_RCX] = REG_TYPE_GPR,
+ [REG_RDX] = REG_TYPE_GPR,
+ [REG_RDI] = REG_TYPE_GPR,
+ [REG_RSI] = REG_TYPE_GPR,
+ [REG_R8] = REG_TYPE_GPR,
+ [REG_R9] = REG_TYPE_GPR,
+ [REG_R10] = REG_TYPE_GPR,
+ [REG_R11] = REG_TYPE_GPR,
+ [REG_R12] = REG_TYPE_GPR,
+ [REG_R13] = REG_TYPE_GPR,
+ [REG_R14] = REG_TYPE_GPR,
+ [REG_R15] = REG_TYPE_GPR,
+};
static const char *register_names[] = {
[REG_RAX] = "RAX",
@@ -52,3 +70,8 @@ const char *reg_name(enum machine_reg reg)
return register_names[reg];
}
+
+enum machine_reg_type reg_type(enum machine_reg reg)
+{
+ return register_types[reg];
+}
--
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