Hi all, I encountered an issue while running a LoongArch system on x86_64 QEMU and using LATA (an ARM binary translator based on QEMU) on top of it. During execution, I ran into an illegal instruction error.
After investigation, it appears that this may be caused by the lack of support for certain ARM instructions in LBT (Loongson Binary Translation), such as armmtflag, which are not recognized or translated by QEMU, resulting in the illegal instruction exception. I would like to discuss the following point with the community: Is it necessary to add support for these LBT-related ARM instructions in the QEMU LoongArch backend? This does seem a bit unusual, but it’s not clear whether it is strictly required. If the community considers this worthwhile, I am willing to implement these instructions and submit a corresponding patch or discussion proposal. Thank you for your opinions and suggestions. Best regards, Spring
