From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39144) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bCVJD-0001X2-1U for qemu-devel@nongnu.org; Mon, 13 Jun 2016 13:05:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bCVJ7-0001rH-63 for qemu-devel@nongnu.org; Mon, 13 Jun 2016 13:05:53 -0400 Received: from mx1.redhat.com ([209.132.183.28]:46495) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bCVJ7-0001r5-0E for qemu-devel@nongnu.org; Mon, 13 Jun 2016 13:05:49 -0400 From: Stefan Hajnoczi Date: Mon, 13 Jun 2016 18:05:25 +0100 Message-Id: <1465837535-30067-6-git-send-email-stefanha@redhat.com> In-Reply-To: <1465837535-30067-1-git-send-email-stefanha@redhat.com> References: <1465837535-30067-1-git-send-email-stefanha@redhat.com> Subject: [Qemu-devel] [PATCH v3 05/15] target-i386: Add comment about do_interrupt_user() next_eip argument List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Kevin Wolf , jjherne@linux.vnet.ibm.com, Fam Zheng , Paolo Bonzini , Jeff Cody , mreitz@redhat.com, Peter Maydell From: Peter Maydell 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: Peter Maydell Reviewed-by: Sergey Fedorov Acked-by: Eduardo Habkost Acked-by: Riku Voipio Message-id: 1463494687-25947-6-git-send-email-peter.maydell@linaro.org --- target-i386/seg_helper.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/target-i386/seg_helper.c b/target-i386/seg_helper.c index 97aee09..6cbdf17 100644 --- a/target-i386/seg_helper.c +++ b/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) { -- 2.5.5