Re: [Qemu-devel] [PATCH v3] target/xtensa: linux-user: add call0 ABI support

2019-09-06 Thread Laurent Vivier
Le 06/09/2019 à 18:55, Max Filippov a écrit : > On Fri, Sep 6, 2019 at 2:33 AM Laurent Vivier wrote: >> Le 26/08/2019 à 21:58, Max Filippov a écrit : >>> +#if defined(TARGET_XTENSA) >>> +if (getenv("QEMU_XTENSA_ABI_CALL0")) { >>> +xtensa_set_abi_call0(); >>> +} >> >> Not needed, th

Re: [Qemu-devel] [PATCH v3] target/xtensa: linux-user: add call0 ABI support

2019-09-06 Thread Max Filippov
On Fri, Sep 6, 2019 at 2:33 AM Laurent Vivier wrote: > Le 26/08/2019 à 21:58, Max Filippov a écrit : > > +#if defined(TARGET_XTENSA) > > +if (getenv("QEMU_XTENSA_ABI_CALL0")) { > > +xtensa_set_abi_call0(); > > +} > > Not needed, this is done by parse_args() that checks > getenv(arg

Re: [Qemu-devel] [PATCH v3] target/xtensa: linux-user: add call0 ABI support

2019-09-06 Thread Laurent Vivier
Le 26/08/2019 à 21:58, Max Filippov a écrit : > 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 bin

Re: [Qemu-devel] [PATCH v3] target/xtensa: linux-user: add call0 ABI support

2019-09-05 Thread Max Filippov
Hi Laurent, On Mon, Aug 26, 2019 at 12:58 PM Max Filippov 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 d

[Qemu-devel] [PATCH v3] target/xtensa: linux-user: add call0 ABI support

2019-08-26 Thread Max Filippov
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 -x