From: Andrew Waterman Date: Sat, 25 Mar 2017 01:10:41 +0000 (-0700) Subject: Default to 2 GiB of memory X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1fa2174178a5432443f114dfc059ba19c53b1fae;p=riscv-isa-sim.git Default to 2 GiB of memory --- 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)