From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LZLJD-0003LB-7b for qemu-devel@nongnu.org; Tue, 17 Feb 2009 03:28:03 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LZLJB-0003Kv-OX for qemu-devel@nongnu.org; Tue, 17 Feb 2009 03:28:02 -0500 Received: from [199.232.76.173] (port=57409 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LZLJB-0003Kk-GU for qemu-devel@nongnu.org; Tue, 17 Feb 2009 03:28:01 -0500 Received: from mail-bw0-f205.google.com ([209.85.218.205]:34682) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LZLJB-0004Ja-5t for qemu-devel@nongnu.org; Tue, 17 Feb 2009 03:28:01 -0500 Received: by bwz1 with SMTP id 1so3890924bwz.10 for ; Tue, 17 Feb 2009 00:27:58 -0800 (PST) MIME-Version: 1.0 Date: Tue, 17 Feb 2009 08:27:57 +0000 Message-ID: <309a0db40902170027s75a1505fn6de64be94a82e05e@mail.gmail.com> From: Alex Smith Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Resume Flag support on i386/x86_64? 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 Hi, Recently support for hardware breakpoint support on i386/x86_64 was added (revision 5747 - http://lists.gnu.org/archive/html/qemu-devel/2008-11/msg01025.html). I've been using hardware breakpoints while writing a debugger for my hobby OS kernel, however I've discovered that despite support being added for them in QEMU, the Resume Flag (bit 16 in EFLAGS) is not supported. When this flag is set on return from an interrupt, the CPU should ignore instruction breakpoints for the next instruction, and then clear the flag after checking for breakpoints (there's a description on page 18-10 of the Intel Software Developer's Manual Volume 3B). Would it be possible to implement support for this? Thanks, Alex