On 11/6/23 07:44, Alex Bennée wrote:
+TARGET_XML_FILES=gdb-xml/loongarch-base32.xml gdb-xml/loongarch-base64.xml
gdb-xml/loongarch-fpu.xml
The qemu-loongarch64 binary emulates loongarch64 only, not
loongarch32. The inclusion of loongarch-base32.xml here is not
relevant.
Does the system binary emulate both?
Yes.
Technically, the user-only binary will emulate the 32-bit cpu just fine. But much like
aarch64, there is no ilp32 kernel abi for loongarch.
That said, we don't exclude TYPE_LOONGARCH32_CPU or -cpu la132 from
CONFIG_USER_ONLY, which is a separate mistake.
Where should that be done?
Probably target/loongarch/cpu.c, by omitting TYPE_LOONGARCH32_CPU and "la132".
r~