mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 08:43:55 -06:00
sparc64 flush pending conditional evaluations before exposing cpu state
If translation block is interrupted by e.g. mmu exception we need to compute conditional flags for inclusion into saved cpu state. Otherwise after return from trap conditional instructions would use stale psr/xcc data. Signed-off-by: igor.v.kovalenko@gmail.com -- Kind regards, Igor V. Kovalenko
This commit is contained in:
parent
bfdb36293f
commit
14ed7adc1b
1 changed files with 5 additions and 0 deletions
|
@ -4908,4 +4908,9 @@ void gen_pc_load(CPUState *env, TranslationBlock *tb,
|
|||
} else {
|
||||
env->npc = npc;
|
||||
}
|
||||
|
||||
/* flush pending conditional evaluations before exposing cpu state */
|
||||
if (CC_OP != CC_OP_FLAGS) {
|
||||
helper_compute_psr();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue