Skip to content

Commit b27912a

Browse files
committed
Update README
To reflect the support for the system emulation in the web browsers.
1 parent 05924ce commit b27912a

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

README.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -378,16 +378,25 @@ $ source ~/emsdk/emsdk_env.sh
378378
Change the Emscripten SDK environment path if necessary.
379379
380380
At this point, you can build and start a web server service to serve WebAssembly by running:
381+
- user space emulation:
381382
```shell
382-
$ make CC=emcc start-web
383+
$ make CC=emcc start-web -j8
384+
```
385+
- system emulation:
386+
```shell
387+
$ make CC=emcc start-web ENABLE_SYSTEM=1 INITRD_SIZE=32 -j8
383388
```
384389
You would see the server's IP:PORT in your terminal. Copy and paste it to the browsers and
385390
you just access the index page of `rv32emu`.
386391
387-
You would see a dropdown menu which you can use to select the ELF executable. Select one and
388-
click the Run button to run it.
392+
You would see a dropdown menu which you can use to select the ELF executable for user space emulation, select one and
393+
click the 'Run' button to run it. For system emulation, click the 'Run Linux' button to boot Linux.
394+
395+
Alternatively, you may want to view a hosted `rv32emu` since building takes some time.
396+
- [user space emulation demo page](https://sysprog21.github.io/rv32emu-demo/)
397+
- [system emulation demo page](https://sysprog21.github.io/rv32emu-demo/system)
389398
390-
Alternatively, you may want to view a hosted `rv32emu` [demo page](https://sysprog21.github.io/rv32emu-demo/) since building takes some time.
399+
Both pages can be easily switched using the navigation button.
391400
392401
## Contributing
393402
See [CONTRIBUTING.md](CONTRIBUTING.md) for contribution guidelines.

0 commit comments

Comments
 (0)