summaryrefslogtreecommitdiff
path: root/hw/arm
diff options
context:
space:
mode:
authorKunkun Jiang <jiangkunkun@huawei.com>2020-11-24 10:37:11 +0800
committerPeter Maydell <peter.maydell@linaro.org>2020-12-10 11:30:44 +0000
commitd9aad887e80c8002a866326d2ec7c3bf2463da87 (patch)
tree04d4881f7898dec9316723bf5fdd24fd09122498 /hw/arm
parent5e7b204dbfae9a562fc73684986f936b97f63877 (diff)
downloadqemu-d9aad887e80c8002a866326d2ec7c3bf2463da87.zip
hw/arm/smmuv3: Fix up L1STD_SPAN decoding
Accroding to the SMMUv3 spec, the SPAN field of Level1 Stream Table Descriptor is 5 bits([4:0]). Fixes: 9bde7f0674f(hw/arm/smmuv3: Implement translate callback) Signed-off-by: Kunkun Jiang <jiangkunkun@huawei.com> Message-id: 20201124023711.1184-1-jiangkunkun@huawei.com Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Acked-by: Eric Auger <eric.auger@redhat.com> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/arm')
-rw-r--r--hw/arm/smmuv3-internal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/arm/smmuv3-internal.h b/hw/arm/smmuv3-internal.h
index fa3c088972..b6f7e53b7c 100644
--- a/hw/arm/smmuv3-internal.h
+++ b/hw/arm/smmuv3-internal.h
@@ -633,6 +633,6 @@ static inline uint64_t l1std_l2ptr(STEDesc *desc)
return hi << 32 | lo;
}
-#define L1STD_SPAN(stm) (extract32((stm)->word[0], 0, 4))
+#define L1STD_SPAN(stm) (extract32((stm)->word[0], 0, 5))
#endif