public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Mike Frysinger <vapier@gentoo.org>
To: gdb-patches@sourceware.org
Cc: MR.Swami.Reddy@nsc.com
Subject: [PATCH 1/5] sim: cr16: use common configure options
Date: Mon, 30 Mar 2015 04:46:00 -0000	[thread overview]
Message-ID: <1427690802-26761-1-git-send-email-vapier@gentoo.org> (raw)

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/cr16/ChangeLog    |  10 ++
 sim/cr16/Makefile.in  |   8 +-
 sim/cr16/config.in    |  15 ++
 sim/cr16/configure    | 417 +++++++++++++++++++++++++++++++++++++++++++++++++-
 sim/cr16/configure.ac |   5 +
 sim/cr16/interp.c     |   8 +
 6 files changed, 454 insertions(+), 9 deletions(-)

diff --git a/sim/cr16/ChangeLog b/sim/cr16/ChangeLog
index 9669379..5a52cba 100644
--- a/sim/cr16/ChangeLog
+++ b/sim/cr16/ChangeLog
@@ -1,3 +1,13 @@
+2015-03-29  Mike Frysinger  <vapier@gentoo.org>
+
+	* Makefile.in (SIM_EXTRA_CFLAGS): Delete -DSIM_HAVE_ENVIRONMENT.
+	(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  <vapier@gentoo.org>
 
 	* config.in, configure: Regenerate.
diff --git a/sim/cr16/Makefile.in b/sim/cr16/Makefile.in
index a5a612a..63b85b9 100644
--- a/sim/cr16/Makefile.in
+++ b/sim/cr16/Makefile.in
@@ -22,8 +22,7 @@ SIM_RUN_OBJS = run.o
 
 SIM_OBJS = interp.o table.o simops.o endian.o sim-load.o
 SIM_EXTRA_CLEAN = clean-extra
-SIM_EXTRA_CFLAGS = -DNEED_UI_LOOP_HOOK -DSIM_HAVE_ENVIRONMENT \
-	-DSIM_USE_DEPRECATED_RUN_FRONTEND
+SIM_EXTRA_CFLAGS = -DNEED_UI_LOOP_HOOK -DSIM_USE_DEPRECATED_RUN_FRONTEND
 
 INCLUDE = cr16_sim.h $(srcroot)/include/gdb/callback.h targ-vals.h endian.c \
 	$(srcroot)/include/gdb/sim-cr16.h
@@ -50,8 +49,3 @@ gencode: gencode.o cr16-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/cr16/config.in b/sim/cr16/config.in
index 5ded703..6003e58 100644
diff --git a/sim/cr16/configure b/sim/cr16/configure
index c7e82ec..af6e579 100755
diff --git a/sim/cr16/configure.ac b/sim/cr16/configure.ac
index 0daa1af..96d0ffd 100644
--- a/sim/cr16/configure.ac
+++ b/sim/cr16/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/cr16/interp.c b/sim/cr16/interp.c
index 9c85948..b6ded50 100644
--- a/sim/cr16/interp.c
+++ b/sim/cr16/interp.c
@@ -1401,6 +1401,14 @@ sim_set_callbacks (p)
   cr16_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

             reply	other threads:[~2015-03-30  4:46 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-30  4:46 Mike Frysinger [this message]
2015-03-30  4:46 ` [PATCH 4/5] sim: cr16: delete NEED_UI_LOOP_HOOK handling Mike Frysinger
2015-03-30  4:46 ` [PATCH 3/5] sim: cr16: delete dead code Mike Frysinger
2015-03-30  4:46 ` [PATCH 2/5] sim: cr16: clean up misc warnings Mike Frysinger
2015-03-30  4:55 ` [PATCH 5/5] sim: cr16: convert to nrun Mike Frysinger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1427690802-26761-1-git-send-email-vapier@gentoo.org \
    --to=vapier@gentoo.org \
    --cc=MR.Swami.Reddy@nsc.com \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).