On Mon, Aug 26, 2019 at 11:17 AM Max Filippov <jcmvb...@gmail.com> wrote: > > Xtensa binaries built for call0 ABI don't rotate register window on > function calls and returns. Invocation of signal handlers from the > kernel is therefore different in windowed and call0 ABIs. > There's currently no way to determine xtensa ELF binary ABI from the > binary itself. Add handler for the --xtensa-abi-call0 command line > parameter/QEMU_XTENSA_ABI_CALL0 envitonment variable to the qemu-user > and record ABI choice. Use it to initialize PS.WOE in xtensa_cpu_reset > and in setup_rt_frame to determine how a signal should be delivered. > > Signed-off-by: Max Filippov <jcmvb...@gmail.com> > --- > Changes v1->v2: > > - move handling of QEMU_XTENSA_ABI_CALL0 to linux-user/main.c > - check xtensa_abi_call0 instead of PS.WOE in the setup_rt_frame
Thought about it some more and decided that checking PS.WOE was a better choice. Will send v3. -- Thanks. -- Max