Re: [Qemu-devel] [PATCH 5/5] target/sh4: fix RTE instruction delay slot

2017-05-24 Thread Richard Henderson
On 05/16/2017 03:47 PM, Aurelien Jarno wrote: The ReTurn from Exception (RTE) instruction loads the system register (SR) with the saved system register (SSR). It has a delay slot, and behaves specially according to the SH4 manual: The SR value accessed by the instruction in the RTE delay slot

[Qemu-devel] [PATCH 5/5] target/sh4: fix RTE instruction delay slot

2017-05-16 Thread Aurelien Jarno
The ReTurn from Exception (RTE) instruction loads the system register (SR) with the saved system register (SSR). It has a delay slot, and behaves specially according to the SH4 manual: The SR value accessed by the instruction in the RTE delay slot is the value restored from SSR by the RTE inst