]> xenbits.xensource.com Git - qemu-upstream-4.6-testing.git/commit
sb16: fix interrupt acknowledgement
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 20 Jan 2015 16:23:48 +0000 (17:23 +0100)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Mon, 23 Feb 2015 00:36:08 +0000 (18:36 -0600)
commite60fb7af55b3321431ffa6f3523f11111ae66714
tree87b16e368661961a889445ceed55440a2dd4806c
parent451b9e2d4c65ad20cbd4247adc82cd69c8ebce2c
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>
(cherry picked from commit 9939375c282a0f97afa69dc6799d3c77aaf7d544)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/audio/sb16.c