Signed-off-by: Tomek Grabiec <[email protected]>
---
arch/x86/emit-code_32.c | 13 ++++++++++---
1 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/arch/x86/emit-code_32.c b/arch/x86/emit-code_32.c
index 6006336..e5d42a1 100644
--- a/arch/x86/emit-code_32.c
+++ b/arch/x86/emit-code_32.c
@@ -181,12 +181,12 @@ emit_reg_reg(struct buffer *buf, unsigned char opc,
}
static void
-__emit_memdisp_reg(struct buffer *buf, unsigned char opc, unsigned long disp,
- unsigned char reg_opcode)
+__emit_memdisp(struct buffer *buf, unsigned char opc, unsigned long disp,
+ unsigned char reg_opcode)
{
unsigned char mod_rm;
- mod_rm = encode_modrm(0, __encode_reg(reg_opcode), 5);
+ mod_rm = encode_modrm(0, reg_opcode, 5);
emit(buf, opc);
emit(buf, mod_rm);
@@ -194,6 +194,13 @@ __emit_memdisp_reg(struct buffer *buf, unsigned char opc,
unsigned long disp,
}
static void
+__emit_memdisp_reg(struct buffer *buf, unsigned char opc, unsigned long disp,
+ enum machine_reg reg)
+{
+ __emit_memdisp(buf, opc, disp, __encode_reg(reg));
+}
+
+static void
__emit_membase(struct buffer *buf, unsigned char opc,
enum machine_reg base_reg, unsigned long disp,
unsigned char reg_opcode)
--
1.6.0.6
------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises
looking to deploy the next generation of Solaris that includes the latest
innovations from Sun and the OpenSource community. Download a copy and
enjoy capabilities such as Networking, Storage and Virtualization.
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
Jatovm-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jatovm-devel