mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
target/openrisc: Tidy handling of delayed branches
Signed-off-by: Richard Henderson <rth@twiddle.net>
This commit is contained in:
parent
24c328521b
commit
a01deb36a6
5 changed files with 25 additions and 35 deletions
|
@ -34,8 +34,8 @@ void openrisc_cpu_do_interrupt(CPUState *cs)
|
|||
CPUOpenRISCState *env = &cpu->env;
|
||||
|
||||
env->epcr = env->pc;
|
||||
if (env->flags & D_FLAG) {
|
||||
env->flags &= ~D_FLAG;
|
||||
if (env->dflag) {
|
||||
env->dflag = 0;
|
||||
env->sr |= SR_DSX;
|
||||
env->epcr -= 4;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue