summaryrefslogtreecommitdiffstats
path: root/target/microblaze/cpu.h
diff options
context:
space:
mode:
authorRichard Henderson2020-08-20 07:40:23 +0200
committerRichard Henderson2020-09-01 16:41:38 +0200
commit86017ccfbd2b39371bd47dd7d2bed69ee184c3e5 (patch)
tree8ad0692956642fab346c78636d4a771d77460809 /target/microblaze/cpu.h
parenttarget/microblaze: Fix width of ESR (diff)
downloadqemu-86017ccfbd2b39371bd47dd7d2bed69ee184c3e5.tar.gz
qemu-86017ccfbd2b39371bd47dd7d2bed69ee184c3e5.tar.xz
qemu-86017ccfbd2b39371bd47dd7d2bed69ee184c3e5.zip
target/microblaze: Fix width of FSR
The exception status register is only 32-bits wide. Do not use a 64-bit type to represent it. Since cpu_fsr is only used during MSR and MTR instructions, we can just as easily use an explicit load and store, so eliminate the variable. 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.h')
-rw-r--r--target/microblaze/cpu.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/microblaze/cpu.h b/target/microblaze/cpu.h
index aaac0c9a6c..34177f9b28 100644
--- a/target/microblaze/cpu.h
+++ b/target/microblaze/cpu.h
@@ -240,7 +240,7 @@ struct CPUMBState {
uint32_t msr;
uint64_t ear;
uint32_t esr;
- uint64_t fsr;
+ uint32_t fsr;
uint64_t btr;
uint64_t edr;
float_status fp_status;