mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 08:43:55 -06:00
tcg/mips: Move TCG_GUEST_BASE_REG to S7
No functional change; just moving the saved reserved regs to the end. Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
d721cc94b2
commit
43b4cd9713
1 changed files with 2 additions and 2 deletions
|
@ -86,7 +86,7 @@ static const char * const tcg_target_reg_names[TCG_TARGET_NB_REGS] = {
|
||||||
#define TCG_TMP3 TCG_REG_T7
|
#define TCG_TMP3 TCG_REG_T7
|
||||||
|
|
||||||
#ifndef CONFIG_SOFTMMU
|
#ifndef CONFIG_SOFTMMU
|
||||||
#define TCG_GUEST_BASE_REG TCG_REG_S1
|
#define TCG_GUEST_BASE_REG TCG_REG_S7
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* check if we really need so many registers :P */
|
/* check if we really need so many registers :P */
|
||||||
|
@ -2190,7 +2190,7 @@ static const int tcg_target_callee_save_regs[] = {
|
||||||
TCG_REG_S4,
|
TCG_REG_S4,
|
||||||
TCG_REG_S5,
|
TCG_REG_S5,
|
||||||
TCG_REG_S6,
|
TCG_REG_S6,
|
||||||
TCG_REG_S7,
|
TCG_REG_S7, /* used for guest_base */
|
||||||
TCG_REG_S8, /* used for the global env (TCG_AREG0) */
|
TCG_REG_S8, /* used for the global env (TCG_AREG0) */
|
||||||
TCG_REG_RA, /* should be last for ABI compliance */
|
TCG_REG_RA, /* should be last for ABI compliance */
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue