aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2021-05-03 01:03:19 -0700
committerH. Peter Anvin <hpa@zytor.com>2021-05-03 01:03:19 -0700
commit3f74b033a04f5892caaefd4a6c82b0fb3bed18b9 (patch)
treee7290d26831809fd80cb5ddcbbbbc41c82cf6ab1
parent312a5b754911d3d34e450f55ef86bd0c08902479 (diff)
downloadfred-scripts-3f74b033a04f5892caaefd4a6c82b0fb3bed18b9.tar.gz
fred-scripts-3f74b033a04f5892caaefd4a6c82b0fb3bed18b9.tar.xz
fred-scripts-3f74b033a04f5892caaefd4a6c82b0fb3bed18b9.zip
simics scripts: add %script%
-rw-r--r--fred-smp.simics2
-rw-r--r--fred-up.simics2
-rw-r--r--fred.simics10
3 files changed, 7 insertions, 7 deletions
diff --git a/fred-smp.simics b/fred-smp.simics
index 2c5748c..e639a7b 100644
--- a/fred-smp.simics
+++ b/fred-smp.simics
@@ -1,2 +1,2 @@
$num_cores = 2
-run-command-file "fred.simics"
+run-command-file "%script%/fred.simics"
diff --git a/fred-up.simics b/fred-up.simics
index cfc3409..76f5e6b 100644
--- a/fred-up.simics
+++ b/fred-up.simics
@@ -1,2 +1,2 @@
$num_cores = 1
-run-command-file "fred.simics"
+run-command-file "%script%/fred.simics"
diff --git a/fred.simics b/fred.simics
index b73e2e9..4e879d2 100644
--- a/fred.simics
+++ b/fred.simics
@@ -2,12 +2,12 @@
# Add a link "linux" to the kernel obj tree for this script to run
#
log-setup -time-stamp
-$disk0_image = "linux/arch/x86/boot/hdimage"
-$disk1_image = "disk.img"
+$disk0_image = "%script%/linux/arch/x86/boot/hdimage"
+$disk1_image = "%script%/disk.img"
$disk1_size = NIL
$cpu_comp_class = "x86QSP2"
-run-command-file "targets/qsp-x86/qsp-client-core.simics"
+run-command-file "%script%/targets/qsp-x86/qsp-client-core.simics"
# Simics uses the wrong device ID for the Bochs VGA model...
board.mb.gpu.vga->config_registers[0] = 0x11111234
@@ -60,5 +60,5 @@ foreach $cpu in (board.get-processor-list) {
enable-debugger
add-symbol-file linux/vmlinux
-board.serconsole.con.capture-start "ttyS0.txt" -overwrite
-board.serconsole1.con.capture-start "ttyS1.txt" -overwrite
+board.serconsole.con.capture-start "%script%/ttyS0.txt" -overwrite
+board.serconsole1.con.capture-start "%script%/ttyS1.txt" -overwrite