On 6/28/21 8:31 AM, Peter Maydell wrote:
On Sun, 20 Jun 2021 at 23:15, Richard Henderson
<[email protected]> wrote:

Direct assignments to env during translation do not work.

As it happens, the only way we can get here is if env->pc
is already set to dc->pc.

More to the point, t_gen_helper_raise_exception() does
     tcg_gen_movi_tl(dc->cpu_R[R_PC], dc->pc);
before raising the exception (as you would expect it to).

Ah, didn't notice that.  My comment works from the other direction:

Within the page, 0x1000-0x1fff, any insn executed will raise the 0xaa exception, which means pc will be set for that insn.


r~

Reply via email to