extends supported break point types
This commit is contained in:
		@@ -335,6 +335,7 @@ template <typename ARCH> status riscv_target_adapter<ARCH>::add_break(break_type
 | 
				
			|||||||
    switch(type) {
 | 
					    switch(type) {
 | 
				
			||||||
    default:
 | 
					    default:
 | 
				
			||||||
        return Err;
 | 
					        return Err;
 | 
				
			||||||
 | 
					    case SW_EXEC:
 | 
				
			||||||
    case HW_EXEC: {
 | 
					    case HW_EXEC: {
 | 
				
			||||||
        auto saddr = map_addr({iss::access_type::FETCH, iss::address_type::PHYSICAL, 0, addr});
 | 
					        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});
 | 
					        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) {
 | 
					    switch(type) {
 | 
				
			||||||
    default:
 | 
					    default:
 | 
				
			||||||
        return Err;
 | 
					        return Err;
 | 
				
			||||||
 | 
					    case SW_EXEC:
 | 
				
			||||||
    case HW_EXEC: {
 | 
					    case HW_EXEC: {
 | 
				
			||||||
        auto saddr = map_addr({iss::access_type::FETCH, iss::address_type::PHYSICAL, 0, addr});
 | 
					        auto saddr = map_addr({iss::access_type::FETCH, iss::address_type::PHYSICAL, 0, addr});
 | 
				
			||||||
        unsigned handle = target_adapter_base::bp_lut.getEntry(saddr.val);
 | 
					        unsigned handle = target_adapter_base::bp_lut.getEntry(saddr.val);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user