]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/loongarch/virt: Fix big endian support with MCFG table
authorBibo Mao <maobibo@loongson.cn>
Wed, 4 Jun 2025 06:55:01 +0000 (14:55 +0800)
committerMichael Tokarev <mjt@tls.msk.ru>
Wed, 9 Jul 2025 08:30:58 +0000 (11:30 +0300)
commit741f5877da67abf84d3594f1af7346b998a817bf
tree558c4291730f8f41e6fd0a6f4c33acad6f3d0416
parent2d39032357c2627cddadacb2d797c854b9bbb28c
hw/loongarch/virt: Fix big endian support with MCFG table

With API build_mcfg(), it is not necessary with parameter structure
AcpiMcfgInfo to convert to little endian since it is directly used
with host native endian.

Here remove endian conversion before calling function build_mcfg().
With this patch, bios-tables-test passes to run on big endian host
machine S390.

Fixes: 735143f10d3e ("hw/loongarch: Add acpi ged support")
Cc: qemu-stable@nongnu.org
Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Reviewed-by: Song Gao <gaosong@loongson.cn>
Message-Id: <20250604065502.1114098-2-maobibo@loongson.cn>
Signed-off-by: Song Gao <gaosong@loongson.cn>
(cherry picked from commit 9c55c03c05c1899521ff0c991b9296633d759890)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/loongarch/acpi-build.c