Browse Source
before this patch, hart access to debug module region was controlled in two places: 1. pmp_ok performed the normal architectural PMP checks, but **bypassed** them for debug module region accesses while the hart was in debug mode. 2. mmio_ok **rejected** debug module region accesses from harts outside debug mode. Processor-less debug_mmu accesses remained allowed. This patch moves the control decision entirely to pmp_ok routine: **allow** debug module regoin accesses in debug mode and **deny** them otherwise. This check is run before the no-PMP fast path, making mmio_ok redundant. Additionally, we flush the TLB on processor reset because it may contain stale entries from the time while hart was in debug mode.pull/2343/head
3 changed files with 7 additions and 22 deletions
Loading…
Reference in new issue