NJU-ProjectN/nemu ics2023 initialized

NJU-ProjectN/nemu eb63cf3568dbf4e0c3c6ef462e6ec685550fabbc Merge pull request #76 from rijuyuezhu/master
This commit is contained in:
xinyangli 2023-12-21 00:20:36 +08:00
parent 1efe03efb9
commit 2824efad33
141 changed files with 19573 additions and 0 deletions

34
nemu/src/memory/Kconfig Normal file
View file

@ -0,0 +1,34 @@
menu "Memory Configuration"
config MBASE
hex "Memory base address"
default 0x0 if ISA_x86
default 0x80000000
config MSIZE
hex "Memory size"
default 0x8000000
config PC_RESET_OFFSET
hex "Offset of reset vector from the base of memory"
default 0x100000 if ISA_x86
default 0
choice
prompt "Physical memory definition"
default PMEM_GARRAY
config PMEM_MALLOC
bool "Using malloc()"
config PMEM_GARRAY
depends on !TARGET_AM
bool "Using global array"
endchoice
config MEM_RANDOM
depends on MODE_SYSTEM && !DIFFTEST && !TARGET_AM
bool "Initialize the memory with random values"
default y
help
This may help to find undefined behaviors.
endmenu #MEMORY