arm64/qemu/fdt: merge ioresource MEM64 to prefetchable memory

this commit with fix prefetchable memory fault on IVSHMEM

Signed-off-by: chao an <anchao.archer@bytedance.com>
This commit is contained in:
chao an
2025-02-10 13:26:50 +08:00
committed by Alan C. Assis
parent fa44369e0f
commit 55f616f055
@@ -127,7 +127,8 @@ static void register_pci_host_from_fdt(const void *fdt)
io.start = fdt_ld_by_cells(ranges + na, pna);
io.end = io.start + fdt_ld_by_cells(ranges + na + pna, ns);
}
else if ((type & FDT_PCI_PREFTCH) == FDT_PCI_PREFTCH)
else if ((type & FDT_PCI_PREFTCH) == FDT_PCI_PREFTCH ||
(type & FDT_PCI_TYPE_MASK) == FDT_PCI_TYPE_MEM64)
{
prefetch.start = fdt_ld_by_cells(ranges + na, pna);
prefetch.end = prefetch.start +