Fix system read address mask (Robert Reif)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3866 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
ea4b07f762
commit
cc2acc47d7
@ -145,7 +145,7 @@ static uint32_t slavio_intctlm_mem_readl(void *opaque, target_phys_addr_t addr)
|
|||||||
SLAVIO_INTCTLState *s = opaque;
|
SLAVIO_INTCTLState *s = opaque;
|
||||||
uint32_t saddr, ret;
|
uint32_t saddr, ret;
|
||||||
|
|
||||||
saddr = (addr & INTCTLM_MAXADDR) >> 2;
|
saddr = (addr & INTCTLM_MASK) >> 2;
|
||||||
switch (saddr) {
|
switch (saddr) {
|
||||||
case 0:
|
case 0:
|
||||||
ret = s->intregm_pending & ~MASTER_DISABLE;
|
ret = s->intregm_pending & ~MASTER_DISABLE;
|
||||||
|
Loading…
Reference in New Issue
Block a user