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>
This commit is contained in:
parent
f484f213c9
commit
5813c5c74a
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user