Commit 0fb56ffc authored by Blue Swirl's avatar Blue Swirl
Browse files

m48t59: drop obsolete address base arithmetic



Remove now incorrect address base arithmetic, missed by
9936d6e4. Fixes Sparc64 boot.

Signed-off-by: default avatarBlue Swirl <blauwirbel@gmail.com>
parent 52ce6f05
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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);