]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
target/microblaze: Renumber D_FLAG
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 3 Sep 2020 05:46:49 +0000 (22:46 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Mon, 7 Sep 2020 19:58:08 +0000 (12:58 -0700)
ESS[DS] is bit 19 in the manual, but the manual uses big-endian bit
numbering.  This corresponds to bit 12 in little-endian numbering.
Let the comment about matching the ESR be true by renumbering it.

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>
target/microblaze/cpu.h

index a25a2b427f40e8e64eb93caa2ec34c09a908bf60..32811f773d0d67630a7b0bec09f3863c8255e673 100644 (file)
@@ -264,10 +264,10 @@ struct CPUMBState {
 /* MSR_UM               (1 << 11) */
 /* MSR_VM               (1 << 13) */
 /* ESR_ESS_MASK         [11:5]    -- unwind into iflags for unaligned excp */
+#define D_FLAG         (1 << 12)  /* Bit in ESR.  */
 #define DRTI_FLAG      (1 << 16)
 #define DRTE_FLAG      (1 << 17)
 #define DRTB_FLAG      (1 << 18)
-#define D_FLAG         (1 << 19)  /* Bit in ESR.  */
 
 /* TB dependent CPUMBState.  */
 #define IFLAGS_TB_MASK  (D_FLAG | BIMM_FLAG | IMM_FLAG | \