On Mon, Dec 11, 2023 at 03:01:48AM +0800, Ruihan Li wrote: > [ .. ] > > This problem is caused because the previous code may choose not to end > the TB even if the HF_INHIBIT_IRQ_MASK has just been reset (e.g., in the > case where the RET instruction is immediately followed by the STI > instruction), so that IRQs may not have a change to trigger.
There is a typo. I mean "in the case where the STI instruction is immediately followed by the RET instruction", not the other way around. I'll send a V2 patch if necessary, but let's hear from others first. Thanks, Ruihan Li