Re: [PATCH] target/rx: swap stack pointers on clrpsw/setpsw instruction

2022-04-18 Thread Yoshinori Sato
On Sat, 16 Apr 2022 12:20:09 +0900, Tomoaki Kawada wrote: > > The control register field PSW.U determines which stack pointer register > (ISP or USP) is mapped as R0. In QEMU, this is implemented by having a > value copied between ISP or USP and R0 whenever PSW.U is updated or > access to ISP/USP

Re: [PATCH] target/rx: swap stack pointers on clrpsw/setpsw instruction

2022-04-17 Thread Richard Henderson
On 4/15/22 20:20, Tomoaki Kawada wrote: The control register field PSW.U determines which stack pointer register (ISP or USP) is mapped as R0. In QEMU, this is implemented by having a value copied between ISP or USP and R0 whenever PSW.U is updated or access to ISP/USP is made by an mvtc/mvic ins

[PATCH] target/rx: swap stack pointers on clrpsw/setpsw instruction

2022-04-15 Thread Tomoaki Kawada
The control register field PSW.U determines which stack pointer register (ISP or USP) is mapped as R0. In QEMU, this is implemented by having a value copied between ISP or USP and R0 whenever PSW.U is updated or access to ISP/USP is made by an mvtc/mvic instruction. However, this update process was