target/rx: set PSW.I when executing wait instruction
PATCH 1/1 target/rx: set PSW.I when executing wait instruction
This patch fixes the implementation of the wait instruction to implicitly update PSW.I as required by the ISA specification.
Signed-off-by Tomoaki Kawada <[email protected]>
--- target/rx/op_helper.c | 1 + 1 file changed, 1 insertion(+)
target/rx/op_helper.c +1 -0
@@ -448,6 +448,7 @@ void QEMU_NORETURN helper_wait(CPURXState *env) cs->halted =1 ; env->in_sleep =1 ; + env->psw_i =1 ;raise_exception (env,EXCP_HLT ,0 ); }
Signature · 1 line
2.35.1
Quoted 13 lines · Tomoaki Kawada
This patch fixes the implementation of the wait instruction to implicitly update PSW.I as required by the ISA specification.
Signed-off-by Tomoaki Kawada <[email protected]>--- target/rx/op_helper.c | 1 + 1 file changed, 1 insertion(+)target/rx/op_helper.c +0
-0
target/rx/op_helper.c void QEMU_NORETURN helper_wait(CPURXState *env) · line 454
Quoted 7 lines
target/rx/op_helper.c +1
-0@@ -448,6 +448,7 @@ void QEMU_NORETURN helper_wait(CPURXState *env) cs->halted =1 ; env->in_sleep =1 ; + env->psw_i =1 ;raise_exception (env,EXCP_HLT ,0 ); }
Reviewed-by Richard Henderson <[email protected]>
r~
Quoted 24 lines · Tomoaki Kawada
This patch fixes the implementation of the wait instruction to implicitly update PSW.I as required by the ISA specification.
Signed-off-by Tomoaki Kawada <[email protected]>--- target/rx/op_helper.c | 1 + 1 file changed, 1 insertion(+)target/rx/op_helper.c +1
-0@@ -448,6 +448,7 @@ void QEMU_NORETURN helper_wait(CPURXState *env) cs->halted =1 ; env->in_sleep =1 ; + env->psw_i =1 ;raise_exception (env,EXCP_HLT ,0 ); }Signature · 1 line
2.35.1
Reviewed-by Yoshinori Sato <[email protected]>
Signature · 1 line
Yosinori Sato
Richard Henderson
AppliedQuoted 7 lines · Tomoaki Kawada
This patch fixes the implementation of the wait instruction to implicitly update PSW.I as required by the ISA specification.
Signed-off-by Tomoaki Kawada <[email protected]>--- target/rx/op_helper.c | 1 + 1 file changed, 1 insertion(+)
Queued to target-rx-next.
r~