aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2011-10-15 07:57:49 +0000
committerBlue Swirl <blauwirbel@gmail.com>2011-10-23 14:07:38 +0000
commit0fb56ffc5edd66f12ccfc0d71af5f9c79c0a2612 (patch)
tree610e18274fc2438f1c45b8fd8f6fac42cd2f88f8 /hw
parent52ce6f05c1d5b19a7f3e1e562e24d89183730f50 (diff)
m48t59: drop obsolete address base arithmetic
Remove now incorrect address base arithmetic, missed by 9936d6e42392f1440505dfa9df065eabd251cadf. Fixes Sparc64 boot. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/m48t59.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/hw/m48t59.c b/hw/m48t59.c
index f318e67919..dba57966ad 100644
--- a/hw/m48t59.c
+++ b/hw/m48t59.c
@@ -480,7 +480,6 @@ static void NVRAM_writeb (void *opaque, uint32_t addr, uint32_t val)
{
M48t59State *NVRAM = opaque;
- addr -= NVRAM->io_base;
NVRAM_PRINTF("%s: 0x%08x => 0x%08x\n", __func__, addr, val);
switch (addr) {
case 0:
@@ -505,7 +504,6 @@ static uint32_t NVRAM_readb (void *opaque, uint32_t addr)
M48t59State *NVRAM = opaque;
uint32_t retval;
- addr -= NVRAM->io_base;
switch (addr) {
case 3:
retval = m48t59_read(NVRAM, NVRAM->addr);