qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Laurent Vivier
Subject: Re: [PATCH v2 5/7] linux-user/nios2: Fix EA vs PC confusion
Date: Wed, 22 Dec 2021 21:20:33 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.4.0

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 PC directly.

This fixes signal entry and return, and eliminates
some slight confusion from target_cpu_copy_regs.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
  linux-user/nios2/cpu_loop.c | 5 +----
  linux-user/nios2/signal.c   | 6 +++---
  2 files changed, 4 insertions(+), 7 deletions(-)


Reviewed-by: Laurent Vivier <laurent@vivier.eu>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]