Please add this patch to CVS. The patch has two purposes: 1) The NIP needs to be updated for a tw instruction. I found that when executing protected mode traps the PC was always set to the begining of the code generation block instead of the instruction the trap occurred on. The usual PPC breakpoint instruction is: 7d 82 10 08 twge r2,r2 (Trap when rA >= rB) 2) Single stepping was fixed up earlier in the year for using a debugger connected to the QEMU gdb stub. Now it is enabled for connecting a runtime single stepping with the trace trap so you can use ptrace() or even debug KGDB. signed-off-by: jason.wessel@windriver.com Thanks, Jason.