#!/bin/bash

GEM5_PATH=~/eda284/gem5_update
export M5_PATH=$GEM5_PATH/imgs/aarch-system-20170616/
echo -n "M5_path:"
echo "$M5_PATH" #Confirm path

$GEM5_PATH/build/ARM/gem5.opt -d ./m5out/test \
		   $GEM5_PATH/configs/example/arm/fs_bigLITTLE.py \
		   --cpu-type exynos \
		   --kernel $GEM5_PATH/imgs/aarch-system-20170616/binaries/vmlinux.arm64 \
		   --disk $GEM5_PATH/imgs/aarch-system-20170616/disks/linaro-minimal-lab-aarch64.img \
		   --big-cpus 4 \
		   --little-cpus 0 \
		   --bootscript $GEM5_PATH/imgs/aarch-system-20170616/Script.rcS \
		   --restore="$GEM5_PATH/checkpoint/cpt.3372247250500/" \
		   --caches
