Skip to content

Gem5-based environment for simulating programs compiled for ARM w/o SVE

Notifications You must be signed in to change notification settings

jaopaulolc/gem5-arm-sve

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ARM SVE Simulation

This repository contains the minimal setup to simulate programs compiled for ARM w/o SVE instructions.

Steps after cloning the repository

Fetch submodules

git submodule update --init --recursive

Set environment variables

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

Building GEM5

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

Building M5

With M5Ops we can programatically define the region-of-interest (ROI) and easily dump simulation statistics.

./scripts/build-m5.sh

Testing Gem5 build & M5

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.

About

Gem5-based environment for simulating programs compiled for ARM w/o SVE

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published