Re: [Qemu-devel] [PATCH 0/3] linux-user/sparc: Fixes for clone

2018-07-31 Thread Alex Bennée
Richard Henderson writes: > There are at least 4 separate bugs preventing clone from working. > > (1) cpu_copy left both cpus sharing the same register window (!) > > (2) cpu_clone_regs did not initialize %o1, so the new thread path > in the guest __clone was always taken, even for the pare

[Qemu-devel] [PATCH 0/3] linux-user/sparc: Fixes for clone

2018-07-30 Thread Richard Henderson
There are at least 4 separate bugs preventing clone from working. (1) cpu_copy left both cpus sharing the same register window (!) (2) cpu_clone_regs did not initialize %o1, so the new thread path in the guest __clone was always taken, even for the parent (old %o1 value was newsp, and so