public inbox for cgen@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] sim: add arch prefix to sim_machs
@ 2021-06-29  1:37 Mike Frysinger
  2021-09-10 21:59 ` Mike Frysinger
  0 siblings, 1 reply; 3+ messages in thread
From: Mike Frysinger @ 2021-06-29  1:37 UTC (permalink / raw)
  To: cgen

We want to namespace the sim_machs structure to avoid conflicts when
linking multiple architectures into a single build.
---
 sim.scm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sim.scm b/sim.scm
index ae61a0939cf0..c7fe822767c3 100644
--- a/sim.scm
+++ b/sim.scm
@@ -1475,7 +1475,8 @@
 
 (define (/gen-mach-data)
   (string-append
-   "const SIM_MACH * const sim_machs[] =\n{\n"
+   "const SIM_MACH * const " (symbol->string (current-arch-name))
+   "_sim_machs[] =\n{\n"
    (string-map (lambda (mach)
 		 (gen-obj-sanitize
 		  mach
-- 
2.31.1


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

end of thread, other threads:[~2021-09-14 19:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-29  1:37 [PATCH] sim: add arch prefix to sim_machs Mike Frysinger
2021-09-10 21:59 ` Mike Frysinger
2021-09-14 19:01   ` Jose E. Marchesi

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