hw/arm/smmu-common: Replace smmu_iommu_mr with smmu_find_sdev
authorNicolin Chen <nicolinc@nvidia.com>
Wed, 19 Jun 2024 00:22:18 +0000 (17:22 -0700)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 1 Jul 2024 11:48:55 +0000 (12:48 +0100)
commit69970205edb661f79a7f6d6046785c521c6da80b
treea215668d2b2bcf77e6571297b11e08fde624b728
parent6c84daac58f0d75a908626faf89a832fc0532140
hw/arm/smmu-common: Replace smmu_iommu_mr with smmu_find_sdev

The caller of smmu_iommu_mr wants to get sdev for smmuv3_flush_config().

Do it directly instead of bridging with an iommu mr pointer.

Signed-off-by: Nicolin Chen <nicolinc@nvidia.com>
Message-id: 20240619002218.926674-1-nicolinc@nvidia.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/smmu-common.c
hw/arm/smmuv3.c
include/hw/arm/smmu-common.h