projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aadb21a
)
tcg-i386: Tidy ret.
author
Richard Henderson
<rth@twiddle.net>
Fri, 21 May 2010 15:30:28 +0000
(08:30 -0700)
committer
Aurelien Jarno
<aurelien@aurel32.net>
Fri, 21 May 2010 16:20:22 +0000
(16:20 +0000)
Define and use OPC_RET.
Signed-off-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
tcg/i386/tcg-target.c
patch
|
blob
|
history
diff --git
a/tcg/i386/tcg-target.c
b/tcg/i386/tcg-target.c
index efc2a82dbf475ca5408430174aa8a1738dee7d2f..59f88f32851f478d1c824faaf17b59c71f5c3f32 100644
(file)
--- a/
tcg/i386/tcg-target.c
+++ b/
tcg/i386/tcg-target.c
@@
-183,6
+183,7
@@
static inline int tcg_target_const_match(tcg_target_long val,
#define OPC_PUSH_r32 (0x50)
#define OPC_PUSH_Iv (0x68)
#define OPC_PUSH_Ib (0x6a)
+#define OPC_RET (0xc3)
#define OPC_SHIFT_1 (0xd1)
#define OPC_SHIFT_Ib (0xc1)
#define OPC_SHIFT_cl (0xd3)
@@
-1405,7
+1406,7
@@
void tcg_target_qemu_prologue(TCGContext *s)
for(i = ARRAY_SIZE(tcg_target_callee_save_regs) - 1; i >= 0; i--) {
tcg_out_pop(s, tcg_target_callee_save_regs[i]);
}
- tcg_out
8(s, 0xc3); /* ret */
+ tcg_out
_opc(s, OPC_RET);
}
void tcg_target_init(TCGContext *s)