Revision f368a3ce
b/hw/iommu.c | ||
---|---|---|
272 | 272 |
static target_phys_addr_t iommu_translate_pa(target_phys_addr_t addr, |
273 | 273 |
uint32_t pte) |
274 | 274 |
{ |
275 |
uint32_t tmppte; |
|
276 | 275 |
target_phys_addr_t pa; |
277 | 276 |
|
278 |
tmppte = pte; |
|
279 | 277 |
pa = ((pte & IOPTE_PAGE) << 4) + (addr & ~IOMMU_PAGE_MASK); |
280 | 278 |
DPRINTF("xlate dva " TARGET_FMT_plx " => pa " TARGET_FMT_plx |
281 |
" (iopte = %x)\n", addr, pa, tmppte);
|
|
279 |
" (iopte = %x)\n", addr, pa, pte); |
|
282 | 280 |
|
283 | 281 |
return pa; |
284 | 282 |
} |
Also available in: Unified diff