Re: [Qemu-devel] Broken SuperH atomics in qemu app-level emulation

2015-05-21 Thread Aurelien Jarno
On 2015-05-20 12:16, Richard Henderson wrote: > On 05/17/2015 08:05 PM, Rich Felker wrote: > > At the very least qemu-sh4 should provide a correct value of AT_HWCAP > > so we get working atomics with -cpu SH7785. And since the GUSA atomic > > model can't work with app-level emulation, I really thin

Re: [Qemu-devel] Broken SuperH atomics in qemu app-level emulation

2015-05-20 Thread Richard Henderson
On 05/17/2015 08:05 PM, Rich Felker wrote: > At the very least qemu-sh4 should provide a correct value of AT_HWCAP > so we get working atomics with -cpu SH7785. And since the GUSA atomic > model can't work with app-level emulation, I really think qemu-sh4 > should either default to -cpu SH7785 or a

[Qemu-devel] Broken SuperH atomics in qemu app-level emulation

2015-05-17 Thread Rich Felker
While testing the inline sh4a atomics patch for musl (see http://www.openwall.com/lists/musl/2015/05/17/22) I noticed that qemu-sh4 crashed on the instructions used for atomics, which are only available in sh4a. Adding -cpu SH7785 made it work, but that got me wondering what's happening when we don