diff options
author | Tim Newsome <tim@sifive.com> | 2016-03-12 17:50:32 -0800 |
---|---|---|
committer | Tim Newsome <tim@sifive.com> | 2016-05-23 12:12:10 -0700 |
commit | 824689f929a4148668aaab2b31fa87bf16e8c804 (patch) | |
tree | ede985e3e63e5f81b70c59f3a0d08a15b6d5ef19 /riscv/execute.cc | |
parent | 3fc2f3d5435f6eddaa0670f5ab3c555508bca5bb (diff) | |
download | spike-824689f929a4148668aaab2b31fa87bf16e8c804.zip spike-824689f929a4148668aaab2b31fa87bf16e8c804.tar.gz spike-824689f929a4148668aaab2b31fa87bf16e8c804.tar.bz2 |
Flush icache when using swbps and report to gdb.
Diffstat (limited to 'riscv/execute.cc')
-rw-r--r-- | riscv/execute.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/riscv/execute.cc b/riscv/execute.cc index 4bfaf4a..c36cb4f 100644 --- a/riscv/execute.cc +++ b/riscv/execute.cc @@ -56,7 +56,7 @@ void processor_t::step(size_t n) // TODO: We should really not call this function at all when halted, to avoid // burning CPU. if (single_step) { - halted = false; + set_halted(false, HR_NONE); n = 1; } @@ -136,6 +136,6 @@ miss: if (single_step) { single_step = false; - halted = true; + set_halted(true, HR_STEPPED); } } |