mirror of https://gitee.com/openkylin/qemu.git
Fix master interrupt register masking
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3867 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
cc2acc47d7
commit
80be36b8a0
|
@ -68,7 +68,7 @@ typedef struct SLAVIO_INTCTLState {
|
|||
#define INTCTLM_MAXADDR 0x13
|
||||
#define INTCTLM_SIZE (INTCTLM_MAXADDR + 1)
|
||||
#define INTCTLM_MASK 0x1f
|
||||
#define MASTER_IRQ_MASK ~0x4fb2007f
|
||||
#define MASTER_IRQ_MASK ~0x0fa2007f
|
||||
#define MASTER_DISABLE 0x80000000
|
||||
#define CPU_IRQ_MASK 0xfffe0000
|
||||
#define CPU_IRQ_INT15_IN 0x0004000
|
||||
|
@ -151,7 +151,7 @@ static uint32_t slavio_intctlm_mem_readl(void *opaque, target_phys_addr_t addr)
|
|||
ret = s->intregm_pending & ~MASTER_DISABLE;
|
||||
break;
|
||||
case 1:
|
||||
ret = s->intregm_disabled;
|
||||
ret = s->intregm_disabled & MASTER_IRQ_MASK;
|
||||
break;
|
||||
case 4:
|
||||
ret = s->target_cpu;
|
||||
|
|
Loading…
Reference in New Issue