public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] sim: mips: always enable device models
@ 2021-05-05  2:02 Michael Frysinger
  0 siblings, 0 replies; only message in thread
From: Michael Frysinger @ 2021-05-05  2:02 UTC (permalink / raw)
  To: gdb-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=9b1af85c785f050e9c8ce8a30c3c12561d60503c

commit 9b1af85c785f050e9c8ce8a30c3c12561d60503c
Author: Mike Frysinger <vapier@gentoo.org>
Date:   Tue May 4 08:39:17 2021 -0400

    sim: mips: always enable device models
    
    There's no need to restrict these to only specific targets as the user
    can select them at runtime if they want them.  Always build them so we
    can improve build coverage too.

Diff:
---
 sim/mips/ChangeLog    |  6 ++++++
 sim/mips/configure    | 10 +---------
 sim/mips/configure.ac | 10 +---------
 3 files changed, 8 insertions(+), 18 deletions(-)

diff --git a/sim/mips/ChangeLog b/sim/mips/ChangeLog
index c6ccfa0a782..3301767f3c7 100644
--- a/sim/mips/ChangeLog
+++ b/sim/mips/ChangeLog
@@ -1,3 +1,9 @@
+2021-05-04  Mike Frysinger  <vapier@gentoo.org>
+
+	* configure.ac (hw_extra_devices): Inline contents into
+	SIM_AC_OPTION_HARDWARE and delete.
+	* configure: Regenerate.
+
 2021-05-04  Mike Frysinger  <vapier@gentoo.org>
 
 	* Makefile.in (SIM_IGEN_OBJ): Change @mips_igen_engine@ to engine.o.
diff --git a/sim/mips/configure b/sim/mips/configure
index 4d2ada1f4d6..d6902677a65 100755
--- a/sim/mips/configure
+++ b/sim/mips/configure
@@ -12584,16 +12584,8 @@ sim_micromips_flags=" -F ${sim_micromips_filter}  ${sim_micromips_machine}  ${si
 #
 # Add simulated hardware devices
 #
-hw_extra_devices=""
-case "${target}" in
-  mips*tx39*)
-	hw_extra_devices="tx3904cpu tx3904irc tx3904tmr tx3904sio"
-	;;
-  *)
-	;;
-esac
 
-hardware="cfi core pal glue $hw_extra_devices"
+hardware="cfi core pal glue tx3904cpu tx3904irc tx3904tmr tx3904sio"
 sim_hw_cflags="-DWITH_HW=1"
 sim_hw="$hardware"
 sim_hw_objs="\$(SIM_COMMON_HW_OBJS) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`"
diff --git a/sim/mips/configure.ac b/sim/mips/configure.ac
index 6c9a6b812e3..fee3816b57a 100644
--- a/sim/mips/configure.ac
+++ b/sim/mips/configure.ac
@@ -426,15 +426,7 @@ AC_SUBST(sim_multi_obj)
 #
 # Add simulated hardware devices
 #
-hw_extra_devices=""
-case "${target}" in
-  mips*tx39*)
-	hw_extra_devices="tx3904cpu tx3904irc tx3904tmr tx3904sio" 
-	;;
-  *)
-	;;
-esac
-SIM_AC_OPTION_HARDWARE($hw_extra_devices)
+SIM_AC_OPTION_HARDWARE(tx3904cpu tx3904irc tx3904tmr tx3904sio)
 
 
 AC_PATH_X


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-05-05  2:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-05  2:02 [binutils-gdb] sim: mips: always enable device models Michael Frysinger

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).