ds1225y nvram: Fix some bugs
commit5d9e2c0910a79871db7365906acc377bfdbc2b9b
authoraurel32 <aurel32>
Thu, 13 Mar 2008 19:23:00 +0000 (13 19:23 +0000)
committeraurel32 <aurel32>
Thu, 13 Mar 2008 19:23:00 +0000 (13 19:23 +0000)
tree763444d3726b4d256e86b94c8f38239ba0920fb3
parent9ccebe22c17ccbb3fe26c0f6e69eb9b5a8ef5740
ds1225y nvram: Fix some bugs

- whole nvram was erased in some conditions
- fix out of range accesses
- improve reading speed by keeping contents in memory
- rename capacity to chip_size

(HervĂ© Poussineau)
hw/ds1225y.c
hw/mips.h