diff options
author | edgar_igl <edgar_igl@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-10-08 14:22:17 +0000 |
---|---|---|
committer | edgar_igl <edgar_igl@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-10-08 14:22:17 +0000 |
commit | cddffe373928480e501f4d9b28b427e157b38f7d (patch) | |
tree | ed1e1976752b24be3a26edc9ab13911c7b53441a /target-cris/helper.c | |
parent | dd20fcd0ac20c4357f4d96786ab957c88c6cbe05 (diff) |
CRIS: Partial EXS reg support and fixes for SPC.
* Add partial support for the EXS (exception status) register.
* Update SPC after each singlestep exception.
* Remove special treatment of break 8.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5448 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-cris/helper.c')
-rw-r--r-- | target-cris/helper.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/target-cris/helper.c b/target-cris/helper.c index 7770403ace..2aa5a8e7d2 100644 --- a/target-cris/helper.c +++ b/target-cris/helper.c @@ -143,6 +143,9 @@ void do_interrupt(CPUState *env) break; } + /* Fill in the IDX field. */ + env->pregs[PR_EXS] = (ex_vec & 0xff) << 8; + if (env->dslot) { D(fprintf(logfile, "excp isr=%x PC=%x ds=%d SP=%x" " ERP=%x pid=%x ccs=%x cc=%d %x\n", |