Skip to content

Commit eb626c7

Browse files
bibo-maochenhuacai
authored andcommitted
LoongArch: KVM: Add IRR and ISR register read emulation
With LS7A user manual, there are registers PCH_PIC_INT_IRR_START and PCH_PIC_INT_ISR_START. So add read access emulation in function loongarch_pch_pic_read() here. Signed-off-by: Bibo Mao <[email protected]> Signed-off-by: Huacai Chen <[email protected]>
1 parent 2f412eb commit eb626c7

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

arch/loongarch/kvm/intc/pch_pic.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,12 @@ static int loongarch_pch_pic_read(struct loongarch_pch_pic *s, gpa_t addr, int l
168168
/* we only use defalut value 0: high level triggered */
169169
*(u32 *)val = 0;
170170
break;
171+
case PCH_PIC_INT_IRR_START:
172+
data = s->irr;
173+
break;
174+
case PCH_PIC_INT_ISR_START:
175+
data = s->isr;
176+
break;
171177
default:
172178
ret = -EINVAL;
173179
}

0 commit comments

Comments
 (0)