projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
52ce6f0
)
m48t59: drop obsolete address base arithmetic
author
Blue Swirl
<blauwirbel@gmail.com>
Sat, 15 Oct 2011 07:57:49 +0000
(07:57 +0000)
committer
Blue Swirl
<blauwirbel@gmail.com>
Sun, 23 Oct 2011 14:07:38 +0000
(14:07 +0000)
Remove now incorrect address base arithmetic, missed by
9936d6e42392f1440505dfa9df065eabd251cadf
. Fixes Sparc64 boot.
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 f318e67919a9abe8d06945baf5d465c6feaab5d5..dba57966ad44f7bd9043cc7d801d874429b42a54 100644
(file)
--- a/
hw/m48t59.c
+++ b/
hw/m48t59.c
@@
-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);