[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] RFC: Why does target/m68k RTE insn. use gen_exception
From: |
Richard Henderson |
Subject: |
Re: [Qemu-devel] RFC: Why does target/m68k RTE insn. use gen_exception |
Date: |
Thu, 27 Jun 2019 19:09:39 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 |
On 6/27/19 3:22 PM, Lucien Anti-Spam wrote:
> Hi Laurent / Richard,
> (resent email )
>
> Does anyone have any knowledge why
> gen_exception(s, s->base.pc_next, EXCP_RTE);
>
> is generated for "RTE" instruction, where as the "RTS" goes a gen_jmp?
> ( note see target/m68k/translate.c in functions DISAS_INSN(rte) and
> DISAS_INSN(rts)
History, it would seem. Paul Brook implemented it that way in 2007.
I think that it should not be implemented as an exception. It should be a call
to one of two different helpers (cf and m68k), followed by either a normal exit
to main loop (to recognize the new interrupt state) or a debug exception.
This sort of modification should be fairly easy to perform, if you have the
time.
r~
- [Qemu-devel] RFC: Why does target/m68k RTE insn. use gen_exception, Lucien Anti-Spam, 2019/06/27
- Re: [Qemu-devel] RFC: Why does target/m68k RTE insn. use gen_exception, Lucien Anti-Spam, 2019/06/27
- Re: [Qemu-devel] RFC: Why does target/m68k RTE insn. use gen_exception,
Richard Henderson <=
- Re: [Qemu-devel] RFC: Why does target/m68k RTE insn. use gen_exception, Lucien Murray-Pitts, 2019/06/27
- Re: [Qemu-devel] RFC: Why does target/m68k RTE insn. use gen_exception, Richard Henderson, 2019/06/28
- Re: [Qemu-devel] RFC: Why does target/m68k RTE insn. use gen_exception, Lucien Murray-Pitts, 2019/06/28
- Re: [Qemu-devel] RFC: Why does target/m68k RTE insn. use gen_exception, Richard Henderson, 2019/06/29
- Re: [Qemu-devel] RFC: Why does target/m68k RTE insn. use gen_exception, Lucien Murray-Pitts, 2019/06/29
- Re: [Qemu-devel] RFC: Why does target/m68k RTE insn. use gen_exception, Richard Henderson, 2019/06/30