Re: [Qemu-devel] [PATCH v3 1/8] target/s390x: Implement CSST

2017-07-15 Thread Aurelien Jarno
On 2017-07-14 14:22, Richard Henderson wrote: > On 07/14/2017 11:01 AM, Aurelien Jarno wrote: > > > +if (parallel_cpus) { > > > +int mask = 0; > > > +#if !defined(CONFIG_ATOMIC64) > > > +mask = -8; > > > +#elif !defined(CONFIG_ATOMIC128) > > > +mask = -16; > > > +#endif

Re: [Qemu-devel] [PATCH v3 1/8] target/s390x: Implement CSST

2017-07-14 Thread Richard Henderson
On 07/14/2017 11:01 AM, Aurelien Jarno wrote: +if (parallel_cpus) { +int mask = 0; +#if !defined(CONFIG_ATOMIC64) +mask = -8; +#elif !defined(CONFIG_ATOMIC128) +mask = -16; +#endif +if (((4 << fc) | (1 << sc)) & mask) { +cpu_loop_exit_atomic(ENV_GET

Re: [Qemu-devel] [PATCH v3 1/8] target/s390x: Implement CSST

2017-07-14 Thread Aurelien Jarno
On 2017-07-10 10:45, Richard Henderson wrote: > Signed-off-by: Richard Henderson > --- > target/s390x/helper.h | 1 + > target/s390x/cpu_models.c | 2 + > target/s390x/mem_helper.c | 189 > + > target/s390x/translate.c | 13 +++- > target

[Qemu-devel] [PATCH v3 1/8] target/s390x: Implement CSST

2017-07-10 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/s390x/helper.h | 1 + target/s390x/cpu_models.c | 2 + target/s390x/mem_helper.c | 189 + target/s390x/translate.c | 13 +++- target/s390x/insn-data.def | 2 + 5 files changed, 206 insertions(+