From: Mohamed Mediouni Date: Sat, 7 Mar 2026 18:18:52 +0000 (+0100) Subject: target/i386: emulate: LA57 fix X-Git-Tag: v11.0.0-rc0~24^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb02fc22845a24fc9e7fc317ba511c64b140ac8e;p=thirdparty%2Fqemu.git target/i386: emulate: LA57 fix Seen on a Sapphire Rapids box with LA57. The top level of the pte array is taken for CR3, so there was one entry too little for 5-level paging. Signed-off-by: Mohamed Mediouni Link: https://lore.kernel.org/r/20260307181856.2209-6-mohamed@unpredictable.fr Signed-off-by: Paolo Bonzini --- diff --git a/target/i386/emulate/x86_mmu.c b/target/i386/emulate/x86_mmu.c index 8261ca16351..4e39bae025e 100644 --- a/target/i386/emulate/x86_mmu.c +++ b/target/i386/emulate/x86_mmu.c @@ -56,7 +56,7 @@ static bool is_user(CPUState *cpu) struct gpt_translation { target_ulong gva; uint64_t gpa; - uint64_t pte[5]; + uint64_t pte[6]; }; static int gpt_top_level(CPUState *cpu, bool pae)