diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2009-08-25 18:29:31 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2009-08-25 18:29:31 +0000 |
commit | d60efc6b0d3d4e90cbbb86e21451e55263c29416 (patch) | |
tree | d5167171d11fa8e54f0ff11fae42c77cfac5af4a /hw/ppc405_uc.c | |
parent | fa31af0e63c5629d0bdc63eb87c1e44abd4fdb9e (diff) |
Make CPURead/WriteFunc structure 'const'
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/ppc405_uc.c')
-rw-r--r-- | hw/ppc405_uc.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/hw/ppc405_uc.c b/hw/ppc405_uc.c index aa2f0db032..65d70d380c 100644 --- a/hw/ppc405_uc.c +++ b/hw/ppc405_uc.c @@ -355,13 +355,13 @@ static void opba_writel (void *opaque, opba_writeb(opaque, addr + 1, value >> 16); } -static CPUReadMemoryFunc *opba_read[] = { +static CPUReadMemoryFunc * const opba_read[] = { &opba_readb, &opba_readw, &opba_readl, }; -static CPUWriteMemoryFunc *opba_write[] = { +static CPUWriteMemoryFunc * const opba_write[] = { &opba_writeb, &opba_writew, &opba_writel, @@ -813,13 +813,13 @@ static void ppc405_gpio_writel (void *opaque, #endif } -static CPUReadMemoryFunc *ppc405_gpio_read[] = { +static CPUReadMemoryFunc * const ppc405_gpio_read[] = { &ppc405_gpio_readb, &ppc405_gpio_readw, &ppc405_gpio_readl, }; -static CPUWriteMemoryFunc *ppc405_gpio_write[] = { +static CPUWriteMemoryFunc * const ppc405_gpio_write[] = { &ppc405_gpio_writeb, &ppc405_gpio_writew, &ppc405_gpio_writel, @@ -1214,13 +1214,13 @@ static void ppc4xx_i2c_writel (void *opaque, ppc4xx_i2c_writeb(opaque, addr + 3, value); } -static CPUReadMemoryFunc *i2c_read[] = { +static CPUReadMemoryFunc * const i2c_read[] = { &ppc4xx_i2c_readb, &ppc4xx_i2c_readw, &ppc4xx_i2c_readl, }; -static CPUWriteMemoryFunc *i2c_write[] = { +static CPUWriteMemoryFunc * const i2c_write[] = { &ppc4xx_i2c_writeb, &ppc4xx_i2c_writew, &ppc4xx_i2c_writel, @@ -1482,13 +1482,13 @@ static void ppc4xx_gpt_writel (void *opaque, } } -static CPUReadMemoryFunc *gpt_read[] = { +static CPUReadMemoryFunc * const gpt_read[] = { &ppc4xx_gpt_readb, &ppc4xx_gpt_readw, &ppc4xx_gpt_readl, }; -static CPUWriteMemoryFunc *gpt_write[] = { +static CPUWriteMemoryFunc * const gpt_write[] = { &ppc4xx_gpt_writeb, &ppc4xx_gpt_writew, &ppc4xx_gpt_writel, |