|
| From: | Richard Henderson |
| Subject: | Re: [RFC PATCH v7 10/29] target/loongarch: Add other core instructions support |
| Date: | Mon, 28 Mar 2022 14:16:57 -0600 |
| User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 |
On 3/28/22 06:57, Xiaojuan Yang wrote:
+void helper_idle(CPULoongArchState *env)
+{
+ CPUState *cs = env_cpu(env);
+
+ cs->halted = 1;
+ cpu_reset_interrupt(cs, CPU_INTERRUPT_WAKE);
+ do_raise_exception(env, EXCP_HLT, 0);
+}
Why are you messing with CPU_INTERRUPT_WAKE? You only ever reset it, and never set it. r~
| [Prev in Thread] | Current Thread | [Next in Thread] |