From patchwork Sun Nov 15 13:17:19 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Frysinger X-Patchwork-Id: 9671 X-Patchwork-Delegate: vapier@gentoo.org Received: (qmail 40526 invoked by alias); 15 Nov 2015 13:17:26 -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 40504 invoked by uid 89); 15 Nov 2015 13:17:25 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD, SPF_PASS 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; Sun, 15 Nov 2015 13:17:24 +0000 Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 8EC9D3406AD for ; Sun, 15 Nov 2015 13:17:22 +0000 (UTC) From: Mike Frysinger To: gdb-patches@sourceware.org Subject: [PATCH] sim: h8300: convert to common sim_{reason, stop} [committed] Date: Sun, 15 Nov 2015 08:17:19 -0500 Message-Id: <1447593439-32660-1-git-send-email-vapier@gentoo.org> X-IsSubscribed: yes This ends up being pretty easy as the h8300 port already supports much of the common engine core. --- sim/h8300/ChangeLog | 5 +++++ sim/h8300/Makefile.in | 4 +++- sim/h8300/compile.c | 14 -------------- 3 files changed, 8 insertions(+), 15 deletions(-) diff --git a/sim/h8300/ChangeLog b/sim/h8300/ChangeLog index 2a12f28..d9b385d 100644 --- a/sim/h8300/ChangeLog +++ b/sim/h8300/ChangeLog @@ -1,3 +1,8 @@ +2015-11-15 Mike Frysinger + + * Makefile.in (SIM_OBJS): Add sim-reason.o and sim-stop.o. + * compile.c (sim_stop, sim_stop_reason): Delete. + 2015-11-14 Mike Frysinger * Makefile.in (SIM_OBJS): Delete sim-load.o. diff --git a/sim/h8300/Makefile.in b/sim/h8300/Makefile.in index c8e2ac7..a7f23fb 100644 --- a/sim/h8300/Makefile.in +++ b/sim/h8300/Makefile.in @@ -18,7 +18,9 @@ ## COMMON_PRE_CONFIG_FRAG SIM_OBJS = compile.o \ - $(SIM_NEW_COMMON_OBJS) + $(SIM_NEW_COMMON_OBJS) \ + sim-reason.o \ + sim-stop.o ## COMMON_POST_CONFIG_FRAG diff --git a/sim/h8300/compile.c b/sim/h8300/compile.c index e5460fa..19b469a 100644 --- a/sim/h8300/compile.c +++ b/sim/h8300/compile.c @@ -1847,14 +1847,6 @@ init_pointers (SIM_DESC sd) } } -int -sim_stop (SIM_DESC sd) -{ - /* FIXME: use a real signal value. */ - sim_engine_set_run_state (sd, sim_stopped, SIGINT); - return 1; -} - #define OBITOP(name, f, s, op) \ case O (name, SB): \ { \ @@ -4763,12 +4755,6 @@ sim_fetch_register (SIM_DESC sd, int rn, unsigned char *buf, int length) return -1; } -void -sim_stop_reason (SIM_DESC sd, enum sim_stop *reason, int *sigrc) -{ - sim_engine_get_run_state (sd, reason, sigrc); -} - static void set_simcache_size (SIM_DESC sd, int n) {