Commit 6abe522c171e3576e8b27205e4e43d272c42f5e6
1 parent
1d47d78e
Make CPUWriteMemoryFunc not const, seems the problem in too old master
revert back after rebase
Showing
1 changed file
with
2 additions
and
2 deletions
hw/pflash_atmel.c
@@ -434,13 +434,13 @@ static void pflash_writel (void *opaque, target_phys_addr_t addr, | @@ -434,13 +434,13 @@ static void pflash_writel (void *opaque, target_phys_addr_t addr, | ||
434 | pflash_write(pfl, addr, value, 4); | 434 | pflash_write(pfl, addr, value, 4); |
435 | } | 435 | } |
436 | 436 | ||
437 | -static CPUWriteMemoryFunc * const pflash_write_ops[] = { | 437 | +static CPUWriteMemoryFunc * pflash_write_ops[] = { |
438 | &pflash_writeb, | 438 | &pflash_writeb, |
439 | &pflash_writew, | 439 | &pflash_writew, |
440 | &pflash_writel, | 440 | &pflash_writel, |
441 | }; | 441 | }; |
442 | 442 | ||
443 | -static CPUReadMemoryFunc * const pflash_read_ops[] = { | 443 | +static CPUReadMemoryFunc * pflash_read_ops[] = { |
444 | &pflash_readb, | 444 | &pflash_readb, |
445 | &pflash_readw, | 445 | &pflash_readw, |
446 | &pflash_readl, | 446 | &pflash_readl, |