From patchwork Fri Oct 16 16:23:33 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eduardo Habkost X-Patchwork-Id: 531471 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 25C24140134 for ; Sat, 17 Oct 2015 03:26:30 +1100 (AEDT) Received: from localhost ([::1]:54859 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zn7pr-0006rb-QG for incoming@patchwork.ozlabs.org; Fri, 16 Oct 2015 12:26:27 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44950) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zn7nR-0002bI-Ga for qemu-devel@nongnu.org; Fri, 16 Oct 2015 12:23:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zn7nO-0005Xl-BK for qemu-devel@nongnu.org; Fri, 16 Oct 2015 12:23:57 -0400 Received: from mx1.redhat.com ([209.132.183.28]:56662) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zn7nO-0005XY-5s for qemu-devel@nongnu.org; Fri, 16 Oct 2015 12:23:54 -0400 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (Postfix) with ESMTPS id CF2FC344F74; Fri, 16 Oct 2015 16:23:53 +0000 (UTC) Received: from localhost (ovpn-113-196.phx2.redhat.com [10.3.113.196]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t9GGNqD6027073; Fri, 16 Oct 2015 12:23:53 -0400 From: Eduardo Habkost To: qemu-devel@nongnu.org, Paolo Bonzini , Richard Henderson Date: Fri, 16 Oct 2015 13:23:33 -0300 Message-Id: <1445012619-23772-4-git-send-email-ehabkost@redhat.com> In-Reply-To: <1445012619-23772-1-git-send-email-ehabkost@redhat.com> References: <1445012619-23772-1-git-send-email-ehabkost@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.27 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH v2 3/9] target-i386: Ensure bit 10 on DR7 is never cleared X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Bit 10 of DR7 is documented as always set to 1, so ensure that's always the case. Signed-off-by: Eduardo Habkost --- target-i386/bpt_helper.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/target-i386/bpt_helper.c b/target-i386/bpt_helper.c index 23ce828..493deba 100644 --- a/target-i386/bpt_helper.c +++ b/target-i386/bpt_helper.c @@ -113,6 +113,8 @@ void cpu_x86_update_dr7(CPUX86State *env, uint32_t new_dr7) hw_breakpoint_insert(env, i); } } + + env->dr[7] |= DR7_FIXED_1; } #endif