This repository contains plugins for custom ArchImpl support in ETISS.
RV32IMACFDK: TODO: Description
- Clone ETISS repository
- Copy (or symlink) the plugin directory (i.e.
RV32IMACFDK) into thePluginImpldirectory of the ETISS source tree. - Build ETISS as usual (following the instructions in the README)
- Clone, build and install ETISS according to the README.
- Enter one plugin directory, i.e.
cd RV32IMACFDK - Build plugin with CMake, passing it
ETISS_DIRto find the relevant CMake configuration
cmake -S . -B build -DETISS_DIR=/path/to/etiss/install/lib/CMake/ETISS -DCMAKE_INSTALL_PREFIX=$(pwd)/build/install
cmake --build build -j$(nproc)
cmake --install build- Create a directory:
mkdir ./temp/ - Create INI file with following contents:
# Filename: custom.ini
[StringConfigurations]
etiss_wd=/path/to/temp/- Create
PluginImplsubdirectory:mkdir ./temp/PluginImpl - Copy installed files into this subdir:
cp -r ./build/install/* ./temp/PluginImpl - Run ETISS via
run_helper.shscript (or callingbare_etiss_processordirectly)
/path/to/etiss/install/bin/run_helper.sh /path/to/program --arch.cpu=RV32IMACFDK -icustom.iniHint: Steps 1.-3. can be skipped if executing ETISS in the same path where the PluginImpl directory is located. This yields to this more simple procedure:
mkdir ./PluginImpl
cp -r ./build/install/* PluginImpl/
/path/to/etiss/install/bin/run_helper.sh /path/to/program --arch.cpu=RV32IMACFDK --jit.external_header_paths="$(pwd)/PluginImpl/;"- Append a line to the
list.txtfile located in/path/to/etiss/install/lib/plugins/
cat $(pwd)/build/install/lib/plugins/list.txt >> /path/to/etiss/install/lib/plugins/list.txt- Run ETISS:
/path/to/etiss/install/bin/run_helper.sh /path/to/program --arch.cpu=RV32IMACFDK
Warning: These changes will be overwritten, when ETISS is being rebuilt!