summaryrefslogtreecommitdiff
path: root/meta-arm/meta-atp/recipes-devtools/atp/atp-gem5/start-gem5-atp.sh
blob: 16dac47714d36e6441581131164900dd4f6ccb12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/env bash

source <(bitbake -e gem5-aarch64-native | grep \
    -e "^STAGING_DATADIR_NATIVE=" -e "^DEPLOY_DIR_TOOLS=")

# Used by baremetal_atp.py
export GEM5_DATADIR=${STAGING_DATADIR_NATIVE}/gem5
export ATP_DATADIR=${STAGING_DATADIR_NATIVE}/gem5

# Fast-forward Linux boot and restore into timing simulation
${DEPLOY_DIR_TOOLS}/start-gem5.sh --checkpoint $@
${DEPLOY_DIR_TOOLS}/start-gem5.sh --restore-with-cpu TimingSimpleCPU \
                                  --checkpoint-restore 1 $@