Signed-off-by: Jiaxun Yang jiaxun.yang@flygoat.com --- Changes in v2: - v1 was sent in mistake, b4 messed up with QEMU again - Link to v1: https://lore.kernel.org/r/20240621-loongson3-ipi-follow-v1-0-c6e73f2b2844@fl...
--- Jiaxun Yang (3): hw/mips/loongson3_virt: Store core_iocsr into LoongsonMachineState hw/mips/loongson3_virt: Fix condition of IPI IOCSR connection linux-user/mips64: Use MIPS64R2-generic as default CPU type
hw/mips/loongson3_virt.c | 5 ++++- linux-user/mips64/target_elf.h | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) --- base-commit: 02d9c38236cf8c9826e5c5be61780c4444cb4ae0 change-id: 20240621-loongson3-ipi-follow-1f4919621882
Best regards,
5KEf is some what not standard compliant by having non-functional FCSR condition fields. This is causing glibc test failure in qemu-user.
Use MIPS64R2-generic as our default type, which have maximum CPU features.
Cc: stable@vger.kernel.org Signed-off-by: Jiaxun Yang jiaxun.yang@flygoat.com --- linux-user/mips64/target_elf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/linux-user/mips64/target_elf.h b/linux-user/mips64/target_elf.h index 5f2f2df29f7f..82bb7e8b1cbf 100644 --- a/linux-user/mips64/target_elf.h +++ b/linux-user/mips64/target_elf.h @@ -15,6 +15,6 @@ static inline const char *cpu_get_model(uint32_t eflags) if ((eflags & EF_MIPS_MACH) == EF_MIPS_MACH_5900) { return "R5900"; } - return "5KEf"; + return "MIPS64R2-generic"; } #endif
On 21/6/24 15:11, Jiaxun Yang wrote:
Jiaxun Yang (3): hw/mips/loongson3_virt: Store core_iocsr into LoongsonMachineState hw/mips/loongson3_virt: Fix condition of IPI IOCSR connection linux-user/mips64: Use MIPS64R2-generic as default CPU type
Reviewed-by: Philippe Mathieu-Daudé philmd@linaro.org
On 21/6/24 15:11, Jiaxun Yang wrote:
Signed-off-by: Jiaxun Yang jiaxun.yang@flygoat.com
Changes in v2:
- v1 was sent in mistake, b4 messed up with QEMU again
- Link to v1: https://lore.kernel.org/r/20240621-loongson3-ipi-follow-v1-0-c6e73f2b2844@fl...
Jiaxun Yang (3): hw/mips/loongson3_virt: Store core_iocsr into LoongsonMachineState hw/mips/loongson3_virt: Fix condition of IPI IOCSR connection
Patches 1 & 2 queued,
linux-user/mips64: Use MIPS64R2-generic as default CPU type
patch 3 superseded by https://lore.kernel.org/qemu-devel/20240814133928.6746-4-philmd@linaro.org/
Thanks.
linux-stable-mirror@lists.linaro.org