mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
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>
This commit is contained in:
parent
dea1b3ce75
commit
f9ce8e0aa3
2 changed files with 3 additions and 3 deletions
|
@ -511,7 +511,7 @@ struct sPAPRTCETable {
|
|||
QLIST_ENTRY(sPAPRTCETable) list;
|
||||
};
|
||||
|
||||
sPAPRTCETable *spapr_tce_find_by_liobn(uint32_t liobn);
|
||||
sPAPRTCETable *spapr_tce_find_by_liobn(target_ulong liobn);
|
||||
void spapr_events_init(sPAPREnvironment *spapr);
|
||||
void spapr_events_fdt_skel(void *fdt, uint32_t epow_irq);
|
||||
int spapr_h_cas_compose_response(target_ulong addr, target_ulong size);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue