Skip to contentSkip to conversation

ppc: Remove redundant macro MSR_BOOK3S_MASK.

PATCH Applied Yonggang Luo 3 participants 3 messages Jul 28, 2022 – Aug 4, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ppc: Remove redundant macro MSR_BOOK3S_MASK.

---
 target/ppc/excp_helper.c | 1 -
 1 file changed, 1 deletion(-)
target/ppc/excp_helper.c +0 -1
index cb752b184a..7550aafed6 100644
@@ -2015,7 +2015,6 @@ void helper_rfi(CPUPPCState *env)
     do_rfi(env, env->spr[SPR_SRR0], env->spr[SPR_SRR1] & 0xfffffffful);
 }
 
-#define MSR_BOOK3S_MASK
 #if defined(TARGET_PPC64)
 void helper_rfid(CPUPPCState *env)
 {
Signature · 1 line
2.36.1.windows.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 10 lines · Yonggang Luo
---
  target/ppc/excp_helper.c | 1 -
  1 file changed, 1 deletion(-)
target/ppc/excp_helper.c +0 -0
index cb752b184a..7550aafed6 100644

target/ppc/excp_helper.c void helper_rfi(CPUPPCState *env) · line 2018

Quoted 4 lines
target/ppc/excp_helper.c +0 -1
@@ -2015,7 +2015,6 @@ void helper_rfi(CPUPPCState *env)
      do_rfi(env, env->spr[SPR_SRR0], env->spr[SPR_SRR1] & 0xfffffffful);
  }
 
-#define MSR_BOOK3S_MASK

The tag was introduced by a2e71b28e832 ("ppc: Fix rfi/rfid/hrfi/... emulation"). Even back then it wasn't being used.

Laurent, I believe this is qemu-trivial material. Let me know if you want me to get it via the ppc tree instead.

Daniel

Quoted 3 lines
target/ppc/excp_helper.c +0 -0
  #if defined(TARGET_PPC64)
  void helper_rfid(CPUPPCState *env)
  {
#2 lore raw
In reply to Yonggang Luo

Le 28/07/2022 à 22:11, Yonggang Luo a écrit :

Quoted 10 lines
---
  target/ppc/excp_helper.c | 1 -
  1 file changed, 1 deletion(-)
target/ppc/excp_helper.c +0 -0
index cb752b184a..7550aafed6 100644

target/ppc/excp_helper.c void helper_rfi(CPUPPCState *env) · line 2020

Quoted 7 lines
target/ppc/excp_helper.c +0 -1
@@ -2015,7 +2015,6 @@ void helper_rfi(CPUPPCState *env)
      do_rfi(env, env->spr[SPR_SRR0], env->spr[SPR_SRR1] & 0xfffffffful);
  }
 
-#define MSR_BOOK3S_MASK
  #if defined(TARGET_PPC64)
  void helper_rfid(CPUPPCState *env)
  {

Applied to my trivial-patches branch.

Thanks,
Laurent