]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
target/i386: move x86 instruction emulator out of hvf
authorWei Liu <liuwe@linux.microsoft.com>
Fri, 7 Mar 2025 19:55:24 +0000 (11:55 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 17 Apr 2025 16:23:26 +0000 (18:23 +0200)
Move x86_decode, x86_emu, x86_flags and some headers to the new location.
Fix up all the inclusion sites in hvf.

Signed-off-by: Wei Liu <liuwe@linux.microsoft.com>
Link: https://lore.kernel.org/r/1741377325-28175-14-git-send-email-liuwe@linux.microsoft.com
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
17 files changed:
target/i386/emulate/meson.build
target/i386/emulate/x86.h [moved from target/i386/hvf/x86.h with 100% similarity]
target/i386/emulate/x86_decode.c [moved from target/i386/hvf/x86_decode.c with 100% similarity]
target/i386/emulate/x86_decode.h [moved from target/i386/hvf/x86_decode.h with 100% similarity]
target/i386/emulate/x86_emu.c [moved from target/i386/hvf/x86_emu.c with 100% similarity]
target/i386/emulate/x86_emu.h [moved from target/i386/hvf/x86_emu.h with 100% similarity]
target/i386/emulate/x86_flags.c [moved from target/i386/hvf/x86_flags.c with 100% similarity]
target/i386/emulate/x86_flags.h [moved from target/i386/hvf/x86_flags.h with 100% similarity]
target/i386/hvf/hvf.c
target/i386/hvf/meson.build
target/i386/hvf/vmx.h
target/i386/hvf/x86.c
target/i386/hvf/x86_cpuid.c
target/i386/hvf/x86_descr.h
target/i386/hvf/x86_mmu.c
target/i386/hvf/x86_task.c
target/i386/hvf/x86hvf.c

index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..4edd4f462fc742ba099707f556f9cb06e5fcf09d 100644 (file)
@@ -0,0 +1,5 @@
+i386_system_ss.add(when: [hvf, 'CONFIG_HVF'], if_true: files(
+  'x86_decode.c',
+  'x86_emu.c',
+  'x86_flags.c',
+))
index 8c31d2e0cf72c764ef7605976517e9778ff92f56..23ebf2550aca744396faccf53e1b140b6e617c64 100644 (file)
 #include "hvf-i386.h"
 #include "vmcs.h"
 #include "vmx.h"
-#include "x86.h"
+#include "emulate/x86.h"
 #include "x86_descr.h"
-#include "x86_flags.h"
+#include "emulate/x86_flags.h"
 #include "x86_mmu.h"
-#include "x86_decode.h"
-#include "x86_emu.h"
+#include "emulate/x86_decode.h"
+#include "emulate/x86_emu.h"
 #include "x86_task.h"
 #include "x86hvf.h"
 
index 05c3c8cf18b5fd377c91ac0d6b85077f856b90b6..519d190f0e6bb95e2860e17a730ae3ec6dc0b33a 100644 (file)
@@ -2,10 +2,7 @@ i386_system_ss.add(when: [hvf, 'CONFIG_HVF'], if_true: files(
   'hvf.c',
   'x86.c',
   'x86_cpuid.c',
-  'x86_decode.c',
   'x86_descr.c',
-  'x86_emu.c',
-  'x86_flags.c',
   'x86_mmu.c',
   'x86_task.c',
   'x86hvf.c',
index 80ce26279bf013a3aa1140edb54390c098fb762e..3c56afc9d3a16b38ec0933e094144f835b1227a3 100644 (file)
@@ -29,7 +29,7 @@
 #include <Hypervisor/hv_vmx.h>
 #include "vmcs.h"
 #include "cpu.h"
-#include "x86.h"
+#include "emulate/x86.h"
 #include "system/hvf.h"
 #include "system/hvf_int.h"
 
index a0ede138865eb31f52214e7fd6c49b0bac3f4f50..5c75ec9a007909c3716698821064a7c5f9c7712a 100644 (file)
@@ -19,8 +19,8 @@
 #include "qemu/osdep.h"
 
 #include "cpu.h"
-#include "x86_decode.h"
-#include "x86_emu.h"
+#include "emulate/x86_decode.h"
+#include "emulate/x86_emu.h"
 #include "vmcs.h"
 #include "vmx.h"
 #include "x86_mmu.h"
index ae836f65cc92d9abf650e8f36729df1745b759ba..fa131b18c6d17b2d830b197cceaa717370f84f93 100644 (file)
@@ -24,7 +24,7 @@
 #include "qemu/cpuid.h"
 #include "host/cpuinfo.h"
 #include "cpu.h"
-#include "x86.h"
+#include "emulate/x86.h"
 #include "vmx.h"
 #include "system/hvf.h"
 #include "hvf-i386.h"
index ce5de9834973ed4afcf11556da1e014cbdcfdb5d..24af4946cd4604edac272413201574cf6c3bb7d2 100644 (file)
@@ -19,7 +19,7 @@
 #ifndef HVF_X86_DESCR_H
 #define HVF_X86_DESCR_H
 
-#include "x86.h"
+#include "emulate/x86.h"
 
 typedef struct vmx_segment {
     uint16_t sel;
index 579d0c3a4cc58f843d409ec14693f1c3f9564287..afc5c17d5d5c2c7fdce2584b177551f5f20b58e7 100644 (file)
@@ -19,7 +19,7 @@
 #include "qemu/osdep.h"
 #include "panic.h"
 #include "cpu.h"
-#include "x86.h"
+#include "emulate/x86.h"
 #include "x86_mmu.h"
 #include "vmcs.h"
 #include "vmx.h"
index 161217991fc0d5f519f74ce76881de03d2ea41d1..bdf8b51ae67076ecb2159c89a5eb8af5657a0064 100644 (file)
 #include "hvf-i386.h"
 #include "vmcs.h"
 #include "vmx.h"
-#include "x86.h"
+#include "emulate/x86.h"
 #include "x86_descr.h"
 #include "x86_mmu.h"
-#include "x86_decode.h"
-#include "x86_emu.h"
+#include "emulate/x86_decode.h"
+#include "emulate/x86_emu.h"
 #include "x86_task.h"
 #include "x86hvf.h"
 
index 531a340b37c9a38498f6203bdf1f9f05c9d1a31e..2057314892a90c178b263e17869c7e9590f0fa1c 100644 (file)
@@ -24,7 +24,7 @@
 #include "vmcs.h"
 #include "cpu.h"
 #include "x86_descr.h"
-#include "x86_decode.h"
+#include "emulate/x86_decode.h"
 #include "system/hw_accel.h"
 
 #include "hw/i386/apic_internal.h"