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.
Merge pull request OpenXiangShan#266 from OpenXiangShan/checkpoint_zs…
…td_decompress support using zstd to take and restore checkpoints
- Loading branch information
Showing
15 changed files
with
437 additions
and
130 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
CONFIG_ISA_riscv64=y | ||
CONFIG_CLINT_MMIO=0x38000000 | ||
# CONFIG_RVV is not set | ||
CONFIG_USE_XS_ARCH_CSRS=y | ||
CONFIG_MSIZE=0x200000000 | ||
CONFIG_PC_RESET_OFFSET=0x0 | ||
# CONFIG_MEM_RANDOM is not set | ||
CONFIG_MEM_COMPRESS=y | ||
# CONFIG_HAS_SERIAL is not set | ||
CONFIG_HAS_UARTLITE=y | ||
CONFIG_UARTLITE_MMIO=0x40600000 | ||
CONFIG_FB_ADDR=0x50000000 | ||
CONFIG_VGA_CTL_MMIO=0x40001000 | ||
# CONFIG_HAS_AUDIO is not set | ||
# CONFIG_HAS_DISK is not set | ||
CONFIG_SDCARD_CTL_MMIO=0x40002000 | ||
CONFIG_FPU_SOFT=y | ||
CONFIG_AC_SOFT=y | ||
# CONFIG_DISABLE_INSTR_CNT is not set |
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
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#*************************************************************************************** | ||
# Copyright (c) 2020-2022 Institute of Computing Technology, Chinese Academy of Sciences | ||
# | ||
# NEMU is licensed under Mulan PSL v2. | ||
# You can use this software according to the terms and conditions of the Mulan PSL v2. | ||
# You may obtain a copy of Mulan PSL v2 at: | ||
# http://license.coscl.org.cn/MulanPSL2 | ||
# | ||
# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, | ||
# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, | ||
# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. | ||
# | ||
# See the Mulan PSL v2 for more details. | ||
#**************************************************************************************/ | ||
|
||
cpt=`find output_top/test/linux/10000000 -name "*.zstd"` | ||
./build/riscv64-nemu-interpreter -b\ | ||
-r resource/gcpt_restore/build/gcpt.bin \ | ||
--restore -I 99000000\ | ||
$cpt |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#*************************************************************************************** | ||
# Copyright (c) 2020-2022 Institute of Computing Technology, Chinese Academy of Sciences | ||
# | ||
# NEMU is licensed under Mulan PSL v2. | ||
# You can use this software according to the terms and conditions of the Mulan PSL v2. | ||
# You may obtain a copy of Mulan PSL v2 at: | ||
# http://license.coscl.org.cn/MulanPSL2 | ||
# | ||
# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, | ||
# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, | ||
# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. | ||
# | ||
# See the Mulan PSL v2 for more details. | ||
#**************************************************************************************/ | ||
|
||
./build/riscv64-nemu-interpreter \ | ||
--cpt-interval 10000000 -u -b \ | ||
-D output_top \ | ||
-C test \ | ||
-w linux \ | ||
-r ./resource/gcpt_restore/build/gcpt.bin \ | ||
--dont-skip-boot\ | ||
-I 11000000 ./ready-to-run/linux-0xa0000.bin \ | ||
--checkpoint-format zstd |
Oops, something went wrong.