summaryrefslogtreecommitdiffstats
path: root/hw/tusb6010.c
diff options
context:
space:
mode:
authorBlue Swirl2009-08-25 20:29:31 +0200
committerBlue Swirl2009-08-25 20:29:31 +0200
commitd60efc6b0d3d4e90cbbb86e21451e55263c29416 (patch)
treed5167171d11fa8e54f0ff11fae42c77cfac5af4a /hw/tusb6010.c
parenttarget-mips: fix conditional moves off fp condition codes (diff)
downloadqemu-d60efc6b0d3d4e90cbbb86e21451e55263c29416.tar.gz
qemu-d60efc6b0d3d4e90cbbb86e21451e55263c29416.tar.xz
qemu-d60efc6b0d3d4e90cbbb86e21451e55263c29416.zip
Make CPURead/WriteFunc structure 'const'
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/tusb6010.c')
-rw-r--r--hw/tusb6010.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/hw/tusb6010.c b/hw/tusb6010.c
index 3fb0cf749b..1ed9d4c08e 100644
--- a/hw/tusb6010.c
+++ b/hw/tusb6010.c
@@ -286,8 +286,8 @@ static void tusb_gpio_intr_update(TUSBState *s)
/* TODO: How is this signalled? */
}
-extern CPUReadMemoryFunc *musb_read[];
-extern CPUWriteMemoryFunc *musb_write[];
+extern CPUReadMemoryFunc * const musb_read[];
+extern CPUWriteMemoryFunc * const musb_write[];
static uint32_t tusb_async_readb(void *opaque, target_phys_addr_t addr)
{
@@ -649,13 +649,13 @@ static void tusb_async_writew(void *opaque, target_phys_addr_t addr,
}
}
-static CPUReadMemoryFunc *tusb_async_readfn[] = {
+static CPUReadMemoryFunc * const tusb_async_readfn[] = {
tusb_async_readb,
tusb_async_readh,
tusb_async_readw,
};
-static CPUWriteMemoryFunc *tusb_async_writefn[] = {
+static CPUWriteMemoryFunc * const tusb_async_writefn[] = {
tusb_async_writeb,
tusb_async_writeh,
tusb_async_writew,