On 5/3/22 13:24, Víctor Colombo wrote:
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.hender...@linaro.org>
Signed-off-by: Víctor Colombo<victor.colo...@eldorado.org.br>

---

v3: Fix
     !(value & env->msr & R_MSR_GS_MASK) -> (value ^ env->msr) & R_MSR_GS_MASK
Signed-off-by: Víctor Colombo<victor.colo...@eldorado.org.br>
---
  target/ppc/cpu.h         | 2 +-
  target/ppc/helper_regs.c | 2 +-
  target/ppc/mmu_helper.c  | 4 ++--
  3 files changed, 4 insertions(+), 4 deletions(-)

Reviewed-by: Richard Henderson <richard.hender...@linaro.org>

r~

Reply via email to