From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Cz1Dh-00086b-4N for qemu-devel@nongnu.org; Wed, 09 Feb 2005 18:26:05 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Cz1Dg-00086N-Hj for qemu-devel@nongnu.org; Wed, 09 Feb 2005 18:26:04 -0500 Received: from [129.104.30.34] (helo=mx1.polytechnique.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Cz10I-0008Gd-O4 for qemu-devel@nongnu.org; Wed, 09 Feb 2005 18:12:14 -0500 Received: from [84.99.204.153] (153.204.99-84.rev.gaoland.net [84.99.204.153]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ssl.polytechnique.org (Postfix) with ESMTP id B594F33176 for ; Thu, 10 Feb 2005 00:12:11 +0100 (CET) Message-ID: <420A9908.1060507@bellard.org> Date: Thu, 10 Feb 2005 00:13:12 +0100 From: Fabrice Bellard MIME-Version: 1.0 Subject: Re: [Qemu-devel] Debugging registers DR0, DR7 don't work References: <420A8591.4090208@email.it> In-Reply-To: <420A8591.4090208@email.it> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Paolo Minazzi wrote: > I'm Paolo Minazzi and I am a new user of QEMU. > I use it to learn protected mode programming in asm. > QEMU is very useful as I can avoid to reset continuosly my PC. > > Nevertheless I have a problem. > I have tried to write an asm program to try dr0 and dr7 debugging register. > I have found that this register don' work and I cannot receive the > excepction 1. > My program instead works fine in a real DOS system. > > Does someone indicate me how to enable debugging register with QEMU ? Debug registers are currently unsupported by QEMU, but there is nothing preventing to support them. With the upcoming QEMU Accelerator Module, they are supported for CPL=3 (= for user code, which is the most useful). Fabrice.