diff options
author | Peter Maydell | 2018-06-15 15:57:16 +0200 |
---|---|---|
committer | Peter Maydell | 2018-06-15 16:23:34 +0200 |
commit | 2c91bcf273ffb95898d2ca901b699558d9e73fd1 (patch) | |
tree | 083ce5c85738417d8edc8921783c79e2dad14f08 /hw/sparc/sun4m_iommu.c | |
parent | iommu: Add IOMMU index argument to notifier APIs (diff) | |
download | qemu-2c91bcf273ffb95898d2ca901b699558d9e73fd1.tar.gz qemu-2c91bcf273ffb95898d2ca901b699558d9e73fd1.tar.xz qemu-2c91bcf273ffb95898d2ca901b699558d9e73fd1.zip |
iommu: Add IOMMU index argument to translate method
Add an IOMMU index argument to the translate method of
IOMMUs. Since all of our current IOMMU implementations
support only a single IOMMU index, this has no effect
on the behaviour.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-id: 20180604152941.20374-4-peter.maydell@linaro.org
Diffstat (limited to 'hw/sparc/sun4m_iommu.c')
-rw-r--r-- | hw/sparc/sun4m_iommu.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/sparc/sun4m_iommu.c b/hw/sparc/sun4m_iommu.c index b677601fc6..7ca1e3fce4 100644 --- a/hw/sparc/sun4m_iommu.c +++ b/hw/sparc/sun4m_iommu.c @@ -282,7 +282,8 @@ static void iommu_bad_addr(IOMMUState *s, hwaddr addr, /* Called from RCU critical section */ static IOMMUTLBEntry sun4m_translate_iommu(IOMMUMemoryRegion *iommu, hwaddr addr, - IOMMUAccessFlags flags) + IOMMUAccessFlags flags, + int iommu_idx) { IOMMUState *is = container_of(iommu, IOMMUState, iommu); hwaddr page, pa; |