From patchwork Thu Jun 11 15:58:12 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Frysinger X-Patchwork-Id: 7122 X-Patchwork-Delegate: vapier@gentoo.org Received: (qmail 42897 invoked by alias); 11 Jun 2015 15:58:30 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 42790 invoked by uid 89); 11 Jun 2015 15:58:28 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL, BAYES_00, SPF_PASS, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: smtp.gentoo.org Received: from smtp.gentoo.org (HELO smtp.gentoo.org) (140.211.166.183) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Thu, 11 Jun 2015 15:58:26 +0000 Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 2A05D340D33 for ; Thu, 11 Jun 2015 15:58:25 +0000 (UTC) From: Mike Frysinger To: gdb-patches@sourceware.org Subject: [PATCH 2/4] sim: trace: use existing defines for the useful mask Date: Thu, 11 Jun 2015 11:58:12 -0400 Message-Id: <1434038294-32159-2-git-send-email-vapier@gentoo.org> In-Reply-To: <1434038294-32159-1-git-send-email-vapier@gentoo.org> References: <1434038294-32159-1-git-send-email-vapier@gentoo.org> X-IsSubscribed: yes No point in duplicating the shift logic when we have macros already to keep that all unified. Committed. --- sim/common/ChangeLog | 4 ++++ sim/common/sim-trace.h | 5 +---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog index 039c675..586f58d 100644 --- a/sim/common/ChangeLog +++ b/sim/common/ChangeLog @@ -1,5 +1,9 @@ 2015-06-11 Mike Frysinger + * sim-trace.h (TRACE_USEFUL_MASK): Change to TRACE_xxx defines. + +2015-06-11 Mike Frysinger + * sim-trace.h (WITH_TRACE_P): New define. (WITH_TRACE_INSN_P, WITH_TRACE_DECODE_P, WITH_TRACE_EXTRACT_P, WITH_TRACE_LINENUM_P, WITH_TRACE_MEMORY_P, WITH_TRACE_MODEL_P, diff --git a/sim/common/sim-trace.h b/sim/common/sim-trace.h index df995a6..3d91aa9 100644 --- a/sim/common/sim-trace.h +++ b/sim/common/sim-trace.h @@ -87,10 +87,7 @@ enum { splat on the screen everything under the sun making nothing easy to find. */ #define TRACE_USEFUL_MASK \ -((1 << TRACE_INSN_IDX) \ - | (1 << TRACE_LINENUM_IDX) \ - | (1 << TRACE_MEMORY_IDX) \ - | (1 << TRACE_MODEL_IDX)) + (TRACE_insn | TRACE_linenum | TRACE_memory | TRACE_model) /* Masks so WITH_TRACE can have symbolic values. The case choice here is on purpose. The lowercase parts are args to