Skip to content

Commit

Permalink
cortexa: Cleaned up and removed the manual CSW manipulation logic fro…
Browse files Browse the repository at this point in the history
…m cortexa_probe()
  • Loading branch information
dragonmux committed Sep 19, 2023
1 parent e33bb1a commit 54be57e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/target/cortexa.c
Original file line number Diff line number Diff line change
Expand Up @@ -508,10 +508,6 @@ bool cortexa_probe(adiv5_access_port_s *ap, target_addr_t base_address)
target->halt_poll = cortexa_halt_poll;
target->halt_resume = cortexa_halt_resume;

/* Set up APB CSW, we won't touch this again */
uint32_t csw = ap->csw | ADIV5_AP_CSW_SIZE_WORD;
adiv5_ap_write(ap, ADIV5_AP_CSW, csw);

cortex_read_cpuid(target);
/* The format of the debug identification register is described in DDI0406C §C11.11.15 pg2217 */
const uint32_t debug_id = cortex_dbg_read32(target, CORTEXAR_DBG_IDR);
Expand Down

0 comments on commit 54be57e

Please sign in to comment.