public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 1/2] sim: v850: drop redundant define
@ 2023-01-19  0:34 Mike Frysinger
  2023-01-19  0:34 ` [PATCH 2/2] sim: v850: reduce extra header inclusion to igen files Mike Frysinger
  0 siblings, 1 reply; 2+ messages in thread
From: Mike Frysinger @ 2023-01-19  0:34 UTC (permalink / raw)
  To: gdb-patches

This is already in v850/local.mk, so we can drop it from sim-main.h.
---
 sim/v850/sim-main.h | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/sim/v850/sim-main.h b/sim/v850/sim-main.h
index 6cd7ecce2c62..b17536019044 100644
--- a/sim/v850/sim-main.h
+++ b/sim/v850/sim-main.h
@@ -1,10 +1,6 @@
 #ifndef SIM_MAIN_H
 #define SIM_MAIN_H
 
-/* The v850 has 32bit words, numbered 31 (MSB) to 0 (LSB) */
-
-#define WITH_TARGET_WORD_MSB 31
-
 #include "sim-basics.h"
 #include "sim-base.h"
 
-- 
2.39.0


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH 2/2] sim: v850: reduce extra header inclusion to igen files
  2023-01-19  0:34 [PATCH 1/2] sim: v850: drop redundant define Mike Frysinger
@ 2023-01-19  0:34 ` Mike Frysinger
  0 siblings, 0 replies; 2+ messages in thread
From: Mike Frysinger @ 2023-01-19  0:34 UTC (permalink / raw)
  To: gdb-patches

Limit these extra header includes to only when specific igen files
include us until we can move the includes to the igen fils directly.
---
 sim/v850/sim-main.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/sim/v850/sim-main.h b/sim/v850/sim-main.h
index b17536019044..eefe72cf52f4 100644
--- a/sim/v850/sim-main.h
+++ b/sim/v850/sim-main.h
@@ -8,7 +8,11 @@
  * TODO: Move these includes to the igen files that need them.
  * This requires extending the igen syntax to support header includes.
  */
+#if defined(SEMANTICS_C) || defined(SUPPORT_C)
 #include "sim-signal.h"
+#endif
+#if defined(ENGINE_C) || defined(IDECODE_C) || defined(SEMANTICS_C)
 #include "v850-sim.h"
+#endif
 
 #endif
-- 
2.39.0


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-01-19  0:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-19  0:34 [PATCH 1/2] sim: v850: drop redundant define Mike Frysinger
2023-01-19  0:34 ` [PATCH 2/2] sim: v850: reduce extra header inclusion to igen files Mike 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).