diff options
author | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-01-05 16:54:16 +0000 |
---|---|---|
committer | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-01-05 16:54:16 +0000 |
commit | a0ae05aa6390fe363e70355c9375a9b9149dab14 (patch) | |
tree | d22de7f17ea2cb9abaeda2d271900469f2504881 /target-ppc/translate.c | |
parent | 455204eb1a0880a5e4474acf07d4641f51123a1d (diff) | |
download | qemu-a0ae05aa6390fe363e70355c9375a9b9149dab14.zip qemu-a0ae05aa6390fe363e70355c9375a9b9149dab14.tar.gz qemu-a0ae05aa6390fe363e70355c9375a9b9149dab14.tar.bz2 |
PPC32 Trace Exception and Trap instruction, by Jason Wessel.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2291 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-ppc/translate.c')
-rw-r--r-- | target-ppc/translate.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/target-ppc/translate.c b/target-ppc/translate.c index 046f168..41737d4 100644 --- a/target-ppc/translate.c +++ b/target-ppc/translate.c @@ -1956,6 +1956,8 @@ GEN_HANDLER(tw, 0x1F, 0x04, 0xFF, 0x00000001, PPC_FLOW) { gen_op_load_gpr_T0(rA(ctx->opcode)); gen_op_load_gpr_T1(rB(ctx->opcode)); + /* Update the nip since this might generate a trap exception */ + gen_op_update_nip(ctx->nip); gen_op_tw(TO(ctx->opcode)); } |