Commit 33271823 authored by Peter Maydell's avatar Peter Maydell
Browse files

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.

Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
Reviewed-by: default avatarSergey Fedorov <sergey.fedorov@linaro.org>
Acked-by: default avatarEduardo Habkost <ehabkost@redhat.com>
Acked-by: default avatarRiku Voipio <riku.voipio@linaro.org>
Message-id: 1463494687-25947-6-git-send-email-peter.maydell@linaro.org
parent a5852dc5
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -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)
{