Re: [PATCH for-9.2 02/10] target/s390: Convert CPU to Resettable interface

2024-08-23 Thread Peter Maydell
On Fri, 23 Aug 2024 at 18:45, Nina Schoetterl-Glausch wrote: > > On Tue, 2024-08-13 at 17:52 +0100, Peter Maydell wrote: > > Convert the s390 CPU to the Resettable interface. This is slightly > > more involved than the other CPU types were (see commits > > 9130cade5fc22..d66e64dd006df) because S

Re: [PATCH for-9.2 02/10] target/s390: Convert CPU to Resettable interface

2024-08-23 Thread Nina Schoetterl-Glausch
On Tue, 2024-08-13 at 17:52 +0100, Peter Maydell wrote: > Convert the s390 CPU to the Resettable interface. This is slightly > more involved than the other CPU types were (see commits > 9130cade5fc22..d66e64dd006df) because S390 has its own set of > different kinds of reset with different behaviou

Re: [PATCH for-9.2 02/10] target/s390: Convert CPU to Resettable interface

2024-08-14 Thread Thomas Huth
On 14/08/2024 01.03, Richard Henderson wrote: On 8/14/24 02:52, Peter Maydell wrote:   static void sigp_cpu_reset(CPUState *cs, run_on_cpu_data arg)   { -    S390CPU *cpu = S390_CPU(cs); -    S390CPUClass *scc = S390_CPU_GET_CLASS(cpu);   SigpInfo *si = arg.host_ptr;   cpu_synchronize_st

Re: [PATCH for-9.2 02/10] target/s390: Convert CPU to Resettable interface

2024-08-13 Thread Richard Henderson
On 8/14/24 02:52, Peter Maydell wrote: static void sigp_cpu_reset(CPUState *cs, run_on_cpu_data arg) { -S390CPU *cpu = S390_CPU(cs); -S390CPUClass *scc = S390_CPU_GET_CLASS(cpu); SigpInfo *si = arg.host_ptr; cpu_synchronize_state(cs); -scc->reset(cs, S390_CPU_RESET

[PATCH for-9.2 02/10] target/s390: Convert CPU to Resettable interface

2024-08-13 Thread Peter Maydell
Convert the s390 CPU to the Resettable interface. This is slightly more involved than the other CPU types were (see commits 9130cade5fc22..d66e64dd006df) because S390 has its own set of different kinds of reset with different behaviours that it needs to trigger. We handle this by adding these res