target-mips: mark zero register as unused.
Suggested by Stuart Brady. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7107 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
d9bea11484
commit
f2c94b926c
@ -8497,6 +8497,7 @@ static void mips_tcg_init(void)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
cpu_env = tcg_global_reg_new_ptr(TCG_AREG0, "env");
|
cpu_env = tcg_global_reg_new_ptr(TCG_AREG0, "env");
|
||||||
|
TCGV_UNUSED(cpu_gpr[0]);
|
||||||
for (i = 1; i < 32; i++)
|
for (i = 1; i < 32; i++)
|
||||||
cpu_gpr[i] = tcg_global_mem_new(TCG_AREG0,
|
cpu_gpr[i] = tcg_global_mem_new(TCG_AREG0,
|
||||||
offsetof(CPUState, active_tc.gpr[i]),
|
offsetof(CPUState, active_tc.gpr[i]),
|
||||||
|
Loading…
Reference in New Issue
Block a user