diff options
author | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-05-10 10:12:00 +0000 |
---|---|---|
committer | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-05-10 10:12:00 +0000 |
commit | ef0b4122d5f6bf9ba14a29f5b6326c381728731b (patch) | |
tree | 57643945499692088cb5d186a1fd5579ef4b8bbc /hw/iommu.c | |
parent | 5d079560386813397d3e4ba8b865bd496baf5232 (diff) | |
download | qemu-ef0b4122d5f6bf9ba14a29f5b6326c381728731b.tar.gz qemu-ef0b4122d5f6bf9ba14a29f5b6326c381728731b.tar.bz2 qemu-ef0b4122d5f6bf9ba14a29f5b6326c381728731b.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.c | 5 |
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); |