aboutsummaryrefslogtreecommitdiff
path: root/sim/igen/igen.c
AgeCommit message (Collapse)AuthorFilesLines
2024-01-12Update copyright year range in header of all files managed by GDBAndrew Burgess1-1/+1
This commit is the result of the following actions: - Running gdb/copyright.py to update all of the copyright headers to include 2024, - Manually updating a few files the copyright.py script told me to update, these files had copyright headers embedded within the file, - Regenerating gdbsupport/Makefile.in to refresh it's copyright date, - Using grep to find other files that still mentioned 2023. If these files were updated last year from 2022 to 2023 then I've updated them this year to 2024. I'm sure I've probably missed some dates. Feel free to fix them up as you spot them.
2023-01-01Update copyright year range in header of all files managed by GDBJoel Brobecker1-1/+1
This commit is the result of running the gdb/copyright.py script, which automated the update of the copyright year range for all source files managed by the GDB project to be updated to include year 2023.
2022-11-11sim: igen: constify various func argumentsMike Frysinger1-18/+23
2022-10-29sim, sim/{m32c,ppc,rl78}: Use getopt_longTsukasa OI1-2/+4
Because of a Libiberty hack, getopt on GNU libc (2.25 or earlier) is currently unusable on sim, causing a regression on CentOS 7. This is caused as follows: 1. If HAVE_DECL_GETOPT is defined (getopt declaration with known prototype is detected while configuration), a declaration of getopt in "include/getopt.h" is suppressed. The author started to define HAVE_DECL_GETOPT in sim with the commit 340aa4f6872c ("sim: Check known getopt definition existence"). 2. GNU libc (2.25 or earlier)'s <unistd.h> includes <getopt.h> with a special purpose macro defined to declare only getopt function but due to include path (not tested while configuration), it causes <unistd.h> to include Libiberty's "include/getopt.h". 3. If both 1. and 2. are satisfied, despite that <unistd.h> tries to declare getopt by including <getopt.h>, "include/getopt.h" does not do so, causing getopt function undeclared. Getting rid of "include/getopt.h" (e.g. renaming this header file) is the best solution to avoid hacking but as a short-term solution, this commit replaces getopt with getopt_long under sim/.
2022-01-06sim: igen: migrate to standard uintXX_t typesMike Frysinger1-1/+1
Move off the custom local 64-bit types and to the standard uintXX_t types that C11 provides.
2022-01-01Automatic Copyright Year update after running gdb/copyright.pyJoel Brobecker1-1/+1
This commit brings all the changes made by running gdb/copyright.py as per GDB's Start of New Year Procedure. For the avoidance of doubt, all changes in this commits were performed by the script.
2021-10-31sim: igen: tighten up build outputMike Frysinger1-0/+2
Add a new stamp helper for quiet builds, and don't dump the command line options when it runs. That isn't standard tool behavior, and doesn't really seem necessary in any way.
2021-02-28sim: igen: drop config.h & header checkingMike Frysinger1-1/+0
While the configure script was checking for a bunch of headers, only one of them was conditionally included in the source (unistd.h). The rest were always included. Based on those usage this whole time, we can reasonably assume that the build also has unistd.h. All the other files including config.h never actually used any defines from the header.
2021-01-04sim: include stdlib.h for atoi()Mike Frysinger1-2/+1
Make sure the files using atoi() include stdlib.h for its prototype. These files were relying on it being included implicitly by others which isn't guaranteed, and newer toolchains produce warnings.
2021-01-01Update copyright year range in all GDB filesJoel Brobecker1-1/+1
This commits the result of running gdb/copyright.py as per our Start of New Year procedure... gdb/ChangeLog Update copyright year range in copyright header of all GDB files.
2020-01-01Update copyright year range in all GDB files.Joel Brobecker1-1/+1
gdb/ChangeLog: Update copyright year range in all GDB files.
2019-01-01Update copyright year range in all GDB files.Joel Brobecker1-1/+1
This commit applies all changes made after running the gdb/copyright.py script. Note that one file was flagged by the script, due to an invalid copyright header (gdb/unittests/basic_string_view/element_access/char/empty.cc). As the file was copied from GCC's libstdc++-v3 testsuite, this commit leaves this file untouched for the time being; a patch to fix the header was sent to gcc-patches first. gdb/ChangeLog: Update copyright year range in all GDB files.
2018-01-02Update copyright year range in all GDB filesJoel Brobecker1-1/+1
gdb/ChangeLog: Update copyright year range in all GDB files
2017-01-01update copyright year range in GDB filesJoel Brobecker1-1/+1
This applies the second part of GDB's End of Year Procedure, which updates the copyright year range in all of GDB's files. gdb/ChangeLog: Update copyright year range in all GDB files.
2016-01-01GDB copyright headers update after running GDB's copyright.py script.Joel Brobecker1-1/+1
gdb/ChangeLog: Update year range in copyright notice of all files.
2015-01-01Update year range in copyright notice of all files owned by the GDB project.Joel Brobecker1-1/+1
gdb/ChangeLog: Update year range in copyright notice of all files.
2014-01-01Update Copyright year range in all files maintained by GDB.Joel Brobecker1-1/+1
2013-01-01Update years in copyright notice for the GDB files.Joel Brobecker1-1/+1
Two modifications: 1. The addition of 2013 to the copyright year range for every file; 2. The use of a single year range, instead of potentially multiple year ranges, as approved by the FSF.
2012-01-04Copyright year update in most files of the GDB Project.Joel Brobecker1-1/+1
gdb/ChangeLog: Copyright year update in most files of the GDB Project.
2011-01-01run copyright.sh for 2011.Joel Brobecker1-1/+1
2010-01-01Update copyright notices to add year 2010.Joel Brobecker1-1/+1
2009-01-14 Update the copyright notice of some of the files I missedJoel Brobecker1-1/+1
in the previous copyright update.
2008-01-01 Updated copyright notices for most files.Daniel Jacobowitz1-1/+1
2007-08-24 Switch the license of all files explicitly copyright the FSFJoel Brobecker1-4/+2
to GPLv3.
2007-01-09Copyright updates for 2007.Daniel Jacobowitz1-1/+1
2002-11-222002-11-21 Andrew Cagney <ac131313@redhat.com>Andrew Cagney1-229/+256
* filter.c: Re-indent. * filter.h, filter_host.h, gen-engine.c, gen-engine.h: Ditto. * gen-icache.c, gen-icache.h, gen-idecode.c: Ditto. * gen-idecode.h, gen-itable.c, gen-itable.h: Ditto. * gen-model.c, gen-model.h, gen-semantics.c: Ditto. * gen-semantics.h, gen-support.c, gen-support.h: Ditto. * gen.c, gen.h, igen.c, igen.h, ld-cache.c, ld-cache.h: Ditto. * ld-decode.c, ld-decode.h, ld-insn.c, ld-insn.h, lf.c: Ditto. * lf.h, misc.c, misc.h, table.c, table.h: Ditto.
2002-11-222002-11-21 Andrew Cagney <ac131313@redhat.com>Andrew Cagney1-19/+22
* Makefile.in: Update copyright. IGEN contributed to the FSF. * filter.c, filter.h, filter_host.c, filter_host.h: Ditto. * gen-engine.c, gen-engine.h, gen-icache.c, gen-icache.h: Ditto. * gen-idecode.c, gen-idecode.h, gen-itable.c: Ditto. * gen-itable.h, gen-model.c, gen-model.h, gen-semantics.c: Ditto. * gen-semantics.h, gen-support.c, gen-support.h, gen.c: Ditto. * gen.h, igen.c, igen.h, ld-cache.c, ld-cache.h: Ditto. * ld-decode.c, ld-decode.h, ld-insn.c, ld-insn.h, lf.c: Ditto. * lf.h, misc.c, misc.h, table.c, table.h: Ditto.
2002-06-17* gen.c (gen_entry_expand_opcode): Initialize ``value'' to -1 andAndrew Cagney1-0/+2
``t'' to NULL. * igen.c (main): Add default case to switch. * gen-icache.c (print_icache_extraction): Ditto.
2002-05-01[ common/ChangeLog ]Chris Demetriou1-4/+4
2002-05-01 Chris Demetriou <cgd@broadcom.com> * callback.c: Use 'deprecated' rather than 'depreciated.' [ igen/ChangeLog ] 2002-05-01 Chris Demetriou <cgd@broadcom.com> * igen.c: Use 'deprecated' rather than 'depreciated.' [ mips/ChangeLog ] 2002-05-01 Chris Demetriou <cgd@broadcom.com> * interp.c: Use 'deprecated' rather than 'depreciated.' * sim-main.h: Likewise.
2002-03-082002-03-07 Chris Demetriou <cgd@broadcom.com>Chris Demetriou1-0/+11
* igen.c (print_itrace_format): Add support for a new "%#lx" format.
1999-04-16Initial creation of sourceware repositorygdb-4_18-branchpointStan Shebs1-0/+1621
1999-04-16Initial creation of sourceware repositoryStan Shebs1-1615/+0
1998-04-14Broke parsing of !<val>!<val> when adding support for =<field>. Fix.Andrew Cagney1-7/+29
Add support for the -S<suffix> option.
1998-04-14Add support for instruction word conditionals of the form `XXX!YYY'Andrew Cagney1-7/+22
and XXX=YYY'. See mn10300 for examples.
1998-04-04Cleanup INLINE support for simulators using common framework.Andrew Cagney1-64/+86
Make IGEN responsible for co-ordinating inlining of generated files. By default, aclocal.m4 disabled all inlining.
1998-04-03Don't bother generating trace prefix string when not tracing.Andrew Cagney1-99/+92
1998-01-31igen: Fix SMP simulator generator support.Andrew Cagney1-30/+103
Use the bfd-processor name in the sim-engine switch. Add nr_cpus argument to sim_engine_run. tic80, v850, d30v, mips, common: Update mips: Fill in bfd-processor field of model records so that they match ../bfd/archures.
1997-10-27Add include-file support to igen.Andrew Cagney1-133/+168
1997-10-14Output line-ref to original igen source file when generating traceAndrew Cagney1-12/+25
statements. Define NIA macro (dependant on gen-delayed-branch). Verify opening/closing quote in input assembler strings.
1997-10-09Add -Wnodiscard option so that warning about discarded instructionsAndrew Cagney1-4/+11
can be suppressed. Allow ``<insn-spec> { <nmemonic> | <model> }'' in instruction file.
1997-09-19Correctly locate `_' in generated names.Andrew Cagney1-1/+1
1997-09-19Change semantic function name to semantic_<INSN>_<FMT> instead ofAndrew Cagney1-3/+3
semantic_<FMT>_<INSN>.
1997-09-15 * igen.c (gen_run_c): Handle non-multi-sim case.Andrew Cagney1-22/+34
1997-09-15Update to reflect change to sim/common/aclocal.m4 (allow sim/commonAndrew Cagney1-1/+1
directory to specify its own unqiue config.h file).
1997-09-08Add multi-sim support to simulator.Andrew Cagney1-484/+1032
1997-05-29Add a simple dissasembler to igenAndrew Cagney1-38/+254
1997-05-07o Clean-up tic80 fp tracingAndrew Cagney1-3/+3
o Fill in more tic80 insns
1997-05-06Add semantic tracing to the tic80Michael Meissner1-6/+5
1997-05-06Fix typo; pass trace_line request as arg; pass common stuff in static structMichael Meissner1-5/+8
1997-05-06Enable --trace-linenum supportMichael Meissner1-14/+13