From 1ad66a71d8e706b37b4d3b2868ac9917c712b00a Mon Sep 17 00:00:00 2001 From: Eyck Jentzsch Date: Sat, 6 Aug 2022 09:53:24 +0200 Subject: [PATCH] extends supported break point types --- src/iss/debugger/riscv_target_adapter.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/iss/debugger/riscv_target_adapter.h b/src/iss/debugger/riscv_target_adapter.h index 0c008d9..d8d105e 100644 --- a/src/iss/debugger/riscv_target_adapter.h +++ b/src/iss/debugger/riscv_target_adapter.h @@ -335,6 +335,7 @@ template status riscv_target_adapter::add_break(break_type switch(type) { default: return Err; + case SW_EXEC: case HW_EXEC: { auto saddr = map_addr({iss::access_type::FETCH, iss::address_type::PHYSICAL, 0, addr}); auto eaddr = map_addr({iss::access_type::FETCH, iss::address_type::PHYSICAL, 0, addr + length}); @@ -351,6 +352,7 @@ template status riscv_target_adapter::remove_break(break_t switch(type) { default: return Err; + case SW_EXEC: case HW_EXEC: { auto saddr = map_addr({iss::access_type::FETCH, iss::address_type::PHYSICAL, 0, addr}); unsigned handle = target_adapter_base::bp_lut.getEntry(saddr.val);