[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 2/2] m48t59: fix write access
From: |
Blue Swirl |
Subject: |
[Qemu-devel] [PATCH 2/2] m48t59: fix write access |
Date: |
Sat, 15 Oct 2011 13:51:11 +0000 |
Fix incorrect order of arguments, letting writes to NVRAM succeed.
It looks like guests never write to the device, only read from it, since the bug
originates back to 819385c58b319d9f80d676cefaed0610118f03ac.
Signed-off-by: Blue Swirl <address@hidden>
---
hw/m48t59.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/hw/m48t59.c b/hw/m48t59.c
index dba5796..a77937e 100644
--- a/hw/m48t59.c
+++ b/hw/m48t59.c
@@ -491,7 +491,7 @@ static void NVRAM_writeb (void *opaque, uint32_t
addr, uint32_t val)
NVRAM->addr |= val << 8;
break;
case 3:
- m48t59_write(NVRAM, val, NVRAM->addr);
+ m48t59_write(NVRAM, NVRAM->addr, val);
NVRAM->addr = 0x0000;
break;
default:
--
1.6.2.4
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] [PATCH 2/2] m48t59: fix write access,
Blue Swirl <=