From 6650f4e3f7b11d581a8be07a2beb16f69530fb36 Mon Sep 17 00:00:00 2001 From: Tim Newsome Date: Mon, 28 Aug 2017 12:17:37 -0700 Subject: [PATCH] Increase remotetimeout for spike targets. On overloaded systems, when executing compare-sections, otherwise gdb might hit a timeout and the compare-sections code doesn't deal with it. (You get an error message complaining that 130 is not a valid hex digit.) --- debug/targets/RISC-V/spike32-2.py | 1 + debug/targets/RISC-V/spike32.py | 1 + debug/targets/RISC-V/spike64-2.py | 1 + debug/targets/RISC-V/spike64-2gdb.py | 11 +++++++++++ debug/targets/RISC-V/spike64.py | 1 + 5 files changed, 15 insertions(+) create mode 100644 debug/targets/RISC-V/spike64-2gdb.py diff --git a/debug/targets/RISC-V/spike32-2.py b/debug/targets/RISC-V/spike32-2.py index 09bab1d..6cf558d 100644 --- a/debug/targets/RISC-V/spike32-2.py +++ b/debug/targets/RISC-V/spike32-2.py @@ -6,6 +6,7 @@ import spike32 # pylint: disable=import-error class spike32_2(targets.Target): harts = [spike32.spike32_hart(), spike32.spike32_hart()] openocd_config_path = "spike.cfg" + timeout_sec = 30 def create(self): return testlib.Spike(self) diff --git a/debug/targets/RISC-V/spike32.py b/debug/targets/RISC-V/spike32.py index e80f60a..fc7d598 100644 --- a/debug/targets/RISC-V/spike32.py +++ b/debug/targets/RISC-V/spike32.py @@ -12,6 +12,7 @@ class spike32_hart(targets.Hart): class spike32(targets.Target): harts = [spike32_hart()] openocd_config_path = "spike.cfg" + timeout_sec = 30 def create(self): return testlib.Spike(self) diff --git a/debug/targets/RISC-V/spike64-2.py b/debug/targets/RISC-V/spike64-2.py index f2e0a8a..c6321dc 100644 --- a/debug/targets/RISC-V/spike64-2.py +++ b/debug/targets/RISC-V/spike64-2.py @@ -6,6 +6,7 @@ import spike64 # pylint: disable=import-error class spike64_2(targets.Target): harts = [spike64.spike64_hart(), spike64.spike64_hart()] openocd_config_path = "spike.cfg" + timeout_sec = 30 def create(self): return testlib.Spike(self) diff --git a/debug/targets/RISC-V/spike64-2gdb.py b/debug/targets/RISC-V/spike64-2gdb.py new file mode 100644 index 0000000..200ffaa --- /dev/null +++ b/debug/targets/RISC-V/spike64-2gdb.py @@ -0,0 +1,11 @@ +import targets +import testlib + +import spike64 + +class spike64_2gdb(targets.Target): + harts = [spike64.spike64_hart(), spike64.spike64_hart()] + openocd_config_path = "spike-2gdb.cfg" + + def create(self): + return testlib.Spike(self) diff --git a/debug/targets/RISC-V/spike64.py b/debug/targets/RISC-V/spike64.py index 84586e3..6e3da89 100644 --- a/debug/targets/RISC-V/spike64.py +++ b/debug/targets/RISC-V/spike64.py @@ -12,6 +12,7 @@ class spike64_hart(targets.Hart): class spike64(targets.Target): harts = [spike64_hart()] openocd_config_path = "spike.cfg" + timeout_sec = 30 def create(self): return testlib.Spike(self) -- 2.30.2