From cc2acc47d7ecee92d3948ab67d732fe5d19b8580 Mon Sep 17 00:00:00 2001 From: blueswir1 Date: Fri, 28 Dec 2007 18:46:01 +0000 Subject: Fix system read address mask (Robert Reif) git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3866 c046a42c-6fe2-441c-8c8c-71466251a162 --- hw/slavio_intctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hw/slavio_intctl.c') diff --git a/hw/slavio_intctl.c b/hw/slavio_intctl.c index a0aa53c21b..f7a35bb823 100644 --- a/hw/slavio_intctl.c +++ b/hw/slavio_intctl.c @@ -145,7 +145,7 @@ static uint32_t slavio_intctlm_mem_readl(void *opaque, target_phys_addr_t addr) SLAVIO_INTCTLState *s = opaque; uint32_t saddr, ret; - saddr = (addr & INTCTLM_MAXADDR) >> 2; + saddr = (addr & INTCTLM_MASK) >> 2; switch (saddr) { case 0: ret = s->intregm_pending & ~MASTER_DISABLE; -- cgit v1.2.3