summaryrefslogtreecommitdiff
path: root/hw/tusb6010.c
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2009-08-25 18:29:31 +0000
committerBlue Swirl <blauwirbel@gmail.com>2009-08-25 18:29:31 +0000
commitd60efc6b0d3d4e90cbbb86e21451e55263c29416 (patch)
treed5167171d11fa8e54f0ff11fae42c77cfac5af4a /hw/tusb6010.c
parentfa31af0e63c5629d0bdc63eb87c1e44abd4fdb9e (diff)
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 3fb0cf749..1ed9d4c08 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,