[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 08/15] tcg-i386: Tidy ret.
From: |
Richard Henderson |
Subject: |
[Qemu-devel] [PATCH 08/15] tcg-i386: Tidy ret. |
Date: |
Fri, 21 May 2010 08:30:28 -0700 |
Define and use OPC_RET.
Signed-off-by: Richard Henderson <address@hidden>
---
tcg/i386/tcg-target.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/tcg/i386/tcg-target.c b/tcg/i386/tcg-target.c
index 28a01f3..c258775 100644
--- 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_out8(s, 0xc3); /* ret */
+ tcg_out_opc(s, OPC_RET);
}
void tcg_target_init(TCGContext *s)
--
1.7.0.1
- [Qemu-devel] [PATCH 00/15] tcg-i386 cleanup and improvement, v3, Richard Henderson, 2010/05/21
- [Qemu-devel] [PATCH 01/15] tcg-i386: Tidy ext8u and ext16u operations., Richard Henderson, 2010/05/21
- [Qemu-devel] [PATCH 02/15] tcg-i386: Tidy ext8s and ext16s operations., Richard Henderson, 2010/05/21
- [Qemu-devel] [PATCH 04/15] tcg-i386: Tidy non-immediate arithmetic operations., Richard Henderson, 2010/05/21
- [Qemu-devel] [PATCH 06/15] tcg-i386: Tidy push/pop., Richard Henderson, 2010/05/21
- [Qemu-devel] [PATCH 03/15] tcg-i386: Tidy immediate arithmetic operations., Richard Henderson, 2010/05/21
- [Qemu-devel] [PATCH 09/15] tcg-i386: Tidy setcc., Richard Henderson, 2010/05/21
- [Qemu-devel] [PATCH 07/15] tcg-i386: Tidy calls., Richard Henderson, 2010/05/21
- [Qemu-devel] [PATCH 08/15] tcg-i386: Tidy ret.,
Richard Henderson <=
- [Qemu-devel] [PATCH 05/15] tcg-i386: Tidy movi., Richard Henderson, 2010/05/21
- [Qemu-devel] [PATCH 12/15] tcg-i386: Tidy xchg., Richard Henderson, 2010/05/21
- [Qemu-devel] [PATCH 10/15] tcg-i386: Tidy unary arithmetic., Richard Henderson, 2010/05/21
- [Qemu-devel] [PATCH 13/15] tcg-i386: Tidy lea., Richard Henderson, 2010/05/21
- [Qemu-devel] [PATCH 11/15] tcg-i386: Tidy multiply., Richard Henderson, 2010/05/21
- [Qemu-devel] [PATCH 14/15] tcg-i386: Use lea for three-operand add., Richard Henderson, 2010/05/21
- [Qemu-devel] [PATCH 15/15] tcg-i386: Nuke trailing whitespace., Richard Henderson, 2010/05/21
- Re: [Qemu-devel] [PATCH 00/15] tcg-i386 cleanup and improvement, v3, Aurelien Jarno, 2010/05/21