Patchwork [RFC,v2,7/7] m48t59: hack(?) to make it work on IBM 43p

login
register
mail settings
Submitter Hervé Poussineau
Date April 14, 2013, 8:06 a.m.
Message ID <1365926760-5803-8-git-send-email-hpoussin@reactos.org>
Download mbox | patch
Permalink /patch/236415/
State New
Headers show

Comments

Hervé Poussineau - April 14, 2013, 8:06 a.m.
Signed-off-by: Hervé Poussineau <hpoussin@reactos.org>
---
 hw/timer/m48t59.c |    2 ++
 1 file changed, 2 insertions(+)

Patch

diff --git a/hw/timer/m48t59.c b/hw/timer/m48t59.c
index afcd5f5..4956cd7 100644
--- a/hw/timer/m48t59.c
+++ b/hw/timer/m48t59.c
@@ -571,6 +571,7 @@  static void NVRAM_writeb(void *opaque, hwaddr addr, uint64_t val,
         NVRAM->addr &= ~0xFF00;
         NVRAM->addr |= val << 8;
         break;
+    case 2:
     case 3:
         m48t59_write(NVRAM, NVRAM->addr, val);
         NVRAM->addr = 0x0000;
@@ -586,6 +587,7 @@  static uint64_t NVRAM_readb(void *opaque, hwaddr addr, unsigned size)
     uint32_t retval;
 
     switch (addr) {
+    case 2:
     case 3:
         retval = m48t59_read(NVRAM, NVRAM->addr);
         break;