Re: [PATCH v2 5/7] linux-user/nios2: Fix EA vs PC confusion

2022-01-05 Thread Laurent Vivier
Le 21/12/2021 à 03:50, Richard Henderson a écrit : The real kernel will talk about the user PC as EA, because that's where the hardware will have copied it, and where it expects to put it to then use ERET. But qemu does not emulate all of the exception stuff while emulating user-only. Manipulate

Re: [PATCH v2 5/7] linux-user/nios2: Fix EA vs PC confusion

2021-12-22 Thread Laurent Vivier
Le 21/12/2021 à 03:50, Richard Henderson a écrit : The real kernel will talk about the user PC as EA, because that's where the hardware will have copied it, and where it expects to put it to then use ERET. But qemu does not emulate all of the exception stuff while emulating user-only. Manipulate

[PATCH v2 5/7] linux-user/nios2: Fix EA vs PC confusion

2021-12-20 Thread Richard Henderson
The real kernel will talk about the user PC as EA, because that's where the hardware will have copied it, and where it expects to put it to then use ERET. But qemu does not emulate all of the exception stuff while emulating user-only. Manipulate PC directly. This fixes signal entry and return, an