From 1fa2174178a5432443f114dfc059ba19c53b1fae Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Fri, 24 Mar 2017 18:10:41 -0700 Subject: [PATCH] Default to 2 GiB of memory --- riscv/sim.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/riscv/sim.cc b/riscv/sim.cc index e1a8540..cb1ed71 100644 --- a/riscv/sim.cc +++ b/riscv/sim.cc @@ -34,7 +34,7 @@ sim_t::sim_t(const char* isa, size_t nprocs, size_t mem_mb, bool halted, size_t memsz0 = (size_t)mem_mb << 20; size_t quantum = 1L << 20; if (memsz0 == 0) - memsz0 = (size_t)((sizeof(size_t) == 8 ? 4096 : 2048) - 256) << 20; + memsz0 = (size_t)2048 << 20; memsz = memsz0; while ((mem = (char*)calloc(1, memsz)) == NULL) -- 2.30.2