Revision 22548760 hw/iommu.c
b/hw/iommu.c | ||
---|---|---|
252 | 252 |
return ret; |
253 | 253 |
} |
254 | 254 |
|
255 |
static target_phys_addr_t iommu_translate_pa(IOMMUState *s, |
|
256 |
target_phys_addr_t addr, |
|
255 |
static target_phys_addr_t iommu_translate_pa(target_phys_addr_t addr, |
|
257 | 256 |
uint32_t pte) |
258 | 257 |
{ |
259 | 258 |
uint32_t tmppte; |
... | ... | |
296 | 295 |
iommu_bad_addr(opaque, page, is_write); |
297 | 296 |
return; |
298 | 297 |
} |
299 |
phys_addr = iommu_translate_pa(opaque, addr, flags);
|
|
298 |
phys_addr = iommu_translate_pa(addr, flags); |
|
300 | 299 |
if (is_write) { |
301 | 300 |
if (!(flags & IOPTE_WRITE)) { |
302 | 301 |
iommu_bad_addr(opaque, page, is_write); |
Also available in: Unified diff