Skip to content

Commit

Permalink
tcg/i386: Move TCG_CT_CONST_* to tcg-target.c
Browse files Browse the repository at this point in the history
These are not needed by users of tcg-target.h.  No need to recompile
when we adjust them.

Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Richard Henderson <rth@twiddle.net>
  • Loading branch information
rth7680 committed Feb 17, 2014
1 parent 189f792 commit a1b29c9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 4 additions & 0 deletions tcg/i386/tcg-target.c
Expand Up @@ -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. */
Expand Down
3 changes: 0 additions & 3 deletions tcg/i386/tcg-target.h
Expand Up @@ -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
Expand Down

0 comments on commit a1b29c9

Please sign in to comment.