Julien Grall ecd584b836 hw/dma.c: Fix conversion of ioport_register* to MemoryRegion
The commit 582299336879504353e60c7937fbc70fea93f3da introduced a 1-shift for
some offset in DMA emulation.

Before the previous commit, which converted ioport_register_* to
MemoryRegion, the DMA controller registered 8 ioports with the following
formula:
base + ((8 + i) << d->shift) where 0 <= i < 8
When an IO occured within a Memory Region, DMA callback receives an
offset relative to the start address. Here the start address is:
base + (8 << d->shift).
The offset should be: (i << d->shift). After the shift is reverted, the
offsets are 0..7 not 1..8.

Fixes LP#1089996.

Reported-by: Andreas Gustafsson <gson@gson.org>
Signed-off-by: Julien Grall <julien.grall@citrix.com>
Tested-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
2013-01-15 19:45:25 +01:00
2013-01-10 15:11:53 -06:00
2013-01-14 10:23:50 -06:00
2012-12-19 08:29:06 +01:00
2013-01-07 17:37:11 +01:00
2012-10-24 10:26:22 +02:00
2013-01-12 12:26:16 +00:00
2012-09-07 09:02:44 +03:00
2013-01-08 16:38:12 -06:00
2012-11-01 13:10:06 +01:00
2013-01-14 10:06:56 +01:00
2012-05-14 07:27:24 +02:00
2012-12-20 23:08:47 +01:00
2013-01-05 12:00:27 -08:00
2013-01-07 19:42:23 +02:00
2011-12-09 11:25:22 +00:00
2012-12-20 23:09:25 +01:00
2011-12-11 17:50:43 -06:00
2012-12-03 14:08:40 -06:00
2012-12-22 12:04:44 +00:00

Read the documentation in qemu-doc.html or on http://wiki.qemu.org

- QEMU team
Description
QEMU With E2K User Support
Readme 459 MiB
Languages
C 83.1%
C++ 6.3%
Python 3.2%
Dylan 2.8%
Shell 1.6%
Other 2.8%