diff options
author | Richard Henderson | 2020-08-20 06:41:10 +0200 |
---|---|---|
committer | Richard Henderson | 2020-09-01 16:41:38 +0200 |
commit | 2e5282caa8eb6b5bab6c62cba902be1996dcb713 (patch) | |
tree | f08a1733be6db8622eceae2e84737b1459345e45 /target/microblaze/cpu.c | |
parent | target/microblaze: Split out PC from env->sregs (diff) | |
download | qemu-2e5282caa8eb6b5bab6c62cba902be1996dcb713.tar.gz qemu-2e5282caa8eb6b5bab6c62cba902be1996dcb713.tar.xz qemu-2e5282caa8eb6b5bab6c62cba902be1996dcb713.zip |
target/microblaze: Split out MSR from env->sregs
Continue eliminating the sregs array in favor of individual members.
Does not correct the width of MSR, 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/cpu.c')
-rw-r--r-- | target/microblaze/cpu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target/microblaze/cpu.c b/target/microblaze/cpu.c index bde9992535..0eac068570 100644 --- a/target/microblaze/cpu.c +++ b/target/microblaze/cpu.c @@ -121,9 +121,9 @@ static void mb_cpu_reset(DeviceState *dev) #if defined(CONFIG_USER_ONLY) /* start in user mode with interrupts enabled. */ - env->sregs[SR_MSR] = MSR_EE | MSR_IE | MSR_VM | MSR_UM; + env->msr = MSR_EE | MSR_IE | MSR_VM | MSR_UM; #else - env->sregs[SR_MSR] = 0; + env->msr = 0; mmu_init(&env->mmu); env->mmu.c_mmu = 3; env->mmu.c_mmu_tlb_access = 3; |