diff options
author | edgar_igl <edgar_igl@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-10-07 22:48:41 +0000 |
---|---|---|
committer | edgar_igl <edgar_igl@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-10-07 22:48:41 +0000 |
commit | a1aebcb8e68a90b9fe130aef6b2667e4369574b4 (patch) | |
tree | 34bc04c2812ed7a197fbbe7992736691306eb384 /target-cris/helper.c | |
parent | 890b165890e2d0eede89800a760d5341c5e7ff06 (diff) |
CRIS: Fix brk 8 and add S-flag emulation.
* break 8 sets ERP to the current insn.
* First shot at S flag single-stepping.
* Make it easier to use the local disasm.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5445 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-cris/helper.c')
-rw-r--r-- | target-cris/helper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target-cris/helper.c b/target-cris/helper.c index 4f5ffba1ec..7770403ace 100644 --- a/target-cris/helper.c +++ b/target-cris/helper.c @@ -119,7 +119,7 @@ void do_interrupt(CPUState *env) /* These exceptions are genereated by the core itself. ERP should point to the insn following the brk. */ ex_vec = env->trap_vector; - env->pregs[PR_ERP] = env->pc + 2; + env->pregs[PR_ERP] = env->pc; break; case EXCP_NMI: |