Skip to content

Commit 85d1189

Browse files
committed
docs: modify nemu mem size config section
1 parent c6dac7f commit 85d1189

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,11 @@ Then, download and configuare all components from the github:
9595
```bash
9696
$ make setup
9797
```
98+
After that, you need to set the `NEMU_HOME` and `NOOP_HOME` environment variables:
99+
```bash
100+
$ NEMU_HOME=$(pwd)/dependency/NEMU
101+
$ NOOP_HOME=$(pwd)/dependency
102+
```
98103

99104
Becuase running the isa test don't need 8G memory, so you need to config the simulation memory size to reduce memory usage. You need to type `make menuconfig` as follow:
100105

@@ -111,7 +116,17 @@ $ make menuconfig
111116
</p>
112117
</p>
113118

114-
Usually, 256MB memory address space is enough for simulation. from 8G to 256MB. and modify [Memory - Configuration]->[Memory size] to '0x10000000' manually.
119+
Usually, 256MB memory address space is enough for simulation. You need to switch into `[Memory - Configuration]` menu and change `[Memory size]` value into `0x10000000` manually as follow picture shows. It can adjust difftest's simulation memory size from 8G to 256MB.
120+
121+
<p align="center">
122+
<img src="https://raw.githubusercontent.com/microdynamics-cpu/tree-core-cpu-res/main/nemu-build-mem.png"/>
123+
<p align="center">
124+
<em>The memory address size menu</em>
125+
</p>
126+
</p>
127+
128+
Last, remember to type `Save` button in bottom menu to save the `.config` file. Then, type `Exit` to exit the menuconfig.
129+
115130
cd in root rtl dir
116131
```bash
117132
$ make nemuBuild

0 commit comments

Comments
 (0)