From 091b4fa1ff1b5a49717ae7a53fccc9f48f4ae74b Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Tue, 18 Dec 2018 05:13:45 -0500 Subject: [PATCH] tcg/i386: Move TCG_REG_CALL_STACK from define to enum Backports commit 66c0285df4270d184afce5ac8b97ac175c89562f from qemu --- qemu/tcg/i386/tcg-target.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qemu/tcg/i386/tcg-target.h b/qemu/tcg/i386/tcg-target.h index 4e174583..998d1854 100644 --- a/qemu/tcg/i386/tcg-target.h +++ b/qemu/tcg/i386/tcg-target.h @@ -86,10 +86,10 @@ typedef enum { TCG_REG_RDI = TCG_REG_EDI, TCG_AREG0 = TCG_REG_EBP, + TCG_REG_CALL_STACK = TCG_REG_ESP } TCGReg; /* used for function call generation */ -#define TCG_REG_CALL_STACK TCG_REG_ESP #define TCG_TARGET_STACK_ALIGN 16 #if defined(_WIN64) || (defined(__CYGWIN__) && defined(__x86_64__)) #define TCG_TARGET_CALL_STACK_OFFSET 32