]> git.proxmox.com Git - mirror_qemu.git/commit - hw/ppc/spapr_iommu.c
hw/ppc/spapr_iommu: Fix the check for invalid upper bits in liobn
authorThomas Huth <thuth@redhat.com>
Thu, 7 May 2015 05:33:38 +0000 (15:33 +1000)
committerAlexander Graf <agraf@suse.de>
Wed, 3 Jun 2015 21:56:51 +0000 (23:56 +0200)
commitf9ce8e0aa3fb55ae7a8ea34d3169e73e87feb337
tree8c1d69c87ca9c907d335f79e71a48d4a64fbbd2f
parentdea1b3ce756d7242d4212c22b7d6e6a896495154
hw/ppc/spapr_iommu: Fix the check for invalid upper bits in liobn

The check "liobn & 0xFFFFFFFF00000000ULL" in spapr_tce_find_by_liobn()
is completely useless since liobn is only declared as an uint32_t
parameter. Fix this by using target_ulong instead (this is what most
of the callers of this function are using, too).

Signed-off-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Alexander Graf <agraf@suse.de>
hw/ppc/spapr_iommu.c
include/hw/ppc/spapr.h