summaryrefslogtreecommitdiff
path: root/hw/iommu.c
diff options
context:
space:
mode:
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2008-05-10 10:12:00 +0000
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2008-05-10 10:12:00 +0000
commit22548760ca36e3c9c716bf725194a846d1073855 (patch)
tree57643945499692088cb5d186a1fd5579ef4b8bbc /hw/iommu.c
parent9800ee2677ab1f6d506a03086a2fbfe66fe09f5c (diff)
downloadqemu-22548760ca36e3c9c716bf725194a846d1073855.tar.gz
qemu-22548760ca36e3c9c716bf725194a846d1073855.tar.bz2
qemu-22548760ca36e3c9c716bf725194a846d1073855.zip
Fix compiler warnings
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4404 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/iommu.c')
-rw-r--r--hw/iommu.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/hw/iommu.c b/hw/iommu.c
index 440847f2b2..0879df95fa 100644
--- a/hw/iommu.c
+++ b/hw/iommu.c
@@ -252,8 +252,7 @@ static uint32_t iommu_page_get_flags(IOMMUState *s, target_phys_addr_t addr)
return ret;
}
-static target_phys_addr_t iommu_translate_pa(IOMMUState *s,
- target_phys_addr_t addr,
+static target_phys_addr_t iommu_translate_pa(target_phys_addr_t addr,
uint32_t pte)
{
uint32_t tmppte;
@@ -296,7 +295,7 @@ void sparc_iommu_memory_rw(void *opaque, target_phys_addr_t addr,
iommu_bad_addr(opaque, page, is_write);
return;
}
- phys_addr = iommu_translate_pa(opaque, addr, flags);
+ phys_addr = iommu_translate_pa(addr, flags);
if (is_write) {
if (!(flags & IOPTE_WRITE)) {
iommu_bad_addr(opaque, page, is_write);