summaryrefslogtreecommitdiffstats
path: root/target/microblaze/helper.c
diff options
context:
space:
mode:
authorRichard Henderson2020-08-20 06:58:40 +0200
committerRichard Henderson2020-09-01 16:41:38 +0200
commit6fbf78f24a43c57925dc4e789dc236cdec443987 (patch)
tree3b3805da69953db360a4cf6fdf3761978d94858f /target/microblaze/helper.c
parenttarget/microblaze: Split out FSR from env->sregs (diff)
downloadqemu-6fbf78f24a43c57925dc4e789dc236cdec443987.tar.gz
qemu-6fbf78f24a43c57925dc4e789dc236cdec443987.tar.xz
qemu-6fbf78f24a43c57925dc4e789dc236cdec443987.zip
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>
Diffstat (limited to 'target/microblaze/helper.c')
-rw-r--r--target/microblaze/helper.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/microblaze/helper.c b/target/microblaze/helper.c
index ea290be780..b240dc76f6 100644
--- a/target/microblaze/helper.c
+++ b/target/microblaze/helper.c
@@ -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;