From patchwork Thu Jun 11 16:54:28 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Frysinger X-Patchwork-Id: 7125 X-Patchwork-Delegate: vapier@gentoo.org Received: (qmail 105622 invoked by alias); 11 Jun 2015 16:54:34 -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 105612 invoked by uid 89); 11 Jun 2015 16:54:34 -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 16:54:33 +0000 Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 1D09F340C41 for ; Thu, 11 Jun 2015 16:54:30 +0000 (UTC) From: Mike Frysinger To: gdb-patches@sourceware.org Subject: [PATCH] sim: msp430: delete unused trace macros Date: Thu, 11 Jun 2015 12:54:28 -0400 Message-Id: <1434041668-17075-1-git-send-email-vapier@gentoo.org> X-IsSubscribed: yes These macros were copied from the Blackfin port but never used, so delete them as part of the trace unification work. Committed. --- sim/msp430/ChangeLog | 6 ++++++ sim/msp430/sim-main.h | 48 ------------------------------------------------ 2 files changed, 6 insertions(+), 48 deletions(-) diff --git a/sim/msp430/ChangeLog b/sim/msp430/ChangeLog index c2205b5..3fc04b6 100644 --- a/sim/msp430/ChangeLog +++ b/sim/msp430/ChangeLog @@ -1,3 +1,9 @@ +2015-06-11 Mike Frysinger + + * sim-main.h (MAYBE_TRACE, TRACE_INSN, TRACE_DECODE, TRACE_EXTRACT, + TRACE_SYSCALL, TRACE_CORE, TRACE_EVENTS, TRACE_BRANCH, + trace_register, TRACE_REGISTER, TRACE_REG): Delete. + 2015-04-18 Mike Frysinger * sim-main.h (SIM_CPU): Delete. diff --git a/sim/msp430/sim-main.h b/sim/msp430/sim-main.h index f08f3e4..19c8cca 100644 --- a/sim/msp430/sim-main.h +++ b/sim/msp430/sim-main.h @@ -54,52 +54,4 @@ struct sim_state #include "sim-engine.h" #include "sim-options.h" -#define MAYBE_TRACE(type, cpu, fmt, ...) \ - do \ - { \ - if (TRACE_##type##_P (cpu)) \ - trace_generic (CPU_STATE (cpu), cpu, TRACE_##type##_IDX, \ - fmt, ## __VA_ARGS__); \ - } \ - while (0) - -#define TRACE_INSN(cpu, fmt, ...) MAYBE_TRACE (INSN, cpu, fmt, ## __VA_ARGS__) -#define TRACE_DECODE(cpu, fmt, ...) MAYBE_TRACE (DECODE, cpu, fmt, ## __VA_ARGS__) -#define TRACE_EXTRACT(cpu, fmt, ...) MAYBE_TRACE (EXTRACT, cpu, fmt, ## __VA_ARGS__) -#define TRACE_SYSCALL(cpu, fmt, ...) MAYBE_TRACE (SYSCALL, cpu, fmt, ## __VA_ARGS__) - -#define TRACE_CORE(cpu, addr, size, map, val) \ - do \ - { \ - MAYBE_TRACE (CORE, cpu, "%cBUS %s %i bytes @ 0x%08x: 0x%0*x", \ - map == exec_map ? 'I' : 'D', \ - map == write_map ? "STORE" : "FETCH", \ - size, addr, size * 2, val); \ - PROFILE_COUNT_CORE (cpu, addr, size, map); \ - } \ - while (0) - -#define TRACE_EVENTS(cpu, fmt, ...) MAYBE_TRACE (EVENTS, cpu, fmt, ## __VA_ARGS__) - -#define TRACE_BRANCH(cpu, oldpc, newpc, fmt, ...) \ - do \ - { \ - MAYBE_TRACE (BRANCH, cpu, fmt " to %#x", ## __VA_ARGS__, newpc); \ - } \ - while (0) - -extern void trace_register (SIM_DESC, sim_cpu *, const char *, ...) - __attribute__((format (printf, 3, 4))); - -#define TRACE_REGISTER(cpu, fmt, ...) \ - do \ - { \ - if (TRACE_CORE_P (cpu)) \ - trace_register (CPU_STATE (cpu), cpu, fmt, ## __VA_ARGS__); \ - } \ - while (0) - -#define TRACE_REG(cpu, reg, val) \ - TRACE_REGISTER (cpu, "wrote R%d = %#x", reg, val) - #endif /* _MSP430_MAIN_SIM_H_ */