Re: [Qemu-devel] [PATCH] atomic failures on qemu-system-riscv64

2019-06-24 Thread Joel Sing
On 19-06-17 16:52:44, Richard Henderson wrote: > On 6/16/19 12:19 PM, Joel Sing wrote: > > +/* > > + * Clear the load reservation, since an SC must fail if there is > > + * an SC to any address, in between an LR and SC pair. > > + */ > >

[Qemu-devel] [PATCH] atomic failures on qemu-system-riscv64

2019-06-16 Thread Joel Sing
While working on a Go (www.golang.org) port for riscv, I've run into issues with atomics (namely LR/SC) on qemu-system-riscv64. There are several reproducers for this problem including one using gcc builtin atomics: https://gist.github.com/4a6f656c/8433032a3f70893a278259f8108aad90 And a version