]> git.proxmox.com Git - qemu.git/blobdiff - hw/sbi.c
Make CPURead/WriteFunc structure 'const'
[qemu.git] / hw / sbi.c
index 3c8e95a362614031a24c686162ee1687a1e5f5a4..e6ced8b8c543749a9fc17b7506d2873153f9aea4 100644 (file)
--- a/hw/sbi.c
+++ b/hw/sbi.c
@@ -84,13 +84,13 @@ static void sbi_mem_writel(void *opaque, target_phys_addr_t addr, uint32_t val)
     }
 }
 
-static CPUReadMemoryFunc *sbi_mem_read[3] = {
+static CPUReadMemoryFunc * const sbi_mem_read[3] = {
     NULL,
     NULL,
     sbi_mem_readl,
 };
 
-static CPUWriteMemoryFunc *sbi_mem_write[3] = {
+static CPUWriteMemoryFunc * const sbi_mem_write[3] = {
     NULL,
     NULL,
     sbi_mem_writel,