From: Tim Newsome Date: Thu, 16 Nov 2017 00:51:49 +0000 (-0800) Subject: Clarify PrivTest detail. X-Git-Url: https://git.libre-soc.org/?p=riscv-tests.git;a=commitdiff_plain;h=60c5dd3ffbde1383b54ab66088e85a91ebe3e324;hp=6cd865488a4ef49f0f68f46ef619f097a0ae9ec0 Clarify PrivTest detail. --- diff --git a/debug/gdbserver.py b/debug/gdbserver.py index 162854c..43ac1e0 100755 --- a/debug/gdbserver.py +++ b/debug/gdbserver.py @@ -814,6 +814,8 @@ class PrivTest(GdbTest): class PrivRw(PrivTest): def test(self): """Test reading/writing priv.""" + # Leave the PC at _start, where the first 4 instructions should be + # legal in any mode. for privilege in range(4): self.gdb.p("$priv=%d" % privilege) self.gdb.stepi()