Message ID | 1391179418-13422-3-git-send-email-rth@twiddle.net |
---|---|
State | New |
Headers | show |
On Fri, Jan 31, 2014 at 08:43:35AM -0600, Richard Henderson wrote: > These are not needed by users of tcg-target.h. No need to recompile > when we adjust them. > > Signed-off-by: Richard Henderson <rth@twiddle.net> > --- > tcg/i386/tcg-target.c | 4 ++++ > tcg/i386/tcg-target.h | 3 --- > 2 files changed, 4 insertions(+), 3 deletions(-) > > diff --git a/tcg/i386/tcg-target.c b/tcg/i386/tcg-target.c > index 5d4cf93..7008b0e 100644 > --- a/tcg/i386/tcg-target.c > +++ b/tcg/i386/tcg-target.c > @@ -88,6 +88,10 @@ static const int tcg_target_call_oarg_regs[] = { > #endif > }; > > +/* Constants we accept. */ > +#define TCG_CT_CONST_S32 0x100 > +#define TCG_CT_CONST_U32 0x200 > + > /* Registers used with L constraint, which are the first argument > registers on x86_64, and two random call clobbered registers on > i386. */ > diff --git a/tcg/i386/tcg-target.h b/tcg/i386/tcg-target.h > index 92c0fcd..747b797 100644 > --- a/tcg/i386/tcg-target.h > +++ b/tcg/i386/tcg-target.h > @@ -64,9 +64,6 @@ typedef enum { > TCG_REG_RDI = TCG_REG_EDI, > } TCGReg; > > -#define TCG_CT_CONST_S32 0x100 > -#define TCG_CT_CONST_U32 0x200 > - > /* used for function call generation */ > #define TCG_REG_CALL_STACK TCG_REG_ESP > #define TCG_TARGET_STACK_ALIGN 16 Reviewed-by: Aurelien Jarno <aurelien@aurel32.net>
diff --git a/tcg/i386/tcg-target.c b/tcg/i386/tcg-target.c index 5d4cf93..7008b0e 100644 --- a/tcg/i386/tcg-target.c +++ b/tcg/i386/tcg-target.c @@ -88,6 +88,10 @@ static const int tcg_target_call_oarg_regs[] = { #endif }; +/* Constants we accept. */ +#define TCG_CT_CONST_S32 0x100 +#define TCG_CT_CONST_U32 0x200 + /* Registers used with L constraint, which are the first argument registers on x86_64, and two random call clobbered registers on i386. */ diff --git a/tcg/i386/tcg-target.h b/tcg/i386/tcg-target.h index 92c0fcd..747b797 100644 --- a/tcg/i386/tcg-target.h +++ b/tcg/i386/tcg-target.h @@ -64,9 +64,6 @@ typedef enum { TCG_REG_RDI = TCG_REG_EDI, } TCGReg; -#define TCG_CT_CONST_S32 0x100 -#define TCG_CT_CONST_U32 0x200 - /* used for function call generation */ #define TCG_REG_CALL_STACK TCG_REG_ESP #define TCG_TARGET_STACK_ALIGN 16
These are not needed by users of tcg-target.h. No need to recompile when we adjust them. Signed-off-by: Richard Henderson <rth@twiddle.net> --- tcg/i386/tcg-target.c | 4 ++++ tcg/i386/tcg-target.h | 3 --- 2 files changed, 4 insertions(+), 3 deletions(-)