mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
target/microblaze: Split out BTR from env->sregs
Continue eliminating the sregs array in favor of individual members. Does not correct the width of BTR, yet. Tested-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
5a8e01366c
commit
6fbf78f24a
4 changed files with 9 additions and 6 deletions
|
@ -132,7 +132,7 @@ void mb_cpu_do_interrupt(CPUState *cs)
|
|||
/* Exception breaks branch + dslot sequence? */
|
||||
if (env->iflags & D_FLAG) {
|
||||
env->esr |= 1 << 12 ;
|
||||
env->sregs[SR_BTR] = env->btarget;
|
||||
env->btr = env->btarget;
|
||||
}
|
||||
|
||||
/* Disable the MMU. */
|
||||
|
@ -160,7 +160,7 @@ void mb_cpu_do_interrupt(CPUState *cs)
|
|||
if (env->iflags & D_FLAG) {
|
||||
D(qemu_log("D_FLAG set at exception bimm=%d\n", env->bimm));
|
||||
env->esr |= 1 << 12 ;
|
||||
env->sregs[SR_BTR] = env->btarget;
|
||||
env->btr = env->btarget;
|
||||
|
||||
/* Reexecute the branch. */
|
||||
env->regs[17] -= 4;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue