summaryrefslogtreecommitdiff
path: root/hw/sun4c_intctl.c
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2010-12-08 12:05:37 +0100
committerBlue Swirl <blauwirbel@gmail.com>2010-12-11 15:24:25 +0000
commita5f59f1d30ba99ce5011b799cd5dfe2ffb3d13a0 (patch)
tree949765d6112d70536a3806eb822798a0e04577da /hw/sun4c_intctl.c
parentbd2320db7444ac1c67d89eed54e248d4c09e2e92 (diff)
downloadqemu-a5f59f1d30ba99ce5011b799cd5dfe2ffb3d13a0.tar.gz
qemu-a5f59f1d30ba99ce5011b799cd5dfe2ffb3d13a0.tar.bz2
qemu-a5f59f1d30ba99ce5011b799cd5dfe2ffb3d13a0.zip
Add endianness as io mem parameter
As stated before, devices can be little, big or native endian. The target endianness is not of their concern, so we need to push things down a level. This patch adds a parameter to cpu_register_io_memory that allows a device to choose its endianness. For now, all devices simply choose native endian, because that's the same behavior as before. Signed-off-by: Alexander Graf <agraf@suse.de> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/sun4c_intctl.c')
-rw-r--r--hw/sun4c_intctl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/sun4c_intctl.c b/hw/sun4c_intctl.c
index 7d7542dc9f..5c7fdeffb4 100644
--- a/hw/sun4c_intctl.c
+++ b/hw/sun4c_intctl.c
@@ -196,7 +196,8 @@ static int sun4c_intctl_init1(SysBusDevice *dev)
unsigned int i;
io_memory = cpu_register_io_memory(sun4c_intctl_mem_read,
- sun4c_intctl_mem_write, s);
+ sun4c_intctl_mem_write, s,
+ DEVICE_NATIVE_ENDIAN);
sysbus_init_mmio(dev, INTCTL_SIZE, io_memory);
qdev_init_gpio_in(&dev->qdev, sun4c_set_irq, 8);