* [Qemu-devel] [PULL 0/1] sb16: fix interrupt acknowledgement
@ 2015-01-22 11:40 Gerd Hoffmann
2015-01-22 11:40 ` [Qemu-devel] [PULL 1/1] " Gerd Hoffmann
2015-01-23 13:23 ` [Qemu-devel] [PULL 0/1] " Peter Maydell
0 siblings, 2 replies; 3+ messages in thread
From: Gerd Hoffmann @ 2015-01-22 11:40 UTC (permalink / raw)
To: qemu-devel; +Cc: Gerd Hoffmann
Hi,
Pretty short audio queue, with a single soundblaster bugfix.
please pull,
Gerd
The following changes since commit 699eae17b841e6784dc3864bf357e26bff1e9dfe:
Merge remote-tracking branch 'remotes/pmaydell/tags/pull-misc-20150120' into staging (2015-01-20 16:19:58 +0000)
are available in the git repository at:
git://git.kraxel.org/qemu tags/pull-audio-20150122-1
for you to fetch changes up to 9939375c282a0f97afa69dc6799d3c77aaf7d544:
sb16: fix interrupt acknowledgement (2015-01-22 11:04:18 +0100)
----------------------------------------------------------------
b16: fix interrupt acknowledgement
----------------------------------------------------------------
Paolo Bonzini (1):
sb16: fix interrupt acknowledgement
hw/audio/sb16.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Qemu-devel] [PULL 1/1] sb16: fix interrupt acknowledgement
2015-01-22 11:40 [Qemu-devel] [PULL 0/1] sb16: fix interrupt acknowledgement Gerd Hoffmann
@ 2015-01-22 11:40 ` Gerd Hoffmann
2015-01-23 13:23 ` [Qemu-devel] [PULL 0/1] " Peter Maydell
1 sibling, 0 replies; 3+ messages in thread
From: Gerd Hoffmann @ 2015-01-22 11:40 UTC (permalink / raw)
To: qemu-devel
Cc: Paolo Bonzini, Vassili Karpov (malc), Gerd Hoffmann, qemu-stable
From: Paolo Bonzini <pbonzini@redhat.com>
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 | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/hw/audio/sb16.c b/hw/audio/sb16.c
index bda26d0..444eb9e 100644
--- a/hw/audio/sb16.c
+++ b/hw/audio/sb16.c
@@ -999,7 +999,7 @@ static IO_READ_PROTO (dsp_read)
retval = (!s->out_data_len || s->highspeed) ? 0 : 0x80;
if (s->mixer_regs[0x82] & 1) {
ack = 1;
- s->mixer_regs[0x82] &= 1;
+ s->mixer_regs[0x82] &= ~1;
qemu_irq_lower (s->pic);
}
break;
@@ -1008,7 +1008,7 @@ static IO_READ_PROTO (dsp_read)
retval = 0xff;
if (s->mixer_regs[0x82] & 2) {
ack = 1;
- s->mixer_regs[0x82] &= 2;
+ s->mixer_regs[0x82] &= ~2;
qemu_irq_lower (s->pic);
}
break;
--
1.8.3.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] [PULL 0/1] sb16: fix interrupt acknowledgement
2015-01-22 11:40 [Qemu-devel] [PULL 0/1] sb16: fix interrupt acknowledgement Gerd Hoffmann
2015-01-22 11:40 ` [Qemu-devel] [PULL 1/1] " Gerd Hoffmann
@ 2015-01-23 13:23 ` Peter Maydell
1 sibling, 0 replies; 3+ messages in thread
From: Peter Maydell @ 2015-01-23 13:23 UTC (permalink / raw)
To: Gerd Hoffmann; +Cc: QEMU Developers
On 22 January 2015 at 11:40, Gerd Hoffmann <kraxel@redhat.com> wrote:
> Hi,
>
> Pretty short audio queue, with a single soundblaster bugfix.
>
> please pull,
> Gerd
>
> The following changes since commit 699eae17b841e6784dc3864bf357e26bff1e9dfe:
>
> Merge remote-tracking branch 'remotes/pmaydell/tags/pull-misc-20150120' into staging (2015-01-20 16:19:58 +0000)
>
> are available in the git repository at:
>
>
> git://git.kraxel.org/qemu tags/pull-audio-20150122-1
>
> for you to fetch changes up to 9939375c282a0f97afa69dc6799d3c77aaf7d544:
>
> sb16: fix interrupt acknowledgement (2015-01-22 11:04:18 +0100)
>
> ----------------------------------------------------------------
> b16: fix interrupt acknowledgement
>
> ----------------------------------------------------------------
> Paolo Bonzini (1):
> sb16: fix interrupt acknowledgement
Applied, thanks.
-- PMM
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-01-23 13:24 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-22 11:40 [Qemu-devel] [PULL 0/1] sb16: fix interrupt acknowledgement Gerd Hoffmann
2015-01-22 11:40 ` [Qemu-devel] [PULL 1/1] " Gerd Hoffmann
2015-01-23 13:23 ` [Qemu-devel] [PULL 0/1] " Peter Maydell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).