* [Qemu-devel] [PATCH] smc91c111: mask register offset
@ 2010-03-29 13:16 Lars Munch
2010-04-08 19:23 ` Aurelien Jarno
0 siblings, 1 reply; 2+ messages in thread
From: Lars Munch @ 2010-03-29 13:16 UTC (permalink / raw)
To: qemu-devel; +Cc: Lars Munch
this fixes the smc91c111 emulation which has been broken for gumstix and
mainstone and maybe others since the "MMIO callback interface changes"
8da3ff180974732fc4272cb4433fef85c1822961 where commited, see:
http://thread.gmane.org/gmane.comp.emulators.qemu/33607/focus=35194
Signed-off-by: Lars Munch <lars@segv.dk>
---
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;
}
--
1.7.0.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] [PATCH] smc91c111: mask register offset
2010-03-29 13:16 [Qemu-devel] [PATCH] smc91c111: mask register offset Lars Munch
@ 2010-04-08 19:23 ` Aurelien Jarno
0 siblings, 0 replies; 2+ messages in thread
From: Aurelien Jarno @ 2010-04-08 19:23 UTC (permalink / raw)
To: Lars Munch; +Cc: qemu-devel
On Mon, Mar 29, 2010 at 03:16:58PM +0200, Lars Munch wrote:
> this fixes the smc91c111 emulation which has been broken for gumstix and
> mainstone and maybe others since the "MMIO callback interface changes"
> 8da3ff180974732fc4272cb4433fef85c1822961 where commited, see:
>
> http://thread.gmane.org/gmane.comp.emulators.qemu/33607/focus=35194
Thanks, applied.
> Signed-off-by: Lars Munch <lars@segv.dk>
> ---
> 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;
> }
> --
> 1.7.0.3
>
>
>
>
--
Aurelien Jarno GPG: 1024D/F1BCDB73
aurelien@aurel32.net http://www.aurel32.net
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-04-08 21:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-29 13:16 [Qemu-devel] [PATCH] smc91c111: mask register offset Lars Munch
2010-04-08 19:23 ` Aurelien Jarno
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.