qemu-s390x
[Top][All Lists]
Advanced

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

Re: [PATCH v2] s390x/tcg: clear local interrupts on reset normal


From: Philippe Mathieu-Daudé
Subject: Re: [PATCH v2] s390x/tcg: clear local interrupts on reset normal
Date: Fri, 6 Dec 2019 15:26:55 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2

On 12/6/19 2:54 PM, Cornelia Huck wrote:
We neglected to clean up pending interrupts and emergency signals;
fix that.

Signed-off-by: Cornelia Huck <address@hidden>
---

v1->v2:
- rebased on top of my s390-next branch; we can now move the fields
   to be reset instead of clearing them manually

Yep, much cleaner than v1 :)

Further cleanup possible in a follow-up patch.

---
  target/s390x/cpu.h | 8 ++++----
  1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/target/s390x/cpu.h b/target/s390x/cpu.h
index 7f5fa1d35b73..e195e5c7c8bb 100644
--- a/target/s390x/cpu.h
+++ b/target/s390x/cpu.h
@@ -98,10 +98,6 @@ struct CPUS390XState {
uint64_t cregs[16]; /* control registers */ - int pending_int;
-    uint16_t external_call_addr;
-    DECLARE_BITMAP(emergency_signals, S390_MAX_CPUS);
-
      uint64_t ckc;
      uint64_t cputm;
      uint32_t todpr;
@@ -117,6 +113,10 @@ struct CPUS390XState {
      struct {} start_normal_reset_fields;
      uint8_t riccb[64];     /* runtime instrumentation control */
+ int pending_int;
+    uint16_t external_call_addr;
+    DECLARE_BITMAP(emergency_signals, S390_MAX_CPUS);
+
      /* Fields up to this point are cleared by a CPU reset */
      struct {} end_reset_fields;




reply via email to

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