blob: 16dac47714d36e6441581131164900dd4f6ccb12 [file] [log] [blame]
Brad Bishopbec4ebc2022-08-03 09:55:16 -04001#!/usr/bin/env bash
2
3source <(bitbake -e gem5-aarch64-native | grep \
4 -e "^STAGING_DATADIR_NATIVE=" -e "^DEPLOY_DIR_TOOLS=")
5
6# Used by baremetal_atp.py
7export GEM5_DATADIR=${STAGING_DATADIR_NATIVE}/gem5
8export ATP_DATADIR=${STAGING_DATADIR_NATIVE}/gem5
9
10# Fast-forward Linux boot and restore into timing simulation
11${DEPLOY_DIR_TOOLS}/start-gem5.sh --checkpoint $@
12${DEPLOY_DIR_TOOLS}/start-gem5.sh --restore-with-cpu TimingSimpleCPU \
13 --checkpoint-restore 1 $@