forked from sysprog21/rv32emu
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refine hard-coded memory layout for system emulation
During the enhancement of guestOS to run SDL-based applications like Doom, the Doom artifacts (DOOM1.wad) occupy 4.0MiB, and the default rootfs.cpio also uses 4.0MiB, totaling 8MiB. When additional applications are added to rootfs.cpio, the hard-coded 8MiB limit for rootfs.cpio in map_file becomes insufficient. This commit refines the hard-coded memory layout variables and makes them configurable during the build. The user can now define MEM_SIZE, DTB_SIZE, and INITRD_SIZE in MiB, while other memory offsets are calculated dynamically based on these values. Related: sysprog21#510
- Loading branch information
1 parent
e2993fc
commit 7425cb6
Showing
5 changed files
with
39 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters