Skip to content

Commit

Permalink
tcg-arm: Use R12 for the tcg temporary
Browse files Browse the repository at this point in the history
R12 is call clobbered, while R8 is call saved.  This change
gives tcg one more call saved register for real data.

Reviewed-by: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Richard Henderson <rth@twiddle.net>
  • Loading branch information
rth7680 authored and aurel32 committed Apr 27, 2013
1 parent 4346457 commit 13dd6fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tcg/arm/tcg-target.c
Expand Up @@ -113,7 +113,7 @@ static const int tcg_target_call_oarg_regs[2] = {
TCG_REG_R0, TCG_REG_R1
};

#define TCG_REG_TMP TCG_REG_R8
#define TCG_REG_TMP TCG_REG_R12

static inline void reloc_abs32(void *code_ptr, tcg_target_long target)
{
Expand Down

0 comments on commit 13dd6fb

Please sign in to comment.