From: Mike Frysinger <vapier@gentoo.org>
To: gdb-patches@sourceware.org
Subject: [PATCH 4/5] sim: mn10300: drop subdir configure logic
Date: Mon, 7 Nov 2022 23:24:25 +0700 [thread overview]
Message-ID: <20221107162426.26097-4-vapier@gentoo.org> (raw)
In-Reply-To: <20221107162426.26097-1-vapier@gentoo.org>
We've been using this only to set the default word size to 32. We
can easily move this into the makefile via a -D compiler flag and
clean up the build logic quite a bit.
---
sim/Makefile.in | 18 +-
sim/configure | 24 +-
sim/configure.ac | 2 +-
sim/mn10300/Makefile.in | 4 +-
sim/mn10300/aclocal.m4 | 16 -
sim/mn10300/configure | 2932 --------------------------------------
sim/mn10300/configure.ac | 7 -
7 files changed, 34 insertions(+), 2969 deletions(-)
delete mode 100644 sim/mn10300/aclocal.m4
delete mode 100755 sim/mn10300/configure
delete mode 100644 sim/mn10300/configure.ac
diff --git a/sim/configure.ac b/sim/configure.ac
index 48bf75e88085..cec89bb94812 100644
--- a/sim/configure.ac
+++ b/sim/configure.ac
@@ -144,7 +144,7 @@ if test "${enable_sim}" != no; then
SIM_TARGET([mcore-*-*], [mcore])
SIM_TARGET([microblaze*-*-*], [microblaze])
SIM_TARGET([mips*-*-*], [mips], [true], [sim_igen=yes])
- SIM_TARGET([mn10300*-*-*], [mn10300], [true], [sim_igen=yes])
+ SIM_TARGET([mn10300*-*-*], [mn10300], [], [sim_igen=yes])
SIM_TARGET([moxie-*-*], [moxie])
SIM_TARGET([msp430*-*-*], [msp430])
SIM_TARGET([or1k*-*-*], [or1k])
diff --git a/sim/mn10300/Makefile.in b/sim/mn10300/Makefile.in
index f8ac93cdd56e..521f86c644be 100644
--- a/sim/mn10300/Makefile.in
+++ b/sim/mn10300/Makefile.in
@@ -28,6 +28,8 @@ SIM_OBJS = $(MN10300_OBJS) interp.o
SIM_EXTRA_HW_DEVICES = mn103cpu mn103int mn103tim mn103ser mn103iop
# List of extra flags to always pass to $(CC).
-SIM_EXTRA_CFLAGS = -DPOLL_QUIT_INTERVAL=0x20
+SIM_EXTRA_CFLAGS = \
+ -DPOLL_QUIT_INTERVAL=0x20 \
+ -DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31
## COMMON_POST_CONFIG_FRAG
diff --git a/sim/mn10300/configure.ac b/sim/mn10300/configure.ac
deleted file mode 100644
index 1fa7c0ef7c9f..000000000000
--- a/sim/mn10300/configure.ac
+++ /dev/null
@@ -1,7 +0,0 @@
-dnl Process this file with autoconf to produce a configure script.
-AC_INIT(Makefile.in)
-AC_CONFIG_MACRO_DIRS([../m4 ../.. ../../config])
-
-SIM_AC_OPTION_BITSIZE(32,31)
-
-SIM_AC_OUTPUT
--
2.38.1
next prev parent reply other threads:[~2022-11-07 16:24 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-07 16:24 [PATCH 1/5] sim: riscv: " Mike Frysinger
2022-11-07 16:24 ` [PATCH 2/5] sim: bpf: " Mike Frysinger
2022-11-07 16:24 ` [PATCH 3/5] sim: or1k: " Mike Frysinger
2022-11-07 16:24 ` Mike Frysinger [this message]
2022-11-07 16:24 ` [PATCH 5/5] sim: v850: " Mike Frysinger
2022-11-07 16:45 ` [PATCH] sim: riscv: add missing AC_MSG_RESULT call 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=20221107162426.26097-4-vapier@gentoo.org \
--to=vapier@gentoo.org \
--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).