diff options
author | edgar_igl <edgar_igl@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-05-11 15:07:19 +0000 |
---|---|---|
committer | edgar_igl <edgar_igl@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-05-11 15:07:19 +0000 |
commit | 48318011da95864717cd0d1d9c2877e7c66fac0d (patch) | |
tree | af66f94943ec724feceae46c0fad049c1a667014 /hw/etraxfs_pic.c | |
parent | a3ea5df58845aac6e49ee36d4bef654e67b78c8a (diff) |
Update the etrax machine.
* Use CFI-0002 flashes.
* Connect one of the ethernet blocks.
* Simplified irq numbering.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4430 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/etraxfs_pic.c')
-rw-r--r-- | hw/etraxfs_pic.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/etraxfs_pic.c b/hw/etraxfs_pic.c index a656a265d1..7022c99534 100644 --- a/hw/etraxfs_pic.c +++ b/hw/etraxfs_pic.c @@ -154,6 +154,7 @@ static void etraxfs_pic_handler(void *opaque, int irq, int level) __func__, irq, level, fs->rw_mask, fs->r_vect, fs->r_masked_vect)); + irq -= 1; fs->r_vect &= ~(1 << irq); fs->r_vect |= (!!level << irq); fs->r_masked_vect = fs->r_vect & fs->rw_mask; |