Skip to content

Commit

Permalink
tcg/ppc: Disable TCG_REG_TB for Power9/Power10
Browse files Browse the repository at this point in the history
This appears to slightly improve performance on power9/10.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
  • Loading branch information
rth7680 committed Oct 22, 2023
1 parent 1958dbb commit cc3f99a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tcg/ppc/tcg-target.c.inc
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
#define TCG_VEC_TMP2 TCG_REG_V1

#define TCG_REG_TB TCG_REG_R31
#define USE_REG_TB (TCG_TARGET_REG_BITS == 64)
#define USE_REG_TB (TCG_TARGET_REG_BITS == 64 && !have_isa_3_00)

/* Shorthand for size of a pointer. Avoid promotion to unsigned. */
#define SZP ((int)sizeof(void *))
Expand Down

0 comments on commit cc3f99a

Please sign in to comment.