From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57707) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aalyR-0006Ap-LY for qemu-devel@nongnu.org; Tue, 01 Mar 2016 10:12:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aalyO-0000c5-FE for qemu-devel@nongnu.org; Tue, 01 Mar 2016 10:12:31 -0500 Received: from mx1.redhat.com ([209.132.183.28]:56594) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aalyO-0000c0-AS for qemu-devel@nongnu.org; Tue, 01 Mar 2016 10:12:28 -0500 From: Paolo Bonzini Date: Tue, 1 Mar 2016 16:12:25 +0100 Message-Id: <1456845145-18891-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PATCH] target-i386: avoid repeated calls to the bnd_jmp helper List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: rth@twiddle.net One flag was tested the wrong way. Cc: rth@twiddle.net Signed-off-by: Paolo Bonzini --- target-i386/translate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target-i386/translate.c b/target-i386/translate.c index b345e2c..ebd8995 100644 --- a/target-i386/translate.c +++ b/target-i386/translate.c @@ -2420,7 +2420,7 @@ static void gen_bnd_jmp(DisasContext *s) itself will check BNDPRESERVE at runtime. */ if ((s->prefix & PREFIX_REPNZ) == 0 && (s->flags & HF_MPX_EN_MASK) == 0 - && (s->flags & HF_MPX_IU_MASK) == 0) { + && (s->flags & HF_MPX_IU_MASK) != 0) { gen_helper_bnd_jmp(cpu_env); } } -- 2.5.0