Mingwang Li 03fd0c5fe9 hw/riscv: virt: Use machine->ram as the system memory
If default main_mem is used to be registered as the system memory,
other memory cannot be initialized. Therefore, the system memory
should be initialized to the machine->ram, which consists of the
default main_mem and other possible memory required by applications,
such as shared hugepage memory in DPDK.

Also, the mc->defaul_ram_id should be set to the default main_mem,
such as "riscv_virt_board.ram" for the virt machine.

Signed-off-by: Mingwang Li <limingwang@huawei.com>
Signed-off-by: Yifei Jiang <jiangyifei@huawei.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-id: 20211016030908.40480-1-limingwang@huawei.com
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2021-10-22 07:47:51 +10:00
..
2021-09-02 13:26:22 +02:00
2021-10-21 08:03:58 -07:00
2021-10-12 08:20:08 +02:00
2021-10-12 08:20:08 +02:00
2021-10-18 00:41:36 +02:00
2021-10-18 00:41:36 +02:00
2021-09-21 07:56:49 +10:00
2021-10-20 04:44:05 -04:00
2021-10-12 08:20:08 +02:00