]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
target/i386: Replace target_ulong -> uint64_t for TARGET_X86_64
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Sun, 15 Mar 2026 14:33:55 +0000 (15:33 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Wed, 6 May 2026 10:58:08 +0000 (12:58 +0200)
These registers are only available on 64-bit builds, thus
always handled as 64-bit. This isn't even a migration break
because they are migrated as 64-bit since the beginning
(see commit 02536f8b1f9 "x86_64 save/restore").

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Anton Johansson <anjo@rev.ng>
Message-Id: <20260315165319.39727-1-philmd@linaro.org>

target/i386/cpu.h

index f57c99e8b4e1f3d604b320ff278c1462a81e0745..a836efd45ee03c22f4d3be2514043938b335c5ed 100644 (file)
@@ -2061,10 +2061,10 @@ typedef struct CPUArchState {
     uint64_t vm_hsave;
 
 #ifdef TARGET_X86_64
-    target_ulong lstar;
-    target_ulong cstar;
-    target_ulong fmask;
-    target_ulong kernelgsbase;
+    uint64_t lstar;
+    uint64_t cstar;
+    uint64_t fmask;
+    uint64_t kernelgsbase;
 
     /* FRED MSRs */
     uint64_t fred_rsp0;