summaryrefslogtreecommitdiffstats
path: root/target/microblaze/cpu.h
diff options
context:
space:
mode:
authorRichard Henderson2020-08-20 07:25:16 +0200
committerRichard Henderson2020-09-01 16:41:38 +0200
commit0f96e96bd5144b1a834fed2b53a17fcf46637dcb (patch)
tree310603035665e3b843fa14b68b83b224a1d46502 /target/microblaze/cpu.h
parenttarget/microblaze: Split the cpu_SR array (diff)
downloadqemu-0f96e96bd5144b1a834fed2b53a17fcf46637dcb.tar.gz
qemu-0f96e96bd5144b1a834fed2b53a17fcf46637dcb.tar.xz
qemu-0f96e96bd5144b1a834fed2b53a17fcf46637dcb.zip
target/microblaze: Fix width of PC and BTARGET
The program counter is only 32-bits wide. Do not use a 64-bit type to represent it. Since they are so closely related, fix btarget at the same time. 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.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/microblaze/cpu.h b/target/microblaze/cpu.h
index 610ddfb719..f4c3c09b09 100644
--- a/target/microblaze/cpu.h
+++ b/target/microblaze/cpu.h
@@ -231,12 +231,12 @@ typedef struct CPUMBState CPUMBState;
struct CPUMBState {
uint32_t debug;
uint32_t btaken;
- uint64_t btarget;
+ uint32_t btarget;
uint32_t bimm;
uint32_t imm;
uint32_t regs[32];
- uint64_t pc;
+ uint32_t pc;
uint64_t msr;
uint64_t ear;
uint64_t esr;