[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 1/5] target/i386: Renumber EXCP_SYSCALL
From: |
Richard Henderson |
Subject: |
[PATCH v2 1/5] target/i386: Renumber EXCP_SYSCALL |
Date: |
Thu, 16 Jan 2020 09:43:37 -1000 |
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 <address@hidden>
Reviewed-by: Alex Bennée <address@hidden>
Reviewed-by: Philippe Mathieu-Daudé <address@hidden>
Signed-off-by: Richard Henderson <address@hidden>
---
target/i386/cpu.h | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/target/i386/cpu.h b/target/i386/cpu.h
index 594326a794..164d038d1f 100644
--- a/target/i386/cpu.h
+++ b/target/i386/cpu.h
@@ -998,9 +998,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
--
2.20.1
- [PATCH v2 0/5] linux-user: Implement x86_64 vsyscalls, Richard Henderson, 2020/01/16
- [PATCH v2 1/5] target/i386: Renumber EXCP_SYSCALL,
Richard Henderson <=
- [PATCH v2 2/5] linux-user/i386: Split out gen_signal, Richard Henderson, 2020/01/16
- [PATCH v2 3/5] linux-user/i386: Emulate x86_64 vsyscalls, Richard Henderson, 2020/01/16
- Re: [PATCH v2 3/5] linux-user/i386: Emulate x86_64 vsyscalls, Alex Bennée, 2020/01/20
- Re: [PATCH v2 3/5] linux-user/i386: Emulate x86_64 vsyscalls, Richard Henderson, 2020/01/20
- Re: [PATCH v2 3/5] linux-user/i386: Emulate x86_64 vsyscalls, Alex Bennée, 2020/01/21
- Re: [PATCH v2 3/5] linux-user/i386: Emulate x86_64 vsyscalls, Richard Henderson, 2020/01/21
- Re: [PATCH v2 3/5] linux-user/i386: Emulate x86_64 vsyscalls, Alex Bennée, 2020/01/21
- Re: [PATCH v2 3/5] linux-user/i386: Emulate x86_64 vsyscalls, Paolo Bonzini, 2020/01/21
[PATCH v2 4/5] linux-user: Add x86_64 vsyscall page to /proc/self/maps, Richard Henderson, 2020/01/16