diff options
author | Tim Newsome <tim@sifive.com> | 2017-07-18 11:35:59 -0700 |
---|---|---|
committer | Tim Newsome <tim@sifive.com> | 2017-07-18 11:35:59 -0700 |
commit | 8ec0e8c02d1b1db0112c8564888f2d8dd88cbe15 (patch) | |
tree | 641fa8b98e311e1ac02b903094b6d71307e475dc /debug/gdbserver.py | |
parent | cf95e52b21a842cb77d39d25a2c1796c6a5be2a2 (diff) | |
download | riscv-tests-8ec0e8c02d1b1db0112c8564888f2d8dd88cbe15.zip riscv-tests-8ec0e8c02d1b1db0112c8564888f2d8dd88cbe15.tar.gz riscv-tests-8ec0e8c02d1b1db0112c8564888f2d8dd88cbe15.tar.bz2 |
Check all PCs after reset.
Diffstat (limited to 'debug/gdbserver.py')
-rwxr-xr-x | debug/gdbserver.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/debug/gdbserver.py b/debug/gdbserver.py index 5ac0153..f6c61c3 100755 --- a/debug/gdbserver.py +++ b/debug/gdbserver.py @@ -208,7 +208,13 @@ class InstantHaltTest(GdbTest): """Assert that reset is really resetting what it should.""" self.gdb.command("monitor reset halt") self.gdb.command("flushregs") - assertEqual(self.target.reset_vector, self.gdb.p("$pc")) + threads = self.gdb.threads() + pcs = [] + for t in threads: + self.gdb.thread(t) + pcs.append(self.gdb.p("$pc")) + for pc in pcs: + assertEqual(self.target.reset_vector, pc) # mcycle and minstret have no defined reset value. mstatus = self.gdb.p("$mstatus") assertEqual(mstatus & (MSTATUS_MIE | MSTATUS_MPRV | |