qemu-ppc
[Top][All Lists]
Advanced

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

Re: [PATCH v2 13/21] target/ppc: Remove msr_me macro


From: Richard Henderson
Subject: Re: [PATCH v2 13/21] target/ppc: Remove msr_me macro
Date: Mon, 2 May 2022 14:59:00 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0

On 5/2/22 14:38, Richard Henderson wrote:
On 5/2/22 07:39, Víctor Colombo wrote:
msr_me 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>

---

v2: Remove M_MSR_CM and use FIELD_EX64 instead
Signed-off-by: Víctor Colombo <victor.colombo@eldorado.org.br>
---
  target/ppc/cpu.h        | 2 +-
  target/ppc/mmu_common.c | 2 +-
  target/ppc/mmu_helper.c | 2 +-
  3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/target/ppc/cpu.h b/target/ppc/cpu.h
index 294c61c9dc..8e652691cf 100644
--- a/target/ppc/cpu.h
+++ b/target/ppc/cpu.h
@@ -354,6 +354,7 @@ typedef enum {
  #define MSR_RI   1  /* Recoverable interrupt                        1        
*/
  #define MSR_LE   0  /* Little-endian mode                           1 hflags 
*/
+FIELD(MSR, CM, MSR_CM, 1)

Patch title is wrong.

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

r~



reply via email to

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