diff options
| author | Richard Henderson | 2020-08-20 07:40:23 +0200 |
|---|---|---|
| committer | Richard Henderson | 2020-09-01 16:41:38 +0200 |
| commit | 86017ccfbd2b39371bd47dd7d2bed69ee184c3e5 (patch) | |
| tree | 8ad0692956642fab346c78636d4a771d77460809 /target/microblaze/cpu.h | |
| parent | target/microblaze: Fix width of ESR (diff) | |
| download | qemu-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.h | 2 |
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; |
