mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 10:13:56 -06:00
target/ppc: Remove msr_gs macro
msr_gs macro hides the usage of env->msr, which is a bad behavior Substitute it with FIELD_EX64 calls that explicitly use env->msr as a parameter. Suggested-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Víctor Colombo <victor.colombo@eldorado.org.br> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20220504210541.115256-12-victor.colombo@eldorado.org.br> Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
This commit is contained in:
parent
c354d85828
commit
10b2b37391
3 changed files with 4 additions and 4 deletions
|
@ -233,7 +233,7 @@ int hreg_store_msr(CPUPPCState *env, target_ulong value, int alter_hv)
|
|||
}
|
||||
if ((env->mmu_model == POWERPC_MMU_BOOKE ||
|
||||
env->mmu_model == POWERPC_MMU_BOOKE206) &&
|
||||
((value >> MSR_GS) & 1) != msr_gs) {
|
||||
((value ^ env->msr) & R_MSR_GS_MASK)) {
|
||||
cpu_interrupt_exittb(cs);
|
||||
}
|
||||
if (unlikely((env->flags & POWERPC_FLAG_TGPR) &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue