mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
Make CPURead/WriteFunc structure 'const'
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
fa31af0e63
commit
d60efc6b0d
144 changed files with 1552 additions and 554 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue