This is the MIPSR3000 model extended with MIPS-vt.
To compile and simulate using this model is necessary to have
ArchC 2.0 installed with
SystemC 2.2.
To generate the compiler download the release and execute:
$ ../../bin/asmgen.sh -a r3000 r3000.ac
$ mkdir build-dir
$ mkdir install-dir
$ cd build-dir
$ binutils-dir/configure --target=r3000-elf --prefix=$PWD/../install-dir
$ make all-gas
$ make install-gas
To generate the assembler:
$ ./install-dir/bin/r3000-elf-as -o test1.o test1.s
$ ./install-dir/bin/r3000-elf-ld -o test1.a test1.o
To compile the simulator with statistics:
$../../bin/accsim r3000.ac -abi -dy -s
Add the vmcs.cpp source file in Makefile.archc at the end of this lines:
# These are the source files provided by the user + ArchC sources
SRCS := main.cpp $(ACSRCS) $(ACFILES) $(MODULE)-isa.cpp $(MODULE)_syscall.cpp vmcs.cpp
So, execute:
$ make -f Makefile.archc
$ ./r3000.x --load=test1.o