aboutsummaryrefslogtreecommitdiff
path: root/hw/audio
diff options
context:
space:
mode:
authorHervé Poussineau <hpoussin@reactos.org>2013-08-14 11:49:04 +0200
committerMichael Tokarev <mjt@tls.msk.ru>2013-09-01 19:59:30 +0400
commit2b21fb57af305f17841d79e7e2e02ad1aec3f5ca (patch)
tree6a2785ff9df8a0da4afd0e0c1ce33e6583c435f6 /hw/audio
parent586b546657da7a762106abb5056d90a140d1a2f5 (diff)
adlib: sort offsets in portio registration
This fixes the following assert when -device adlib is used: ioport.c:240: portio_list_add: Assertion `pio->offset >= off_last' failed. Signed-off-by: Hervé Poussineau <hpoussin@reactos.org> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'hw/audio')
-rw-r--r--hw/audio/adlib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/audio/adlib.c b/hw/audio/adlib.c
index 0c792475d1..bd8e9d9815 100644
--- a/hw/audio/adlib.c
+++ b/hw/audio/adlib.c
@@ -284,9 +284,9 @@ static void Adlib_fini (AdlibState *s)
}
static MemoryRegionPortio adlib_portio_list[] = {
- { 0x388, 4, 1, .read = adlib_read, .write = adlib_write, },
{ 0, 4, 1, .read = adlib_read, .write = adlib_write, },
{ 0, 2, 1, .read = adlib_read, .write = adlib_write, },
+ { 0x388, 4, 1, .read = adlib_read, .write = adlib_write, },
PORTIO_END_OF_LIST(),
};