diff options
author | Tim Newsome <tim@sifive.com> | 2017-11-15 16:51:49 -0800 |
---|---|---|
committer | Tim Newsome <tim@sifive.com> | 2017-11-15 16:57:56 -0800 |
commit | 60c5dd3ffbde1383b54ab66088e85a91ebe3e324 (patch) | |
tree | b0766b0564c3b063605b7439599c07e6e6184d13 | |
parent | 6cd865488a4ef49f0f68f46ef619f097a0ae9ec0 (diff) | |
download | riscv-tests-60c5dd3ffbde1383b54ab66088e85a91ebe3e324.zip riscv-tests-60c5dd3ffbde1383b54ab66088e85a91ebe3e324.tar.gz riscv-tests-60c5dd3ffbde1383b54ab66088e85a91ebe3e324.tar.bz2 |
Clarify PrivTest detail.
-rwxr-xr-x | debug/gdbserver.py | 2 |
1 files changed, 2 insertions, 0 deletions
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() |