forked from OpenXiangShan/NEMU
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
monitor: support init mem with a gz file (OpenXiangShan#7)
This commit adds support for initializing memory with a compressed gzip file. When CONFIG_MEM_COMPRESS is enabled, files with names ending with ".gz" will be seen as compressed gzip files and be decompressed before loading into memory. Only non-zero bytes are copied into pmem, to avoid using too much memory (by copy-on-write).
- Loading branch information
1 parent
81f0296
commit eed97c7
Showing
3 changed files
with
68 additions
and
1 deletion.
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