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/omap.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'hw/omap.h') diff --git a/hw/omap.h b/hw/omap.h index a484c82..d305779 100644 --- a/hw/omap.h +++ b/hw/omap.h @@ -1039,8 +1039,8 @@ enum { # ifdef MEM_VERBOSE struct io_fn { - CPUReadMemoryFunc **mem_read; - CPUWriteMemoryFunc **mem_write; + CPUReadMemoryFunc * const *mem_read; + CPUWriteMemoryFunc * const *mem_write; void *opaque; int in; }; @@ -1112,12 +1112,12 @@ static void io_writew(void *opaque, target_phys_addr_t addr, uint32_t value) s->in --; } -static CPUReadMemoryFunc *io_readfn[] = { io_readb, io_readh, io_readw, }; -static CPUWriteMemoryFunc *io_writefn[] = { io_writeb, io_writeh, io_writew, }; +static CPUReadMemoryFunc * const io_readfn[] = { io_readb, io_readh, io_readw, }; +static CPUWriteMemoryFunc * const io_writefn[] = { io_writeb, io_writeh, io_writew, }; -inline static int debug_register_io_memory( - CPUReadMemoryFunc **mem_read, CPUWriteMemoryFunc **mem_write, - void *opaque) +inline static int debug_register_io_memory(CPUReadMemoryFunc * const *mem_read, + CPUWriteMemoryFunc * const *mem_write, + void *opaque) { struct io_fn *s = qemu_malloc(sizeof(struct io_fn)); @@ -1135,8 +1135,8 @@ inline static int debug_register_io_memory( # ifdef L4_MUX_HACK # undef l4_register_io_memory -int l4_register_io_memory(CPUReadMemoryFunc **mem_read, - CPUWriteMemoryFunc **mem_write, void *opaque); +int l4_register_io_memory(CPUReadMemoryFunc * const *mem_read, + CPUWriteMemoryFunc * const *mem_write, void *opaque); # endif #endif /* hw_omap_h */ -- cgit v1.1