13.07.2015 Views

Cortex-A8 R2P2.pdf - ARM Information Center

Cortex-A8 R2P2.pdf - ARM Information Center

Cortex-A8 R2P2.pdf - 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.

DebugTable 12-58 Values to write to BCR for a simple breakpoint (continued)Bits Value to write Description[19:16] b0000 Linked BRP number[15:14] b00 Secure state access control[13:9] b00000 Reserved[8:5] Derived from address Byte address select[4:3] b00 Reserved[2:1] b11 Supervisor access control[0] b1 Breakpoint enableExample 12-7 shows the sequence of instructions for setting a simple breakpoint.Example 12-7 Setting a simple breakpointSetSimpleBreakpoint(int break_num, uint32 address, iset_t isa){// Step 1. Disable the breakpoint being set.WriteDebugRegister(80 + break_num, 0x0);// Step 2. Write address to the BVR, leaving the bottom 2 bits zero.WriteDebugRegister(64 + break_num, address & 0xFFFFFFC);// Step 3. Determine the byte address select value to use.case (isa) of{// Note: The processor does not support Jazelle state,// but the <strong>ARM</strong>v7 Debug architecture doeswhen JAZELLE:byte_address_select := (1'b1

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

Saved successfully!

Ooh no, something went wrong!