sb16: fix interrupt acknowledgement
commit9939375c282a0f97afa69dc6799d3c77aaf7d544
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 20 Jan 2015 16:23:48 +0000 (20 17:23 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 22 Jan 2015 10:04:18 +0000 (22 11:04 +0100)
tree9beb56a768f40fcdb18e56a557b7577832ef108a
parent699eae17b841e6784dc3864bf357e26bff1e9dfe
sb16: fix interrupt acknowledgement

SoundBlaster 16 emulation is very broken and consumes a lot of CPU, but a
small fix was suggested offlist and it is enough to fix some games.  I
got Epic Pinball to work with the "SoundBlaster Clone" option.

The processing of the interrupt register is wrong due to two missing
"not"s.  This causes the interrupt flag to remain set even after the
Acknowledge ports have been read (0x0e and 0x0f).

The line was introduced by commit 85571bc (audio merge (malc), 2004-11-07),
but the code might have been broken before because I did not look closely
at the huge patches from 10 years ago.

Reported-by: Joshua Bair <j_bair@bellsouth.net>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Cc: qemu-stable@nongnu.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/audio/sb16.c