diff options
author | Richard Henderson | 2022-10-24 14:54:15 +0200 |
---|---|---|
committer | Richard Henderson | 2022-10-31 22:31:41 +0100 |
commit | 5813c5c74a755fd0c1b10be38c6fdf5c54c468e4 (patch) | |
tree | 2280f346d1eb0f48c5a7c30e270397a44cfbddac /target/openrisc | |
parent | target/i386: Use cpu_unwind_state_data for tpr access (diff) | |
download | qemu-5813c5c74a755fd0c1b10be38c6fdf5c54c468e4.tar.gz qemu-5813c5c74a755fd0c1b10be38c6fdf5c54c468e4.tar.xz qemu-5813c5c74a755fd0c1b10be38c6fdf5c54c468e4.zip |
target/openrisc: Always exit after mtspr npc
We have called cpu_restore_state asserting will_exit.
Do not go back on that promise. This affects icount.
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'target/openrisc')
-rw-r--r-- | target/openrisc/sys_helper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/openrisc/sys_helper.c b/target/openrisc/sys_helper.c index 09b3c97d7c..a3508e421d 100644 --- a/target/openrisc/sys_helper.c +++ b/target/openrisc/sys_helper.c @@ -51,8 +51,8 @@ void HELPER(mtspr)(CPUOpenRISCState *env, target_ulong spr, target_ulong rb) if (env->pc != rb) { env->pc = rb; env->dflag = 0; - cpu_loop_exit(cs); } + cpu_loop_exit(cs); break; case TO_SPR(0, 17): /* SR */ |