mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 16:53:55 -06:00
target/microblaze: Split out MSR[C] to its own variable
Having the MSR[C] bit separate will improve arithmetic that operates on the carry bit. Having mb_cpu_read_msr() populate MSR[CC] will prevent the carry copy not matching the carry bit. 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
480d29a8fa
commit
1074c0fb91
6 changed files with 82 additions and 96 deletions
|
@ -121,9 +121,9 @@ static void mb_cpu_reset(DeviceState *dev)
|
|||
|
||||
#if defined(CONFIG_USER_ONLY)
|
||||
/* start in user mode with interrupts enabled. */
|
||||
env->msr = MSR_EE | MSR_IE | MSR_VM | MSR_UM;
|
||||
mb_cpu_write_msr(env, MSR_EE | MSR_IE | MSR_VM | MSR_UM);
|
||||
#else
|
||||
env->msr = 0;
|
||||
mb_cpu_write_msr(env, 0);
|
||||
mmu_init(&env->mmu);
|
||||
env->mmu.c_mmu = 3;
|
||||
env->mmu.c_mmu_tlb_access = 3;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue