@@ -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;
Signed-off-by: Richard Henderson <rth@twiddle.net> --- tcg/i386/tcg-target.c | 13 +++++++++---- 1 files changed, 9 insertions(+), 4 deletions(-)