Skip to content

Commit

Permalink
Allow Host Watcher to allow writing to erisc pc registers on BH
Browse files Browse the repository at this point in the history
  • Loading branch information
abhullar-tt committed Nov 25, 2024
1 parent 9003451 commit 8f95992
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tt_metal/impl/debug/sanitize_noc_host.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,12 @@ namespace tt {
(((a) >= NOC_OVERLAY_START_ADDR) && ((a) < NOC_OVERLAY_START_ADDR + NOC_STREAM_REG_SPACE_SIZE * NOC_NUM_STREAMS)) || \
(((a) >= NOC0_REGS_START_ADDR) && ((a) < NOC0_REGS_START_ADDR + 0x1000)) || \
(((a) >= NOC1_REGS_START_ADDR) && ((a) < NOC1_REGS_START_ADDR + 0x1000)) || \
((a) == RISCV_DEBUG_REG_SOFT_RESET_0))
((a) == RISCV_DEBUG_REG_SOFT_RESET_0) || \
((a) == 0xFFB14000 || (a) == 0xFFB14008))
#define DEBUG_VALID_WORKER_ADDR(a, l) (DEBUG_VALID_L1_ADDR(a, l) || (DEBUG_VALID_REG_ADDR(a) && (l) == 4))
#define DEBUG_VALID_DRAM_ADDR(a, l, b, e) (((a) >= b) && ((a) + (l) <= e))

#define DEBUG_VALID_ETH_ADDR(a, l) (((a) >= HAL_MEM_ETH_BASE) && ((a) + (l) <= HAL_MEM_ETH_BASE + HAL_MEM_ETH_SIZE))
#define DEBUG_VALID_ETH_ADDR(a, l) ((((a) >= HAL_MEM_ETH_BASE) && ((a) + (l) <= HAL_MEM_ETH_BASE + HAL_MEM_ETH_SIZE)) || (DEBUG_VALID_REG_ADDR(a) && (l) == 4))

static bool coord_found_p(std::vector<CoreCoord>coords, CoreCoord core) {
for (CoreCoord item : coords) {
Expand Down

0 comments on commit 8f95992

Please sign in to comment.