[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL v3 01/16] target/i386: Renumber EXCP_SYSCALL
From: |
Laurent Vivier |
Subject: |
[PULL v3 01/16] target/i386: Renumber EXCP_SYSCALL |
Date: |
Thu, 19 Mar 2020 10:26:12 +0100 |
From: Richard Henderson <address@hidden>
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>
Message-Id: <address@hidden>
Signed-off-by: Laurent Vivier <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 576f309bbfc8..08b4422f36bd 100644
--- a/target/i386/cpu.h
+++ b/target/i386/cpu.h
@@ -999,9 +999,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.25.1
- [PULL v3 00/16] Linux user for 5.0 patches, Laurent Vivier, 2020/03/19
- [PULL v3 04/16] linux-user: Add x86_64 vsyscall page to /proc/self/maps, Laurent Vivier, 2020/03/19
- [PULL v3 07/16] linux-user: do prlimit selectively, Laurent Vivier, 2020/03/19
- [PULL v3 03/16] linux-user/i386: Emulate x86_64 vsyscalls, Laurent Vivier, 2020/03/19
- [PULL v3 09/16] linux-user: Update TASK_UNMAPPED_BASE for aarch64, Laurent Vivier, 2020/03/19
- [PULL v3 06/16] linux-user: Add AT_EXECFN auxval, Laurent Vivier, 2020/03/19
- [PULL v3 05/16] linux-user: Flush out implementation of gettimeofday, Laurent Vivier, 2020/03/19
- [PULL v3 01/16] target/i386: Renumber EXCP_SYSCALL,
Laurent Vivier <=
- [PULL v3 08/16] linux-user: fix socket() strace, Laurent Vivier, 2020/03/19
- [PULL v3 11/16] linux-user/syscall: Add support for clock_gettime64/clock_settime64, Laurent Vivier, 2020/03/19
- [PULL v3 02/16] linux-user/i386: Split out gen_signal, Laurent Vivier, 2020/03/19
- [PULL v3 16/16] linux-user, openrisc: sync syscall numbers with kernel v5.5, Laurent Vivier, 2020/03/19
- [PULL v3 13/16] scripts: add a script to generate syscall_nr.h, Laurent Vivier, 2020/03/19
- [PULL v3 12/16] linux-user/riscv: Update the syscall_nr's to the 5.5 kernel, Laurent Vivier, 2020/03/19
- [PULL v3 10/16] linux-user: Protect more syscalls, Laurent Vivier, 2020/03/19
- [PULL v3 14/16] linux-user, aarch64: sync syscall numbers with kernel v5.5, Laurent Vivier, 2020/03/19
- [PULL v3 15/16] linux-user, nios2: sync syscall numbers with kernel v5.5, Laurent Vivier, 2020/03/19
- Re: [PULL v3 00/16] Linux user for 5.0 patches, Peter Maydell, 2020/03/19