]> Git Repo - qemu.git/commitdiff
adlib: fix patching of port I/O addresses
authorPaolo Bonzini <[email protected]>
Mon, 2 Dec 2013 09:16:18 +0000 (10:16 +0100)
committerGerd Hoffmann <[email protected]>
Mon, 9 Dec 2013 08:19:26 +0000 (09:19 +0100)
Commit 2b21fb5 (adlib: sort offsets in portio registration, 2013-08-14)
fixed the offsets in adlib_portio_list, but forgot the matching indices
in adlib_realizefn.

Reported at http://virtuallyfun.superglobalmegacorp.com/?p=3616 by
"neozeed".

Signed-off-by: Paolo Bonzini <[email protected]>
Reviewed-by: HervĂ© Poussineau <[email protected]>
Signed-off-by: Gerd Hoffmann <[email protected]>
hw/audio/adlib.c

index bd8e9d9815ce7d34983a609a02f879cd56cc9440..e88d2dd8453730d88ae70e00f9bd5b1cfb14b6e9 100644 (file)
@@ -347,8 +347,8 @@ static void adlib_realizefn (DeviceState *dev, Error **errp)
     s->samples = AUD_get_buffer_size_out (s->voice) >> SHIFT;
     s->mixbuf = g_malloc0 (s->samples << SHIFT);
 
-    adlib_portio_list[1].offset = s->port;
-    adlib_portio_list[2].offset = s->port + 8;
+    adlib_portio_list[0].offset = s->port;
+    adlib_portio_list[1].offset = s->port + 8;
     portio_list_init (port_list, OBJECT(s), adlib_portio_list, s, "adlib");
     portio_list_add (port_list, isa_address_space_io(&s->parent_obj), 0);
 }
This page took 0.0252 seconds and 4 git commands to generate.