]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
target/i386: Renumber EXCP_SYSCALL
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 13 Feb 2020 03:22:19 +0000 (19:22 -0800)
committerLaurent Vivier <laurent@vivier.eu>
Thu, 26 Mar 2020 07:08:53 +0000 (08:08 +0100)
We are not short of numbers for EXCP_*.  There is no need to confuse things
by having EXCP_VMEXIT and EXCP_SYSCALL overlap, even though the former is
only used for system mode and the latter is only used for user mode.

Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20200213032223.14643-2-richard.henderson@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
target/i386/cpu.h

index 60d797d5941ff216306b2497e1e41f43b90b0cfb..49ecc23104c9a073309ee4db5c77fcec6e4773c3 100644 (file)
@@ -1001,9 +1001,8 @@ typedef uint64_t FeatureWordArray[FEATURE_WORDS];
 #define EXCP11_ALGN    17
 #define EXCP12_MCHK    18
 
-#define EXCP_SYSCALL    0x100 /* only happens in user only emulation
-                                 for syscall instruction */
-#define EXCP_VMEXIT     0x100
+#define EXCP_VMEXIT     0x100 /* only for system emulation */
+#define EXCP_SYSCALL    0x101 /* only for user emulation */
 
 /* i386-specific interrupt pending bits.  */
 #define CPU_INTERRUPT_POLL      CPU_INTERRUPT_TGT_EXT_1