From 745a2aff8602a48b723a8d2ebf54b0e92cd17b30 Mon Sep 17 00:00:00 2001 From: Pavel Pisa Date: Mon, 11 Feb 2019 17:44:29 +0100 Subject: Prepare core for "hardware" breakpoints support and add signals to follow stages. Signed-off-by: Pavel Pisa --- qtmips_machine/qtmipsmachine.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'qtmips_machine/qtmipsmachine.cpp') 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; +} -- cgit v1.2.3