qemu-riscv
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2 3/4] hw/riscv: virt: Limit RAM size in a 32-bit system


From: Bin Meng
Subject: Re: [PATCH v2 3/4] hw/riscv: virt: Limit RAM size in a 32-bit system
Date: Sat, 20 Feb 2021 10:39:10 +0800

Hi Alistair,

On Fri, Feb 19, 2021 at 11:39 PM Bin Meng <bmeng.cn@gmail.com> wrote:
>
> From: Bin Meng <bin.meng@windriver.com>
>
> RV32 supports 34-bit physical address hence the maximum RAM size
> should be limitted. Limit the RAM size to 10 GiB, which leaves
> some room for PCIe high mmio space.
>
> For 32-bit host, this is not needed as machine->ram_size cannot
> represent a RAM size that big. Use a #if size test to only do
> the size limitation for the 64-bit host.
>
> Signed-off-by: Bin Meng <bin.meng@windriver.com>
>
> ---
>
> Changes in v2:
> - Use a #if size test to only do the size limitation for the 64-bit host
>
>  hw/riscv/virt.c | 10 ++++++++++
>  1 file changed, 10 insertions(+)
>

With the v2, all 32-bit host builds in the CI pipelines passed.

Regards,
Bin



reply via email to

[Prev in Thread] Current Thread [Next in Thread]