From 5f4a8e6543b555347befe765aa5fef157d67eb89 Mon Sep 17 00:00:00 2001 From: Tim Hutt Date: Tue, 10 Dec 2024 10:18:01 +0000 Subject: [PATCH] Increase RAM size This matches Spike, and means a default Linux build has enough RAM to boot properly. I'm not exactly sure why the old value was not sufficient but it didn't work when I tried and this did, and I think consistency with Spike is valuable anyway. --- c_emulator/riscv_platform_impl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c_emulator/riscv_platform_impl.c b/c_emulator/riscv_platform_impl.c index ef7448764..fd7cbdc2c 100644 --- a/c_emulator/riscv_platform_impl.c +++ b/c_emulator/riscv_platform_impl.c @@ -28,7 +28,7 @@ bool rv_enable_writable_fiom = true; uint64_t rv_writable_hpm_counters = 0xFFFFFFFF; uint64_t rv_ram_base = UINT64_C(0x80000000); -uint64_t rv_ram_size = UINT64_C(0x4000000); +uint64_t rv_ram_size = UINT64_C(0x80000000); uint64_t rv_rom_base = UINT64_C(0x1000); uint64_t rv_rom_size = UINT64_C(0x100);