[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 01/22] tcg-i386: Allocate call-saved registers first
From: |
Richard Henderson |
Subject: |
[Qemu-devel] [PATCH 01/22] tcg-i386: Allocate call-saved registers first. |
Date: |
Tue, 13 Apr 2010 15:23:53 -0700 |
Signed-off-by: Richard Henderson <address@hidden>
---
tcg/i386/tcg-target.c | 13 +++++++++----
1 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/tcg/i386/tcg-target.c b/tcg/i386/tcg-target.c
index e684b33..f5c24f7 100644
--- a/tcg/i386/tcg-target.c
+++ b/tcg/i386/tcg-target.c
@@ -36,16 +36,21 @@ static const char * const
tcg_target_reg_names[TCG_TARGET_NB_REGS] = {
#endif
static const int tcg_target_reg_alloc_order[] = {
- TCG_REG_EAX,
- TCG_REG_EDX,
- TCG_REG_ECX,
TCG_REG_EBX,
TCG_REG_ESI,
TCG_REG_EDI,
TCG_REG_EBP,
+ TCG_REG_ECX,
+ TCG_REG_EDX,
+ TCG_REG_EAX,
+};
+
+static const int tcg_target_call_iarg_regs[3] = {
+ TCG_REG_EAX,
+ TCG_REG_EDX,
+ TCG_REG_ECX
};
-static const int tcg_target_call_iarg_regs[3] = { TCG_REG_EAX, TCG_REG_EDX,
TCG_REG_ECX };
static const int tcg_target_call_oarg_regs[2] = { TCG_REG_EAX, TCG_REG_EDX };
static uint8_t *tb_ret_addr;
--
1.6.6.1
- [Qemu-devel] [PATCH 00/22] tcg-i386 cleanup and improvement, v2, Richard Henderson, 2010/04/28
- [Qemu-devel] [PATCH 02/22] tcg-i386: Tidy initialization of tcg_target_call_clobber_regs., Richard Henderson, 2010/04/28
- [Qemu-devel] [PATCH 13/22] tcg-i386: Tidy push/pop., Richard Henderson, 2010/04/28
- [Qemu-devel] [PATCH 08/22] tcg-i386: Eliminate extra move from qemu_ld64., Richard Henderson, 2010/04/28
- [Qemu-devel] [PATCH 09/22] tcg-i386: Tidy jumps., Richard Henderson, 2010/04/28
- [Qemu-devel] [PATCH 04/22] tcg-i386: Tidy ext8s and ext16s operations., Richard Henderson, 2010/04/28
- [Qemu-devel] [PATCH 03/22] tcg-i386: Tidy ext8u and ext16u operations., Richard Henderson, 2010/04/28
- [Qemu-devel] [PATCH 12/22] tcg-i386: Tidy movi., Richard Henderson, 2010/04/28
- [Qemu-devel] [PATCH 10/22] tcg-i386: Tidy immediate arithmetic operations., Richard Henderson, 2010/04/28
- [Qemu-devel] [PATCH 07/22] tcg-i386: Tidy move operations., Richard Henderson, 2010/04/28
- [Qemu-devel] [PATCH 01/22] tcg-i386: Allocate call-saved registers first.,
Richard Henderson <=
- [Qemu-devel] [PATCH 11/22] tcg-i386: Tidy non-immediate arithmetic operations., Richard Henderson, 2010/04/28
- [Qemu-devel] [PATCH 06/22] tcg-i386: Tidy shift operations., Richard Henderson, 2010/04/28
- [Qemu-devel] [PATCH 17/22] tcg-i386: Tidy unary arithmetic., Richard Henderson, 2010/04/28
- [Qemu-devel] [PATCH 20/22] tcg-i386: Tidy lea., Richard Henderson, 2010/04/28
- [Qemu-devel] [PATCH 19/22] tcg-i386: Tidy xchg., Richard Henderson, 2010/04/28
- [Qemu-devel] [PATCH 22/22] tcg-i386: Tidy data16 prefixes., Richard Henderson, 2010/04/28
- [Qemu-devel] [PATCH 21/22] tcg-i386: Use lea for three-operand add., Richard Henderson, 2010/04/28
- [Qemu-devel] [PATCH 16/22] tcg-i386: Tidy setcc., Richard Henderson, 2010/04/28
- [Qemu-devel] [PATCH 14/22] tcg-i386: Tidy calls., Richard Henderson, 2010/04/28
- [Qemu-devel] [PATCH 15/22] tcg-i386: Tidy ret., Richard Henderson, 2010/04/28