PPC: Fix for the gdb single step problem on an rfi instruction
authorSebastian Bauer <mail@sebastianbauer.info>
Wed, 10 Aug 2011 01:41:48 +0000 (01:41 +0000)
committerAlexander Graf <agraf@suse.de>
Fri, 11 Nov 2011 16:33:58 +0000 (17:33 +0100)
commite6ce88e2fdc41494c6496fb085cc8770e06bd38c
tree24f6ecde494bc344d7c6546830ca41792dd763e4
parent5fcc5bbffc5c360d7189081a2fdeba3bb84eb555
PPC: Fix for the gdb single step problem on an rfi instruction

When using gdb to single step a ppc interrupt routine, the execution
flow passes the rfi instruction without actually returning from the
interrupt.

The patch fixes this by avoiding to update the nip when the debug
exception is raised and a previous POWERPC_EXCP_SYNC was set.

The latter is the case only, if code for rfi or a related instruction
was generated.

Signed-off-by: Sebastian Bauer <mail@sebastianbauer.info>
Signed-off-by: Alexander Graf <agraf@suse.de>
target-ppc/translate.c