From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25342 invoked by alias); 30 Mar 2015 06:22:39 -0000 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 Received: (qmail 25329 invoked by uid 89); 30 Mar 2015 06:22:38 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.2 required=5.0 tests=AWL,BAYES_00,SPF_PASS,T_RP_MATCHES_RCVD,URIBL_BLACK autolearn=no 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; Mon, 30 Mar 2015 06:22:36 +0000 Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 26F10340C31 for ; Mon, 30 Mar 2015 06:22:35 +0000 (UTC) From: Mike Frysinger To: gdb-patches@sourceware.org Subject: [PATCH 1/4] sim: d10v: use common configure options Date: Mon, 30 Mar 2015 06:22:00 -0000 Message-Id: <1427696554-17585-1-git-send-email-vapier@gentoo.org> X-IsSubscribed: yes X-SW-Source: 2015-03/txt/msg00979.txt.bz2 In preparation for converting to nrun, call the common functions that are needed. This doesn't produce any new warnings, and the generated code should be the same. Committed. --- sim/d10v/ChangeLog | 9 ++ sim/d10v/Makefile.in | 5 - sim/d10v/config.in | 15 ++ sim/d10v/configure | 417 +++++++++++++++++++++++++++++++++++++++++++++++++- sim/d10v/configure.ac | 5 + sim/d10v/interp.c | 8 + 6 files changed, 452 insertions(+), 7 deletions(-) diff --git a/sim/d10v/ChangeLog b/sim/d10v/ChangeLog index 8bb2666..1ab3014 100644 --- a/sim/d10v/ChangeLog +++ b/sim/d10v/ChangeLog @@ -1,3 +1,12 @@ +2015-03-30 Mike Frysinger + + * Makefile.in (interp.o, simops.o, endian.o, table.o): Delete rules. + * configure.ac: Call SIM_AC_OPTION_ENDIAN, SIM_AC_OPTION_ALIGNMENT, + SIM_AC_OPTION_HOSTENDIAN, SIM_AC_OPTION_ENVIRONMENT, and + SIM_AC_OPTION_INLINE. + * config.in, configure: Regenerate. + * interp.c (sim_trace): Define. + 2015-03-16 Mike Frysinger * config.in, configure: Regenerate. diff --git a/sim/d10v/Makefile.in b/sim/d10v/Makefile.in index 173fe95..b6d6a18 100644 --- a/sim/d10v/Makefile.in +++ b/sim/d10v/Makefile.in @@ -50,8 +50,3 @@ gencode: gencode.o d10v-opc.o clean-extra: rm -f table.c simops.h gencode - -interp.o: interp.c table.c $(INCLUDE) -simops.o: simops.c simops.h $(INCLUDE) -endian.o: endian.c $(INCLUDE) -table.o: table.c diff --git a/sim/d10v/config.in b/sim/d10v/config.in index 5ded703..6003e58 100644 diff --git a/sim/d10v/configure b/sim/d10v/configure index c7e82ec..af6e579 100755 diff --git a/sim/d10v/configure.ac b/sim/d10v/configure.ac index 0daa1af..96d0ffd 100644 --- a/sim/d10v/configure.ac +++ b/sim/d10v/configure.ac @@ -5,6 +5,11 @@ sinclude(../common/acinclude.m4) SIM_AC_COMMON +SIM_AC_OPTION_ENDIAN +SIM_AC_OPTION_ALIGNMENT(STRICT_ALIGNMENT,STRICT_ALIGNMENT) +SIM_AC_OPTION_HOSTENDIAN +SIM_AC_OPTION_ENVIRONMENT +SIM_AC_OPTION_INLINE SIM_AC_OPTION_WARNINGS SIM_AC_OUTPUT diff --git a/sim/d10v/interp.c b/sim/d10v/interp.c index 86b5e5e..27ae19f 100644 --- a/sim/d10v/interp.c +++ b/sim/d10v/interp.c @@ -1268,6 +1268,14 @@ sim_set_callbacks (p) d10v_callback = p; } +int +sim_trace (SIM_DESC sd) +{ + sim_resume (sd, 0, 0); + + return 1; +} + void sim_stop_reason (sd, reason, sigrc) SIM_DESC sd; -- 2.3.4