From fa2679ba9603c7651c770857d7c2b077daf41b8a Mon Sep 17 00:00:00 2001 From: Peter Maydell Date: Sat, 24 Feb 2018 17:26:15 -0500 Subject: [PATCH] target-i386: Add comment about do_interrupt_user() next_eip argument Add a comment to do_interrupt_user() along the same lines as the existing one for do_interrupt_all() noting that the next_eip argument is not used unless is_int is true or intno is EXCP_SYSCALL. Backports commit 33271823323483b4ede1ae99de83d33b25875402 from qemu --- qemu/target-i386/seg_helper.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/qemu/target-i386/seg_helper.c b/qemu/target-i386/seg_helper.c index 9513a2c1..11537fd0 100644 --- a/qemu/target-i386/seg_helper.c +++ b/qemu/target-i386/seg_helper.c @@ -1129,7 +1129,11 @@ static void do_interrupt_real(CPUX86State *env, int intno, int is_int, } #if defined(CONFIG_USER_ONLY) -/* fake user mode interrupt */ +/* fake user mode interrupt. is_int is TRUE if coming from the int + * instruction. next_eip is the env->eip value AFTER the interrupt + * instruction. It is only relevant if is_int is TRUE or if intno + * is EXCP_SYSCALL. + */ static void do_interrupt_user(CPUX86State *env, int intno, int is_int, int error_code, target_ulong next_eip) {