Files
linux-kernel-module-cheat/gem5-shell
Ciro Santilli d330f8d250 Use absolute paths for . common
Otherwise it can pick up other common in PATH first...
2018-07-22 10:42:46 +01:00

19 lines
421 B
Bash
Executable File

#!/usr/bin/env bash
. "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/common"
while getopts M:n: OPT; do
case "$OPT" in
M)
common_gem5_variant="$OPTARG"
;;
n)
common_run_id="$OPTARG"
;;
?)
exit 2
;;
esac
done
shift "$(($OPTIND - 1))"
set_common_vars -M "$common_gem5_variant" -n "$common_run_id" "$arch" true
"${common_gem5_m5term}" localhost "$common_gem5_telnet_port"