Re: [PATCH] target/loongarch: Fix the CSRRD CPUID instruction on big endian hosts

2023-07-21 Thread Song Gao
在 2023/7/21 上午1:53, Thomas Huth 写道: The test in tests/avocado/machine_loongarch.py is currently failing on big endian hosts like s390x. By comparing the traces between running the QEMU_EFI.fd bios on a s390x and on a x86 host, it's quickly obvious that the CSRRD instruction for the CPUID is be

[PATCH] target/loongarch: Fix the CSRRD CPUID instruction on big endian hosts

2023-07-20 Thread Thomas Huth
The test in tests/avocado/machine_loongarch.py is currently failing on big endian hosts like s390x. By comparing the traces between running the QEMU_EFI.fd bios on a s390x and on a x86 host, it's quickly obvious that the CSRRD instruction for the CPUID is behaving differently. And indeed: The code