aboutsummaryrefslogtreecommitdiff
path: root/target/microblaze/cpu.h
diff options
context:
space:
mode:
authorEdgar E. Iglesias <edgar.iglesias@xilinx.com>2017-01-10 17:14:34 +0100
committerEdgar E. Iglesias <edgar.iglesias@xilinx.com>2017-07-04 09:22:20 +0200
commit79549c996056ce1ad820061622e71d4a0444d3c7 (patch)
treed67bff11b70fbaa3fa9917da589b3cc0b33c4275 /target/microblaze/cpu.h
parent9a32e6f3a15f4373c9bec8acf5f5436822184247 (diff)
downloadqemu-79549c996056ce1ad820061622e71d4a0444d3c7.zip
qemu-79549c996056ce1ad820061622e71d4a0444d3c7.tar.gz
qemu-79549c996056ce1ad820061622e71d4a0444d3c7.tar.bz2
target-microblaze: Correct bit shift for the PVR0 version field
Correct bit shift for the PVR0 version field. Reviewed-by: Alistair Francis <alistair.francis@xilinx.com> Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Diffstat (limited to 'target/microblaze/cpu.h')
-rw-r--r--target/microblaze/cpu.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/target/microblaze/cpu.h b/target/microblaze/cpu.h
index bf6963b..68c33e8 100644
--- a/target/microblaze/cpu.h
+++ b/target/microblaze/cpu.h
@@ -129,6 +129,8 @@ typedef struct CPUMBState CPUMBState;
#define PVR0_USER1_MASK 0x000000FF
#define PVR0_SPROT_MASK 0x00000001
+#define PVR0_VERSION_SHIFT 8
+
/* User 2 PVR mask */
#define PVR1_USER2_MASK 0xFFFFFFFF