spapr_iommu: translate sPAPRTCEAccess to IOMMUAccessFlags
authorGreg Kurz <gkurz@linux.vnet.ibm.com>
Thu, 2 Jul 2015 06:23:12 +0000 (16:23 +1000)
committerAlexander Graf <agraf@suse.de>
Tue, 7 Jul 2015 15:44:51 +0000 (17:44 +0200)
commit5709af3b9520c6912fc909128ae284512b127600
tree7efd1aa57bcad105f41db296e732756660cf13b2
parent4d9ab7d4ed46c63d047862d11946996005742a09
spapr_iommu: translate sPAPRTCEAccess to IOMMUAccessFlags

The fact that these enums have matching values is pure coincidence. We
actually need to translate from the PAPR definition to the QEMU one.

This patch doesn't fix any bug, it is only code cleanup.

Suggested-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Greg Kurz <gkurz@linux.vnet.ibm.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Alexander Graf <agraf@suse.de>
hw/ppc/spapr_iommu.c