Commit cc2acc47d7ecee92d3948ab67d732fe5d19b8580

Authored by blueswir1
1 parent ea4b07f7

Fix system read address mask (Robert Reif)


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3866 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 1 additions and 1 deletions
hw/slavio_intctl.c
@@ -145,7 +145,7 @@ static uint32_t slavio_intctlm_mem_readl(void *opaque, target_phys_addr_t addr) @@ -145,7 +145,7 @@ static uint32_t slavio_intctlm_mem_readl(void *opaque, target_phys_addr_t addr)
145 SLAVIO_INTCTLState *s = opaque; 145 SLAVIO_INTCTLState *s = opaque;
146 uint32_t saddr, ret; 146 uint32_t saddr, ret;
147 147
148 - saddr = (addr & INTCTLM_MAXADDR) >> 2; 148 + saddr = (addr & INTCTLM_MASK) >> 2;
149 switch (saddr) { 149 switch (saddr) {
150 case 0: 150 case 0:
151 ret = s->intregm_pending & ~MASTER_DISABLE; 151 ret = s->intregm_pending & ~MASTER_DISABLE;