diff options
| author | Mingwang Li <limingwang@huawei.com> | 2021-10-16 11:09:08 +0800 |
|---|---|---|
| committer | Alistair Francis <alistair@alistair23.me> | 2021-10-22 07:47:51 +1000 |
| commit | 03fd0c5fe98f5617076527e9783d030294b64d6d (patch) | |
| tree | 0a456cc384e9e129c5c6f45b7d120e61d7c1afb3 /linux-user/riscv/cpu_loop.c | |
| parent | 54c17609372bb119575f3bb7309ea57fc1a58d1d (diff) | |
| download | focaccia-qemu-03fd0c5fe98f5617076527e9783d030294b64d6d.tar.gz focaccia-qemu-03fd0c5fe98f5617076527e9783d030294b64d6d.zip | |
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>
Diffstat (limited to 'linux-user/riscv/cpu_loop.c')
0 files changed, 0 insertions, 0 deletions