diff options
| author | Blue Swirl | 2010-02-14 08:23:50 +0100 |
|---|---|---|
| committer | Blue Swirl | 2010-02-14 08:23:50 +0100 |
| commit | ee0dc6d3937e10d9813ede4710bdcb9a4687d96f (patch) | |
| tree | 73fd9386dbbb86683400171711aa1ce43b5a8457 /target-alpha | |
| parent | pci: fix info pci with host bridge. (diff) | |
| download | qemu-ee0dc6d3937e10d9813ede4710bdcb9a4687d96f.tar.gz qemu-ee0dc6d3937e10d9813ede4710bdcb9a4687d96f.tar.xz qemu-ee0dc6d3937e10d9813ede4710bdcb9a4687d96f.zip | |
Fix incorrect exception_index use
env->exception_index should be cleared with -1, not 0.
See also 821b19fe923ac49a24cdb4af902584fdd019cee6.
Spotted by Igor Kovalenko.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'target-alpha')
| -rw-r--r-- | target-alpha/helper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target-alpha/helper.c b/target-alpha/helper.c index be7d37b0d9..1e0bc4a155 100644 --- a/target-alpha/helper.c +++ b/target-alpha/helper.c @@ -467,7 +467,7 @@ void do_interrupt (CPUState *env) env->ipr[IPR_EXC_ADDR] = env->pc | 1; excp = env->exception_index; - env->exception_index = 0; + env->exception_index = -1; env->error_code = 0; /* XXX: disable interrupts and memory mapping */ if (env->ipr[IPR_PAL_BASE] != -1ULL) { |
