pub fn is_region0_monitor_interrupt_set(&self) -> bool {
        self.regs()
            .core_0_intr_raw()
            .read()
            .core_0_area_dram0_0_rd_raw()
            .bit_is_set()
            || self
                .regs()
                .core_0_intr_raw()
                .read()
                .core_0_area_dram0_0_wr_raw()
                .bit_is_set()
    }
Check, if region0 monitoring interrupt is set on main core.
esp-hal/src/assist_debug.rs