|
| From: | Richard Henderson |
| Subject: | Re: [PATCH v2 04/22] target/loongarch: Add interrupt handling support |
| Date: | Thu, 22 Jul 2021 12:47:23 -1000 |
| User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 |
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_interrupts_enabled(env) &&
+ cpu_loongarch_hw_interrupts_pending(env)) {
+ cs->exception_index = EXCP_INTE;
+ env->error_code = 0;
+ loongarch_cpu_do_interrupt(cs);
+ return true;
+ }
+ }
+ return false;
+}
Not sure what you're doing here, with user-only. None of these conditions apply. r~
| [Prev in Thread] | Current Thread | [Next in Thread] |