diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2025-02-12 13:24:08 -0800 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2025-05-28 08:08:47 +0100 |
commit | 8cea8bd4d3909b7828310a0f76d5194d1bf0095a (patch) | |
tree | 7049bf87970b5ba2a1d4017bffe8f82d5ab33b19 | |
parent | beea772666fb1bb86136042fd8ee7140a01bb36f (diff) | |
download | qemu-8cea8bd4d3909b7828310a0f76d5194d1bf0095a.zip qemu-8cea8bd4d3909b7828310a0f76d5194d1bf0095a.tar.gz qemu-8cea8bd4d3909b7828310a0f76d5194d1bf0095a.tar.bz2 |
target/microblaze: Use uint64_t for CPUMBState.ear
Use an explicit 64-bit type for EAR.
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@amd.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
-rw-r--r-- | target/microblaze/cpu.h | 2 | ||||
-rw-r--r-- | target/microblaze/translate.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/target/microblaze/cpu.h b/target/microblaze/cpu.h index 6ad8643..3ce28b3 100644 --- a/target/microblaze/cpu.h +++ b/target/microblaze/cpu.h @@ -248,7 +248,7 @@ struct CPUArchState { uint32_t pc; uint32_t msr; /* All bits of MSR except MSR[C] and MSR[CC] */ uint32_t msr_c; /* MSR[C], in low bit; other bits must be 0 */ - target_ulong ear; + uint64_t ear; uint32_t esr; uint32_t fsr; uint32_t btr; diff --git a/target/microblaze/translate.c b/target/microblaze/translate.c index 3d97563..b1fc9e5 100644 --- a/target/microblaze/translate.c +++ b/target/microblaze/translate.c @@ -1857,7 +1857,7 @@ void mb_cpu_dump_state(CPUState *cs, FILE *f, int flags) } qemu_fprintf(f, "\nesr=0x%04x fsr=0x%02x btr=0x%08x edr=0x%x\n" - "ear=0x" TARGET_FMT_lx " slr=0x%x shr=0x%x\n", + "ear=0x%" PRIx64 " slr=0x%x shr=0x%x\n", env->esr, env->fsr, env->btr, env->edr, env->ear, env->slr, env->shr); |