Skip to content

Commit

Permalink
hw/arm/smmuv3: Fix up L1STD_SPAN decoding
Browse files Browse the repository at this point in the history
Accroding to the SMMUv3 spec, the SPAN field of Level1 Stream Table
Descriptor is 5 bits([4:0]).

Fixes: 9bde7f0(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>
  • Loading branch information
Kunkun Jiang authored and pm215 committed Dec 10, 2020
1 parent 5e7b204 commit d9aad88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hw/arm/smmuv3-internal.h
Expand Up @@ -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

0 comments on commit d9aad88

Please sign in to comment.