Re: [PATCH v2 08/15] target/m68k: Fix address argument for EXCP_TRACE

2021-12-03 Thread Richard Henderson
On 12/2/21 12:48 PM, Richard Henderson wrote: +static void gen_raise_exception_format2(DisasContext *s, int nr) +{ +/* + * Pass the address of the insn to the exception handler, + * for recording in the Format $2 (6-word) stack frame. + * Re-use mmu.ar for the purpose, since that'

[PATCH v2 08/15] target/m68k: Fix address argument for EXCP_TRACE

2021-12-02 Thread Richard Henderson
According to the M68040 Users Manual, section 8.4.3, Six word stack frame (format 2), Trace (and others) is supposed to record the next insn in PC and the address of the trapping instruction in ADDRESS. Create gen_raise_exception_format2 to record the trapping pc in env->mmu.ar. Update m68k_inter