summaryrefslogtreecommitdiffstats
path: root/hw/ds1225y.c
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2009-08-25 18:29:31 +0000
committerBlue Swirl <blauwirbel@gmail.com>2009-08-25 18:29:31 +0000
commitd60efc6b0d3d4e90cbbb86e21451e55263c29416 (patch)
treed5167171d11fa8e54f0ff11fae42c77cfac5af4a /hw/ds1225y.c
parentfa31af0e63c5629d0bdc63eb87c1e44abd4fdb9e (diff)
downloadhqemu-d60efc6b0d3d4e90cbbb86e21451e55263c29416.zip
hqemu-d60efc6b0d3d4e90cbbb86e21451e55263c29416.tar.gz
Make CPURead/WriteFunc structure 'const'
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/ds1225y.c')
-rw-r--r--hw/ds1225y.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/ds1225y.c b/hw/ds1225y.c
index 4475717..009d127 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,
OpenPOWER on IntegriCloud