Skip to contentSkip to conversation

target/ppc: Fix msgclrp interrupt type

PATCH Applied Nicholas Piggin 3 participants 3 messages May 30, 2023 – Jun 5, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 target/ppc: Fix msgclrp interrupt type

msgclrp matches msgsndp and should clear PPC_INTERRUPT_DOORBELL.

---
 target/ppc/excp_helper.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
target/ppc/excp_helper.c +1 -1
index add2bc6bfe..c13f2afa04 100644
@@ -3068,7 +3068,7 @@ void helper_book3s_msgclrp(CPUPPCState *env, target_ulong rb)
         return;
     }
 
-    ppc_set_irq(env_archcpu(env), PPC_INTERRUPT_HDOORBELL, 0);
+    ppc_set_irq(env_archcpu(env), PPC_INTERRUPT_DOORBELL, 0);
 }
 
 /*
Signature · 1 line
2.40.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 3 lines · Nicholas Piggin

msgclrp matches msgsndp and should clear PPC_INTERRUPT_DOORBELL.

Thanks,

C.

Quoted 17 lines
---
  target/ppc/excp_helper.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
target/ppc/excp_helper.c +1 -1
index add2bc6bfe..c13f2afa04 100644
@@ -3068,7 +3068,7 @@ void helper_book3s_msgclrp(CPUPPCState *env, target_ulong rb)
          return;
      }
 
-    ppc_set_irq(env_archcpu(env), PPC_INTERRUPT_HDOORBELL, 0);
+    ppc_set_irq(env_archcpu(env), PPC_INTERRUPT_DOORBELL, 0);
  }
 
  /*
#2 lore raw
In reply to Nicholas Piggin
Quoted 4 lines · Nicholas Piggin

msgclrp matches msgsndp and should clear PPC_INTERRUPT_DOORBELL.

---

Queued in gitlab.com/danielhb/qemu/tree/ppc-next. Thanks,

Daniel

Quoted 16 lines
  target/ppc/excp_helper.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
target/ppc/excp_helper.c +1 -1
index add2bc6bfe..c13f2afa04 100644
@@ -3068,7 +3068,7 @@ void helper_book3s_msgclrp(CPUPPCState *env, target_ulong rb)
          return;
      }
 
-    ppc_set_irq(env_archcpu(env), PPC_INTERRUPT_HDOORBELL, 0);
+    ppc_set_irq(env_archcpu(env), PPC_INTERRUPT_DOORBELL, 0);
  }
 
  /*