diff mbox series

[for-4.0,v2,02/37] tcg/i386: Move TCG_REG_CALL_STACK from define to enum

Message ID 20181123144558.5048-3-richard.henderson@linaro.org
State Superseded
Headers show
Series tcg: Assorted cleanups | expand

Commit Message

Richard Henderson Nov. 23, 2018, 2:45 p.m. UTC
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>

---
 tcg/i386/tcg-target.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.17.2

Comments

Alex Bennée Nov. 29, 2018, 12:52 p.m. UTC | #1
Richard Henderson <richard.henderson@linaro.org> writes:

> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>


Reviewed-by: Alex Bennée <alex.bennee@linaro.org>


> ---

>  tcg/i386/tcg-target.h | 2 +-

>  1 file changed, 1 insertion(+), 1 deletion(-)

>

> diff --git a/tcg/i386/tcg-target.h b/tcg/i386/tcg-target.h

> index 7488c3d869..2441658865 100644

> --- a/tcg/i386/tcg-target.h

> +++ b/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)

>  #define TCG_TARGET_CALL_STACK_OFFSET 32



--
Alex Bennée
diff mbox series

Patch

diff --git a/tcg/i386/tcg-target.h b/tcg/i386/tcg-target.h
index 7488c3d869..2441658865 100644
--- a/tcg/i386/tcg-target.h
+++ b/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)
 #define TCG_TARGET_CALL_STACK_OFFSET 32