From 5ef063a00a28f044dbc1c6095f090a08df5f8dba Mon Sep 17 00:00:00 2001 From: Almeet Bhullar Date: Mon, 25 Nov 2024 03:38:15 +0000 Subject: [PATCH] Allow Host Watcher to allow writing to erisc pc registers on BH --- tt_metal/impl/debug/sanitize_noc_host.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tt_metal/impl/debug/sanitize_noc_host.hpp b/tt_metal/impl/debug/sanitize_noc_host.hpp index 967d69ea7e6..0d193cd837d 100644 --- a/tt_metal/impl/debug/sanitize_noc_host.hpp +++ b/tt_metal/impl/debug/sanitize_noc_host.hpp @@ -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::vectorcoords, CoreCoord core) { for (CoreCoord item : coords) {