diff options
author | Pavel Pisa <pisa@cmp.felk.cvut.cz> | 2019-02-11 18:40:40 +0100 |
---|---|---|
committer | Pavel Pisa <pisa@cmp.felk.cvut.cz> | 2019-02-11 18:40:40 +0100 |
commit | bb7092e96401e4c89c44773c932788c9b0f87b53 (patch) | |
tree | c888153bbdeb52f1c882af1c92fb6e1e9ebe894b /qtmips_machine/qtmipsmachine.cpp | |
parent | 10f4d52221438f0d5ce7cc72c5b6c1f6720ef5c6 (diff) | |
download | qtmips-bb7092e96401e4c89c44773c932788c9b0f87b53.tar.gz qtmips-bb7092e96401e4c89c44773c932788c9b0f87b53.tar.bz2 qtmips-bb7092e96401e4c89c44773c932788c9b0f87b53.zip |
Basic "hardware" breakpoints support implemented.
It works like real inserted breakpoint on hardware.
Breakpoint has to be removed to allow code continue
because else instruction is refetch and breakpoint
triggers again. The single step function should
resolve temporal masking of the breakpoint.
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Diffstat (limited to 'qtmips_machine/qtmipsmachine.cpp')
-rw-r--r-- | qtmips_machine/qtmipsmachine.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qtmips_machine/qtmipsmachine.cpp b/qtmips_machine/qtmipsmachine.cpp index f846ed2..23a83d3 100644 --- a/qtmips_machine/qtmipsmachine.cpp +++ b/qtmips_machine/qtmipsmachine.cpp @@ -206,9 +206,9 @@ void QtMipsMachine::register_exception_handler(ExceptionCause excause, cr->register_exception_handler(excause, exhandler); } -void QtMipsMachine::inser_hwbreak(std::uint32_t address) { +void QtMipsMachine::insert_hwbreak(std::uint32_t address) { if (cr != nullptr) - cr->inser_hwbreak(address); + cr->insert_hwbreak(address); } void QtMipsMachine::remove_hwbreak(std::uint32_t address) { |