aboutsummaryrefslogtreecommitdiff
path: root/riscv/execute.cc
diff options
context:
space:
mode:
authorTim Newsome <tim@sifive.com>2017-10-10 15:53:23 -0700
committerTim Newsome <tim@sifive.com>2017-12-11 13:21:47 -0800
commit46a67860915391458d7cc8cb93248059df20b8f2 (patch)
tree8dad89d9c6bb72e55fd3a09676bd63fba86e94e3 /riscv/execute.cc
parent12714e371e9b8ce2efcf0e77347ed1b33c8de27b (diff)
downloadspike-46a67860915391458d7cc8cb93248059df20b8f2.zip
spike-46a67860915391458d7cc8cb93248059df20b8f2.tar.gz
spike-46a67860915391458d7cc8cb93248059df20b8f2.tar.bz2
Make progbuf a run-time option.
Also add an implicit ebreak after the program buffer. This is not part of the spec, but hopefully it will be.
Diffstat (limited to 'riscv/execute.cc')
-rw-r--r--riscv/execute.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/riscv/execute.cc b/riscv/execute.cc
index 25e9520..878893c 100644
--- a/riscv/execute.cc
+++ b/riscv/execute.cc
@@ -147,14 +147,12 @@ void processor_t::step(size_t n)
break;
}
- if (unlikely(state.pc >= DEBUG_START &&
+ if (unlikely(state.pc >= DEBUG_ROM_ENTRY &&
state.pc < DEBUG_END)) {
// We're waiting for the debugger to tell us something.
return;
}
-
-
}
}
else while (instret < n)