From d60efc6b0d3d4e90cbbb86e21451e55263c29416 Mon Sep 17 00:00:00 2001 From: Blue Swirl Date: Tue, 25 Aug 2009 18:29:31 +0000 Subject: Make CPURead/WriteFunc structure 'const' Signed-off-by: Blue Swirl --- hw/tusb6010.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'hw/tusb6010.c') 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, -- cgit v1.2.3