diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2011-10-15 08:05:18 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2011-10-23 14:08:30 +0000 |
commit | b1f88301b552dff815d9b355c1e4c073278a77c1 (patch) | |
tree | 8e09468bfee21d43df0a96b0dc4e612c6326ab7a /hw/m48t59.c | |
parent | 0fb56ffc5edd66f12ccfc0d71af5f9c79c0a2612 (diff) | |
download | qemu-b1f88301b552dff815d9b355c1e4c073278a77c1.tar.gz qemu-b1f88301b552dff815d9b355c1e4c073278a77c1.tar.bz2 qemu-b1f88301b552dff815d9b355c1e4c073278a77c1.zip |
m48t59: fix write access
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>
Diffstat (limited to 'hw/m48t59.c')
-rw-r--r-- | hw/m48t59.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/m48t59.c b/hw/m48t59.c index dba57966ad..a77937ef68 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: |