diff options
author | Lars Munch <lars@segv.dk> | 2010-03-29 15:16:58 +0200 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2010-04-08 21:22:43 +0200 |
commit | 3b4b86aace17ef07fc4f85a9662c991efbc83e15 (patch) | |
tree | f1d325599b8d6aad26727752b2cb61fd05aeff96 /hw | |
parent | 2c7faf318df7fe83cf9c263b32921b6873b66645 (diff) | |
download | hqemu-3b4b86aace17ef07fc4f85a9662c991efbc83e15.zip hqemu-3b4b86aace17ef07fc4f85a9662c991efbc83e15.tar.gz |
smc91c111: mask register offset
this fixes the smc91c111 emulation which has been broken for gumstix and
mainstone and maybe others since the "MMIO callback interface changes"
8da3ff180974732fc4272cb4433fef85c1822961 was commited.
Signed-off-by: Lars Munch <lars@segv.dk>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/smc91c111.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/smc91c111.c b/hw/smc91c111.c index c1a88c9..a2ef299 100644 --- a/hw/smc91c111.c +++ b/hw/smc91c111.c @@ -250,6 +250,7 @@ static void smc91c111_writeb(void *opaque, target_phys_addr_t offset, { smc91c111_state *s = (smc91c111_state *)opaque; + offset = offset & 0xf; if (offset == 14) { s->bank = value; return; @@ -421,6 +422,7 @@ static uint32_t smc91c111_readb(void *opaque, target_phys_addr_t offset) { smc91c111_state *s = (smc91c111_state *)opaque; + offset = offset & 0xf; if (offset == 14) { return s->bank; } |