extends supported break point types

This commit is contained in:
Eyck Jentzsch 2022-08-06 09:53:24 +02:00
parent e60fa3d5e6
commit 1ad66a71d8
1 changed files with 2 additions and 0 deletions

View File

@ -335,6 +335,7 @@ template <typename ARCH> status riscv_target_adapter<ARCH>::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 <typename ARCH> status riscv_target_adapter<ARCH>::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);