Re: [PATCH v2 04/22] target/loongarch: Add interrupt handling support

2021-07-26 Thread Song Gao
Hi, Richard. On 07/23/2021 06:47 AM, Richard Henderson wrote: > On 7/20/21 11:53 PM, Song Gao wrote: >> +bool loongarch_cpu_exec_interrupt(CPUState *cs, int interrupt_request) >> +{ >> +    if (interrupt_request & CPU_INTERRUPT_HARD) { >> +    LoongArchCPU *cpu = LOONGARCH_CPU(cs); >> +   

Re: [PATCH v2 04/22] target/loongarch: Add interrupt handling support

2021-07-22 Thread Richard Henderson
On 7/20/21 11:53 PM, Song Gao wrote: +bool loongarch_cpu_exec_interrupt(CPUState *cs, int interrupt_request) +{ +if (interrupt_request & CPU_INTERRUPT_HARD) { +LoongArchCPU *cpu = LOONGARCH_CPU(cs); +CPULoongArchState *env = &cpu->env; + +if (cpu_loongarch_hw_interrupt

[PATCH v2 04/22] target/loongarch: Add interrupt handling support

2021-07-21 Thread Song Gao
This patch introduces functions loongarch_cpu_do_interrupt() and loongarch_cpu_exec_interrupt() Signed-off-by: Song Gao --- target/loongarch/cpu.c | 23 +++ target/loongarch/cpu.h | 25 + 2 files changed, 48 insertions(+) diff --git a/target/loongarch