diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2020-08-18 11:58:23 -0700 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2020-09-01 07:41:38 -0700 |
commit | 1074c0fb9153f631ce93f7e7d74b935fdcb0d82a (patch) | |
tree | e1ea24a332b03f32dcad83ae06aefafc57e2374a /linux-user | |
parent | 480d29a8fa842ca94297600397041f0efb0c7bd0 (diff) | |
download | qemu-1074c0fb9153f631ce93f7e7d74b935fdcb0d82a.zip qemu-1074c0fb9153f631ce93f7e7d74b935fdcb0d82a.tar.gz qemu-1074c0fb9153f631ce93f7e7d74b935fdcb0d82a.tar.bz2 |
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>
Diffstat (limited to 'linux-user')
-rw-r--r-- | linux-user/elfload.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-user/elfload.c b/linux-user/elfload.c index 58b3f4e..04c28cb 100644 --- a/linux-user/elfload.c +++ b/linux-user/elfload.c @@ -1039,7 +1039,7 @@ static void elf_core_copy_regs(target_elf_gregset_t *regs, const CPUMBState *env } (*regs)[pos++] = tswapreg(env->pc); - (*regs)[pos++] = tswapreg(env->msr); + (*regs)[pos++] = tswapreg(mb_cpu_read_msr(env)); (*regs)[pos++] = 0; (*regs)[pos++] = tswapreg(env->ear); (*regs)[pos++] = 0; |