From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4517 invoked by alias); 17 Nov 2009 19:18:57 -0000 Received: (qmail 4507 invoked by uid 22791); 17 Nov 2009 19:18:56 -0000 X-SWARE-Spam-Status: No, hits=-0.3 required=5.0 tests=AWL,BAYES_50,SPF_SOFTFAIL X-Spam-Check-By: sourceware.org Received: from mtaout22.012.net.il (HELO mtaout22.012.net.il) (80.179.55.172) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 17 Nov 2009 19:17:52 +0000 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0KT900000PEBLA00@a-mtaout22.012.net.il> for gdb-patches@sourceware.org; Tue, 17 Nov 2009 21:17:14 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.70.37.193]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0KT900JNNPKP9SA0@a-mtaout22.012.net.il>; Tue, 17 Nov 2009 21:17:14 +0200 (IST) Date: Tue, 17 Nov 2009 19:18:00 -0000 From: Eli Zaretskii Subject: Re: [patch 3/4] Fix hw watchpoints #2: reordered / simultaneously hit In-reply-to: <20091117152912.GA29979@host0.dyn.jankratochvil.net> To: Jan Kratochvil Cc: brobecker@adacore.com, gdb-patches@sourceware.org Reply-to: Eli Zaretskii Message-id: <83fx8dm05c.fsf@gnu.org> References: <20091116034156.GD22701@host0.dyn.jankratochvil.net> <20091117001056.GE4557@adacore.com> <83k4xpn6hz.fsf@gnu.org> <20091117141139.GA5266@adacore.com> <20091117152912.GA29979@host0.dyn.jankratochvil.net> X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2009-11/txt/msg00389.txt.bz2 > Date: Tue, 17 Nov 2009 16:29:12 +0100 > From: Jan Kratochvil > Cc: Eli Zaretskii , gdb-patches@sourceware.org > > 0000000000000000 : > 0: 0f b6 47 04 movzbl 0x4(%rdi),%eax > + 4: 83 e0 01 and $0x1,%eax > c3 retq > > 0000000000000010 : > - 10: c6 47 04 01 movb $0x1,0x4(%rdi) > + 10: 80 4f 04 01 orb $0x1,0x4(%rdi) This is what I remembered, at least for x86. A single additional instruction can hardly cause any visible slowdown, at least not with access patterns typical for such flags. Any other reasons not to use bitfields?