12.6.3. Combining hardware and software pass counts

You can combine hardware and software pass counts to achieve higher count values. If you define both hardware and software pass counts:

  1. When the hardware pass count reaches zero, the software pass count is decremented. What happens next depends on your hardware:

    • For RVISS, the hardware pass count remains at zero, so that:

      total count = hw_passcount + passcount

    • Other processors might exhibit the RVISS behavior, or might reset the hardware pass count to the initial value, so that:

      total count = (hw_passcount +1) * passcount + hw_passcount

  2. When the software pass count reaches zero, the breakpoint activates and the activation count is incremented. The following example shows the counts for the breakpoint bexec,hw_pass:3,pass:50 \DHRY_1\#70:0 on an RVISS target:

    • Initial state:

      > dtbreak
      S ID    Type            Address         Count   Miscellaneous
      - --    ----            -------         -----   -------------
        1     Exec            0x00008480      0       Pass=50
      
    • State after activation:

      > dtbreak
      S ID    Type            Address         Count   Miscellaneous
      - --    ----            -------         -----   -------------
        1     Exec            0x00008480      1       Pass=0
      

    If the breakpoint is in a loop, then activation occurs on hit 53.

See also

Copyright © 2002-2009 ARM Limited. All rights reserved.ARM DUI 0153K
Non-Confidential