aboutsummaryrefslogtreecommitdiff
path: root/qtmips_machine/qtmipsmachine.cpp
diff options
context:
space:
mode:
authorPavel Pisa <pisa@cmp.felk.cvut.cz>2019-02-11 17:44:29 +0100
committerPavel Pisa <pisa@cmp.felk.cvut.cz>2019-02-11 17:44:29 +0100
commit745a2aff8602a48b723a8d2ebf54b0e92cd17b30 (patch)
tree6ee199f87bd89e81c1d1adde78c44a161dddb938 /qtmips_machine/qtmipsmachine.cpp
parent32084b4f5dfbfa2f653f55cfa514317c4b065b1e (diff)
downloadqtmips-745a2aff8602a48b723a8d2ebf54b0e92cd17b30.tar.gz
qtmips-745a2aff8602a48b723a8d2ebf54b0e92cd17b30.tar.bz2
qtmips-745a2aff8602a48b723a8d2ebf54b0e92cd17b30.zip
Prepare core for "hardware" breakpoints support and add signals to follow stages.
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Diffstat (limited to 'qtmips_machine/qtmipsmachine.cpp')
-rw-r--r--qtmips_machine/qtmipsmachine.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/qtmips_machine/qtmipsmachine.cpp b/qtmips_machine/qtmipsmachine.cpp
index 2942bec..f846ed2 100644
--- a/qtmips_machine/qtmipsmachine.cpp
+++ b/qtmips_machine/qtmipsmachine.cpp
@@ -205,3 +205,19 @@ void QtMipsMachine::register_exception_handler(ExceptionCause excause,
if (cr != nullptr)
cr->register_exception_handler(excause, exhandler);
}
+
+void QtMipsMachine::inser_hwbreak(std::uint32_t address) {
+ if (cr != nullptr)
+ cr->inser_hwbreak(address);
+}
+
+void QtMipsMachine::remove_hwbreak(std::uint32_t address) {
+ if (cr != nullptr)
+ cr->remove_hwbreak(address);
+}
+
+bool QtMipsMachine::is_hwbreak(std::uint32_t address) {
+ if (cr != nullptr)
+ return cr->is_hwbreak(address);
+ return false;
+}