* sim: update to reduce generated file differences
@ 2023-08-10 6:17 Alan Modra
2023-08-10 14:21 ` Frank Ch. Eigler
0 siblings, 1 reply; 2+ messages in thread
From: Alan Modra @ 2023-08-10 6:17 UTC (permalink / raw)
To: cgen; +Cc: vapier
Put binutils-gdb commit db7858e227f3 (Mike Frysinger 2015-06-12) and
13a590ca65f7 (Mike Frysinger 2017-02-13) in the source rather than
generated files.
OK?
diff --git a/sim-cpu.scm b/sim-cpu.scm
index dc5b4ab..bde9f78 100644
--- a/sim-cpu.scm
+++ b/sim-cpu.scm
@@ -1183,7 +1183,7 @@ CGEN_ATTR_VALUE (NULL, abuf->idesc->attrs, CGEN_INSN_" "attr)")
/* If hyper-fast [well not unnecessarily slow] execution is selected, turn
off frills like tracing and profiling. */
-/* FIXME: A better way would be to have TRACE_RESULT check for something
+/* FIXME: A better way would be to have CGEN_TRACE_RESULT check for something
that can cause it to be optimized out. Another way would be to emit
special handlers into the instruction \"stream\". */
diff --git a/sim-decode.scm b/sim-decode.scm
index 88fdd28..19c0d46 100644
--- a/sim-decode.scm
+++ b/sim-decode.scm
@@ -157,7 +157,7 @@ void
init_idesc (cpu, id, t);
/* Now fill in the values for the chosen cpu. */
- for (t = @prefix@_insn_sem, tend = t + sizeof (@prefix@_insn_sem) / sizeof (*t);
+ for (t = @prefix@_insn_sem, tend = t + ARRAY_SIZE (@prefix@_insn_sem);
t != tend; ++t)
{
init_idesc (cpu, & table[t->index], t);\n"
--
Alan Modra
Australia Development Lab, IBM
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: sim: update to reduce generated file differences
2023-08-10 6:17 sim: update to reduce generated file differences Alan Modra
@ 2023-08-10 14:21 ` Frank Ch. Eigler
0 siblings, 0 replies; 2+ messages in thread
From: Frank Ch. Eigler @ 2023-08-10 14:21 UTC (permalink / raw)
To: Alan Modra; +Cc: cgen, vapier
Hi -
> Put binutils-gdb commit db7858e227f3 (Mike Frysinger 2015-06-12) and
> 13a590ca65f7 (Mike Frysinger 2017-02-13) in the source rather than
> generated files.
Please feel free to commit changes this obvious.
- FChE
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-08-10 14:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-10 6:17 sim: update to reduce generated file differences Alan Modra
2023-08-10 14:21 ` Frank Ch. Eigler
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).