This repository contains the minimal setup to simulate programs compiled for ARM w/o SVE instructions.
git submodule update --init --recursive
Please edit the variables in scripts/setenv.sh
to reflect where your ARM GCC toochain is installed and the cross-compiler prefix.
After that, source the script:
source scripts/setenv.sh
Please install the dependencies as in GEM5’s building documentation. In particular, it is highly recommend to install:
- libprotobuf-dev
- protobuf-compiler
- libprotoc-dev
- libgoogle-perftools-dev
- libhdf5-dev
After the dependencies are installed, execute:
./scripts/build-gem5.sh
With M5Ops we can programatically define the region-of-interest (ROI) and easily dump simulation statistics.
./scripts/build-m5.sh
Build simple test application:
make -C test
Run test with Gem5:
./scripts/run-binary-in-gem5.sh test/hello-world.x
The simulation statistics should be in m5out/stats.txt
.