]> Git Repo - qemu.git/commitdiff
target/ppc: Fix LPCR DPFD mask define
authorSuraj Jitindar Singh <[email protected]>
Fri, 10 Feb 2017 05:25:52 +0000 (16:25 +1100)
committerDavid Gibson <[email protected]>
Wed, 22 Feb 2017 00:28:28 +0000 (11:28 +1100)
The DPFD field in the LPCR is 3 bits wide. This has always been defined
as 0x3 << shift which indicates a 2 bit field, which is incorrect.
Correct this.

Signed-off-by: Suraj Jitindar Singh <[email protected]>
Signed-off-by: David Gibson <[email protected]>
target/ppc/cpu.h

index bc2a2ce4310317fdc204d647ba696137d129a48b..bb96dd51822e03d09c5f68d9ffa795686f1b8120 100644 (file)
@@ -381,7 +381,7 @@ struct ppc_slb_t {
 #define LPCR_ISL          (1ull << (63 - 2))
 #define LPCR_KBV          (1ull << (63 - 3))
 #define LPCR_DPFD_SHIFT   (63 - 11)
-#define LPCR_DPFD         (0x3ull << LPCR_DPFD_SHIFT)
+#define LPCR_DPFD         (0x7ull << LPCR_DPFD_SHIFT)
 #define LPCR_VRMASD_SHIFT (63 - 16)
 #define LPCR_VRMASD       (0x1full << LPCR_VRMASD_SHIFT)
 #define LPCR_RMLS_SHIFT   (63 - 37)
This page took 0.0317 seconds and 4 git commands to generate.