qemu-ppc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v3 17/21] target/ppc: Remove msr_fe0 and msr_fe1 macros


From: Richard Henderson
Subject: Re: [PATCH v3 17/21] target/ppc: Remove msr_fe0 and msr_fe1 macros
Date: Tue, 3 May 2022 19:08:56 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0

On 5/3/22 13:24, Víctor Colombo wrote:
msr_fe0 and msr_fe1 macros hide 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>

---

v3: Added a combined macro for FE0 and FE1. Use it to simplify
     conditionals. Removed Richard's R-b because of this change.
Signed-off-by: Víctor Colombo<victor.colombo@eldorado.org.br>
---
  target/ppc/cpu.h         | 11 +++++++++--
  target/ppc/excp_helper.c | 18 ++++++------------
  2 files changed, 15 insertions(+), 14 deletions(-)

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

r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]