Re: [PATCH v1 1/3] hw/loongarch: Add memmap for LoongArch virt machine

2022-09-23 Thread gaosong
在 2022/9/23 上午11:29, Xiaojuan Yang 写道: +#define VIRT_PCI_IO_OFFSET 0x4000 +static MemMapEntry virt_memmap[] = { +[VIRT_LOWDDR] = {0x0,0x1000 }, +[VIRT_PCH] = { 0x1000,0x1000 }, +[VIRT_PM] = { 0x1008, 0x100 }, +

[PATCH v1 1/3] hw/loongarch: Add memmap for LoongArch virt machine

2022-09-22 Thread Xiaojuan Yang
Using memmap table for loongarch virt machine type, this method comes from arm/riscv architectures. Signed-off-by: Xiaojuan Yang --- hw/loongarch/acpi-build.c | 46 ++-- hw/loongarch/fw_cfg.c | 5 +- hw/loongarch/virt.c | 138 ++--