User`s guide
80 MPC8240 and MPC8260 Emulation
Chapter 5: Connecting and Configuring the Emulator
Configuring the Emulator
Software Breakpoints
The number of software breakpoints is unlimited but they cannot be
used with ROM or FLASH memory. Software breakpoints cannot be
used to debug exceptions. Do not modify the IABR register while
software breakpoints are enabled.
It is recommended that only -t (temporary) or -p (permanent)
breakpoints be used by a debugger. If neither option is given, the
breakpoint acts much like a temporary breakpoint except that when
the breakpoint is hit, it is disabled but remains in the breakpoint list. A
temporary breakpoint is removed from the breakpoint list when hit.
NOTE:
For software breakpoints, the break conditions set are dependent on the value
of the MSR(IP) bit value. When software breakpoints are enabled, the value of
this bit determines the break condition. If user code or debuggers change this
value after software breakpoints have been enabled, software breakpoints will
not work. The work around for this is to set a hardware breakpoint to an
instruction after the code that changes the MSR(IP), then after hitting the
hardware breakpoint, disable hardware breakpoints and enable software
breakpoints.
Hardware Breakpoints
One hardware breakpoint is available. Since using software
breakpoints requires the use of the hardware breakpoint, both types of
breakpoints cannot be used at the same time. Enable hardware
breakponts using 'bc -e hwbp'. Set a hardware breakpoint using 'bp -h
<-p | -t> <address>. Use either the -p or -t option when setting the
hardware breakpoints.