]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
target/i386: mshv, emulate: move the generic x86 helpers to target/i386/emulate
authorMohamed Mediouni <mohamed@unpredictable.fr>
Mon, 23 Feb 2026 23:39:39 +0000 (00:39 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 26 Feb 2026 17:58:39 +0000 (18:58 +0100)
HVF doesn't use them at this point, but move them to common code as that's what they are.

Signed-off-by: Mohamed Mediouni <mohamed@unpredictable.fr>
Link: https://lore.kernel.org/r/20260223233950.96076-18-mohamed@unpredictable.fr
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/emulate/meson.build
target/i386/emulate/x86_helpers.c [moved from target/i386/mshv/x86.c with 100% similarity]
target/i386/mshv/meson.build

index 1bb35162498939bbae83fffaf7957235023ddf84..1fa1a8e8ec8f66f8261aababaca822689c4fcc94 100644 (file)
@@ -5,6 +5,13 @@ emulator_files = files(
   'x86_mmu.c'
 )
 
+emulator_helper_files = files(
+  'x86_helpers.c'
+)
+
 i386_system_ss.add(when: [hvf, 'CONFIG_HVF'], if_true: emulator_files)
 i386_system_ss.add(when: 'CONFIG_MSHV', if_true: emulator_files)
 i386_system_ss.add(when: 'CONFIG_WHPX', if_true: emulator_files)
+
+i386_system_ss.add(when: 'CONFIG_MSHV', if_true: emulator_helper_files)
+i386_system_ss.add(when: 'CONFIG_WHPX', if_true: emulator_helper_files)
index 3fadd4598a5d17f4d1d6338462ec0552cf8e7c08..49f28d4a5b9d24def99c9414776a032c7f9e720a 100644 (file)
@@ -2,11 +2,7 @@ i386_mshv_ss = ss.source_set()
 
 i386_mshv_ss.add(files(
   'mshv-cpu.c',
-  'x86.c',
 ))
 
 i386_system_ss.add_all(when: 'CONFIG_MSHV', if_true: i386_mshv_ss)
 
-i386_system_ss.add(when: 'CONFIG_WHPX', if_true: files(
-  'x86.c',
-))