aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2010-01-13 18:55:11 +0000
committerBlue Swirl <blauwirbel@gmail.com>2010-01-13 18:55:11 +0000
commitf368a3cea4fe81b3d5a698de4f2075938ec9cc0a (patch)
tree44941ea64e755b4ea929e52cda1ba36335bfab90 /hw
parenta9be79d65f5a34cd84c48f81eb4875aeb4c027d2 (diff)
Sparc32: remove a variable used only for debugging to avoid a clang warning
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/iommu.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/hw/iommu.c b/hw/iommu.c
index 4151022de3..0cd2ed00e3 100644
--- a/hw/iommu.c
+++ b/hw/iommu.c
@@ -272,13 +272,11 @@ static uint32_t iommu_page_get_flags(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;
target_phys_addr_t pa;
- tmppte = pte;
pa = ((pte & IOPTE_PAGE) << 4) + (addr & ~IOMMU_PAGE_MASK);
DPRINTF("xlate dva " TARGET_FMT_plx " => pa " TARGET_FMT_plx
- " (iopte = %x)\n", addr, pa, tmppte);
+ " (iopte = %x)\n", addr, pa, pte);
return pa;
}