Re: [Qemu-devel] [PATCH 03/11] target/sh4: Handle user-space atomics

2017-07-06 Thread Aurelien Jarno
On 2017-07-05 14:23, Richard Henderson wrote: > For uniprocessors, SH4 uses optimistic restartable atomic sequences. > Upon an interrupt, a real kernel would simply notice magic values in > the registers and reset the PC to the start of the sequence. > > For QEMU, we cannot do this in quite the

[Qemu-devel] [PATCH 03/11] target/sh4: Handle user-space atomics

2017-07-05 Thread Richard Henderson
For uniprocessors, SH4 uses optimistic restartable atomic sequences. Upon an interrupt, a real kernel would simply notice magic values in the registers and reset the PC to the start of the sequence. For QEMU, we cannot do this in quite the same way. Instead, we notice the normal start of such a