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/ds1225y.c | |
parent | fa31af0e63c5629d0bdc63eb87c1e44abd4fdb9e (diff) |
Make CPURead/WriteFunc structure 'const'
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/ds1225y.c')
-rw-r--r-- | hw/ds1225y.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/ds1225y.c b/hw/ds1225y.c index 44757179d5..009d127455 100644 --- a/hw/ds1225y.c +++ b/hw/ds1225y.c @@ -126,19 +126,19 @@ static void nvram_writel_protected (void *opaque, target_phys_addr_t addr, uint3 nvram_writeb_protected(opaque, addr + 3, (val >> 24) & 0xff); } -static CPUReadMemoryFunc *nvram_read[] = { +static CPUReadMemoryFunc * const nvram_read[] = { &nvram_readb, &nvram_readw, &nvram_readl, }; -static CPUWriteMemoryFunc *nvram_write[] = { +static CPUWriteMemoryFunc * const nvram_write[] = { &nvram_writeb, &nvram_writew, &nvram_writel, }; -static CPUWriteMemoryFunc *nvram_write_protected[] = { +static CPUWriteMemoryFunc * const nvram_write_protected[] = { &nvram_writeb_protected, &nvram_writew_protected, &nvram_writel_protected, |