extends supported break point types
This commit is contained in:
parent
e60fa3d5e6
commit
1ad66a71d8
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue