Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allocate runtime memory based on scenarios
Previously, the emulator was configured to allocate 4 GiB of memory during initialization, which made it unsuitable for environments with limited memory, such as a virtualized Linux guest configured with 4 GiB. This commit adjusts the memory mapping requirement to 2^{19} bytes, sufficient for all known benchmarks. For configurations with SDL enabled, which support video games like Doom and Quake, the memory allocation is increased to 4 GiB. We should develop an adaptive memory mapping mechanism to address this issue effectively, rather than relying solely on static memory mapping during initialization. Reported by ztex <ztex030640417@gmail.com> and Yen-Fu Chen <qwe661234@gmail.com>. Close sysprog21#448
- Loading branch information