]> git.proxmox.com Git - mirror_qemu.git/commitdiff
hw/arm/smmuv3: Check 31st bit to see if CD is valid
authorJoe Komlodi <joe.komlodi@xilinx.com>
Mon, 26 Jul 2021 10:07:18 +0000 (11:07 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 27 Jul 2021 09:57:39 +0000 (10:57 +0100)
The bit to see if a CD is valid is the last bit of the first word of the CD.

Signed-off-by: Joe Komlodi <joe.komlodi@xilinx.com>
Message-id: 1626728232-134665-2-git-send-email-joe.komlodi@xilinx.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/smmuv3-internal.h

index 3dac5766ca374a5cbb5c38eea15fe8fcbfb11f94..d1885ae3f25e7381eba411af648b34c33a8bcbc0 100644 (file)
@@ -570,7 +570,7 @@ static inline int pa_range(STE *ste)
 
 /* CD fields */
 
-#define CD_VALID(x)   extract32((x)->word[0], 30, 1)
+#define CD_VALID(x)   extract32((x)->word[0], 31, 1)
 #define CD_ASID(x)    extract32((x)->word[1], 16, 16)
 #define CD_TTB(x, sel)                                      \
     ({                                                      \