projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0fb56ff
)
m48t59: fix write access
author
Blue Swirl
<blauwirbel@gmail.com>
Sat, 15 Oct 2011 08:05:18 +0000
(08:05 +0000)
committer
Blue Swirl
<blauwirbel@gmail.com>
Sun, 23 Oct 2011 14:08:30 +0000
(14:08 +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 <blauwirbel@gmail.com>
hw/m48t59.c
patch
|
blob
|
history
diff --git
a/hw/m48t59.c
b/hw/m48t59.c
index dba57966ad44f7bd9043cc7d801d874429b42a54..a77937ef68501392073076e5831eff294862609b 100644
(file)
--- 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: