summaryrefslogtreecommitdiffstats
path: root/hw/ppc/spapr_vio.c
diff options
context:
space:
mode:
authorAlexey Kardashevskiy <aik@ozlabs.ru>2014-05-27 15:36:37 +1000
committerAlexander Graf <agraf@suse.de>2014-06-16 13:24:39 +0200
commit1b8eceee280d3fab11812271f4956f7b69287ef0 (patch)
tree4bbffe4a21da4c76cd5b90b6a0898b206c03c18b /hw/ppc/spapr_vio.c
parent650f33adbd53b0bacdd5d3392ea5b11a8a0fba42 (diff)
downloadhqemu-1b8eceee280d3fab11812271f4956f7b69287ef0.zip
hqemu-1b8eceee280d3fab11812271f4956f7b69287ef0.tar.gz
spapr_iommu: Introduce bus_offset in sPAPRTCETable
This adds @bus_offset into sPAPRTCETable to tell where TCE table starts from. It is set to 0 for emulated devices. Dynamic DMA windows will use other offset. Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'hw/ppc/spapr_vio.c')
-rw-r--r--hw/ppc/spapr_vio.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/ppc/spapr_vio.c b/hw/ppc/spapr_vio.c
index 75a9348..04e16ae 100644
--- a/hw/ppc/spapr_vio.c
+++ b/hw/ppc/spapr_vio.c
@@ -457,6 +457,7 @@ static int spapr_vio_busdev_init(DeviceState *qdev)
if (pc->rtce_window_size) {
uint32_t liobn = SPAPR_VIO_BASE_LIOBN | dev->reg;
dev->tcet = spapr_tce_new_table(qdev, liobn,
+ 0,
SPAPR_TCE_PAGE_SHIFT,
pc->rtce_window_size >>
SPAPR_TCE_PAGE_SHIFT);
OpenPOWER on IntegriCloud