29.11.2014 Views

Fast Models Reference Manual - ARM Information Center

Fast Models Reference Manual - ARM Information Center

Fast Models Reference Manual - ARM Information Center

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Peripheral and Interface Components<br />

5.7 CADI sync watchpoints<br />

Watchpoints are only supported by the CADI/Synchronous CADI (SCADI) interfaces of<br />

processor components. They are not supported by memory components like RAMDevice.<br />

When the simulator hits a watchpoint, the CADI/SCADI interface emits a sequence, typically<br />

just one, of modeChange(CADI_EXECMODE_Bpt, bptNumber) callbacks, where bptNumber is the<br />

breakpoint ID of the watchpoint. After this sequence it sends a modeChange(CADI_EXECMODE_Stop)<br />

callback. Only after the debugger receives this Stop callback might it inspect the state of the<br />

model.<br />

Additional information about the last of the hit watchpoints can be read from the following<br />

(non-architectural) core CADI registers in register group Simulation:<br />

memoryBptPC<br />

The PC of the instruction that caused the watchpoint to hit.<br />

memoryBptAccessVA<br />

Virtual address of the access or sub-access that caused the watchpoint to hit.<br />

memoryBptAccessSize<br />

Size in bytes of the access or sub-access that caused the watchpoint to hit.<br />

memoryBptAccessRW<br />

Type of access or sub-access that caused the watchpoint to hit: 1=read, 2=write,<br />

3=both, 0=no access.<br />

These registers are not memory (or CPnn-) mapped anywhere and are not accessible to target<br />

programs. These registers are read-only. All registers are 32-bit.<br />

When multiple accesses have hit watchpoints at the same time, for example during the same<br />

instruction, the information contained in these registers is valid and consistent only for one of<br />

these accesses.<br />

Whenever at least one CADI watchpoint is set on a core, the syncLevel on that core is at least 2.<br />

<strong>ARM</strong> DUI 0423J Copyright © 2008-2011 <strong>ARM</strong>. All rights reserved. 5-164<br />

ID051811<br />

Non-Confidential

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!