target/riscv: fix ACPI MCFG table
MCFG segments should point to PCI configuration range, not BAR MMIO.
Signed-off-by: Ilya Chugin <danger_mail@list.ru>
Fixes: 55ecd83b36
("hw/riscv/virt-acpi-build.c: Add IO controllers and devices")
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Sunil V L <sunilvl@ventanamicro.com>
Message-ID: <180d236d-c8e4-411a-b4d2-632eb82092fa@list.ru>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
This commit is contained in:
parent
6979b7b3f2
commit
3018765971
@ -647,8 +647,8 @@ static void virt_acpi_build(RISCVVirtState *s, AcpiBuildTables *tables)
|
||||
acpi_add_table(table_offsets, tables_blob);
|
||||
{
|
||||
AcpiMcfgInfo mcfg = {
|
||||
.base = s->memmap[VIRT_PCIE_MMIO].base,
|
||||
.size = s->memmap[VIRT_PCIE_MMIO].size,
|
||||
.base = s->memmap[VIRT_PCIE_ECAM].base,
|
||||
.size = s->memmap[VIRT_PCIE_ECAM].size,
|
||||
};
|
||||
build_mcfg(tables_blob, tables->linker, &mcfg, s->oem_id,
|
||||
s->oem_table_id);
|
||||
|
Loading…
Reference in New Issue
Block a user