This is a modified version of GAIA CPU simulator buildable with Emscripten.
You can run the xv6 port to GAIA in Javascript environment.
Try it online at https://nullpo-head.github.io/emcc-gaia-simu/xv6.html.
GAIA is a CPU architecture we designed at the student experiment at The University of Tokyo.
To see the detail, visit https://github.com/wasabiz/gaia3
The original GAIA CPU simulator is at https://github.com/b-inary/gaia-software
A small Unix like OS for education created by MIT.
We ported xv6 to GAIA and created C89 compiler.
To see the detail, visit https://github.com/wasabiz/xv6
The site of original xv6 is at http://pdos.csail.mit.edu/6.828/2014/xv6.html
make CC=gcc
And to run,
./sim xv6.img
Just run
make
and you can run sim.js with node by
node sim.js xv6.img