Re: [Qemu-devel] [PATCH v1 for-2.12 01/15] s390x/tcg: introduce and use program_interrupt_ra()

2017-11-29 Thread Richard Henderson
On 11/28/2017 08:33 PM, David Hildenbrand wrote: > +S390CPU *cpu = s390_env_get_cpu(env); > + > +#ifdef CONFIG_TCG > +if (tcg_enabled() && ra) { > +cpu_restore_state(CPU(cpu), ra); > +} > +#endif FWIW, I have a patch queued for 2.12 that removes the RA != 0 check protecting

Re: [Qemu-devel] [PATCH v1 for-2.12 01/15] s390x/tcg: introduce and use program_interrupt_ra()

2017-11-29 Thread David Hildenbrand
On 29.11.2017 15:55, Cornelia Huck wrote: > On Tue, 28 Nov 2017 21:33:11 +0100 > David Hildenbrand wrote: > >> Allows to easily convert more callers of program_interrupt() and to >> easily introduce new exceptions without forgetting about the cpu state >> reset. >> >> Use

Re: [Qemu-devel] [PATCH v1 for-2.12 01/15] s390x/tcg: introduce and use program_interrupt_ra()

2017-11-29 Thread Cornelia Huck
On Tue, 28 Nov 2017 21:33:11 +0100 David Hildenbrand wrote: > Allows to easily convert more callers of program_interrupt() and to > easily introduce new exceptions without forgetting about the cpu state > reset. > > Use program_interrupt_ra() in places where we already had the

[Qemu-devel] [PATCH v1 for-2.12 01/15] s390x/tcg: introduce and use program_interrupt_ra()

2017-11-28 Thread David Hildenbrand
Allows to easily convert more callers of program_interrupt() and to easily introduce new exceptions without forgetting about the cpu state reset. Use program_interrupt_ra() in places where we already had the same pattern. Signed-off-by: David Hildenbrand ---