aboutsummaryrefslogtreecommitdiff
path: root/sim/common/nltvals.def
AgeCommit message (Collapse)AuthorFilesLines
2021-11-28sim: drop unused gentmap & nltvals.def logicMike Frysinger1-248/+0
Now that all ports have switched to target-newlib-* files, there's no need for these files & generating things at build time. So punt the logic and make target-newlib-syscall a hard requirement.
2021-11-28sim: nltvals: drop i960Mike Frysinger1-25/+0
This port was dropped from gdb/bfd/sim years ago, so stop including its syscall constants too.
2021-10-31sim: nltvals: pull target open flags out into a dedicated source fileMike Frysinger1-25/+0
Like we just did for pulling out the errno & signal maps, pull out the open flag map into a dedicated common file. All newlib ports are using the same map which makes it easy.
2021-10-31sim: nltvals: pull target signal out into a dedicated source fileMike Frysinger1-41/+0
Like we just did for pulling out the errno map, pull out the signal map into a dedicated common file. All newlib ports are using the same signal map which makes it easy.
2021-10-31sim: nltvals: pull target errno out into a dedicated source fileMike Frysinger1-92/+0
The current system maintains a list of target errno constants in the nltvals.def file, then runs a build-time tool to turn that into a C file. This list of errno values is the same for all arches, so we don't need the arch-specific flexibility. Further, these are only for newlib/libgloss environments, which makes it confusing to support other userland runtimes (like Linux). Let's simplify to make this easier to understand & build. We don't namespace the variables yet, but sets up the framework for it. Create a new target-newlib-errno.c template file. The template file is hand written, but the inline map is still automatically generated. This allows us to move it to the common set of objects so it's only built once in a multi-target build. Now we can remove the output from the gentmap build-time tool since it's checked into the tree. Then we stop including the errno lists in nltvals.def since nothing uses it.
2021-10-03sim: filter out SIGSTKSZ [PR sim/28302]Mike Frysinger1-1/+0
We map target signals to host signals so we can propagate signals between the host & simulated worlds. That means we need to know the symbolic names & values of all signals that might be sent. The tools that generate that list use signal.h and include all symbols that start with "SIG" so as to automatically include any new symbols that the C library might add. Unfortunately, this also picks up "SIGSTKSZ" which is not actually a signal itself, but a signal related setting -- it's the size of the stack when a signal is handled. By itself this doesn't super matter as we will never see a signal with that same value (since the range of valid signals tend to be way less than 1024, and the size of the default signal stack will never be that small). But with recent glibc changes that make this into a dynamic value instead of a compile-time constant, some users see build failures when building the sim. As suggested by Adam Sampson, update our scripts to ignore this symbol to simplify everything and avoid the build failure. Bug: https://sourceware.org/PR28302
2021-04-26sim: nltvals: unify common syscall tablesMike Frysinger1-434/+40
Since libgloss provides a default syscall table for arches, use that to provide the default syscall table for ports. Only the exceptions need to be enumerated now with the common logic as the default.
2021-04-18sim: moxie: switch syscalls to common nltvalsMike Frysinger1-0/+31
Rather than hand duplicate the syscall constants, switch to the common nltvals framework. I made sure the constants have the same values before & after too :).
2021-04-18sim: sh: switch syscalls to common nltvalsMike Frysinger1-0/+38
Rather than hand duplicate the syscall table, switch to the common nltvals framework. We have to tweak the constant names, but we get everything else for free. I made sure the constants have the same values before & after too :).
2021-04-18sim: rx: switch syscalls to common nltvalsMike Frysinger1-0/+31
Rather than hand duplicate the syscall table, switch to the common nltvals framework. We have to tweak the constant names, but we get everything else for free. I made sure the constants have the same values before & after too :).
2021-04-18sim: m32c: switch syscalls to common nltvalsMike Frysinger1-0/+31
Rather than hand duplicate the syscall table, switch to the common nltvals framework. We have to tweak the constant names, but we get everything else for free. I made sure the constants have the same values before & after too :).
2021-04-18sim: iq2000: switch syscalls to common nltvalsMike Frysinger1-0/+32
Rather than hand duplicate the syscall table, switch to the common nltvals framework. We have to tweak the constant names, but we get everything else for free. I made sure the constants have the same values before & after too :).
2021-02-04sim: riscv: new portMike Frysinger1-0/+48
This is a hand-written implementation that should have fairly complete coverage for the base integer instruction set ("i"), and for the atomic ("a") and integer multiplication+division ("m") extensions. It also covers 32-bit & 64-bit targets. The unittest coverage is a bit weak atm, but should get better.
2021-01-30sim: common: change gennltvals helper to PythonMike Frysinger1-1/+2
This tool is only run by developers and not in a release build, so rewrite it in Python to make it more maintainable.
2021-01-30sim: common: sort nltvals.defMike Frysinger1-87/+87
This was largely already done, but I think people didn't quite notice.
2021-01-18sim: common: modernize gennltvals.shMike Frysinger1-0/+7
It's not 1996 anymore, so stop writing shell code like it is, and rewrite it with modern POSIX shell standards. This makes it much more user friendly. Then regenerate the file with latest newlib sources to verify.
2019-09-23sim: Add PRU simulator portDimitar Dimitrov1-0/+31
A simulator port for the TI PRU I/O processor. v1: https://sourceware.org/ml/gdb-patches/2016-12/msg00143.html v2: https://sourceware.org/ml/gdb-patches/2017-02/msg00397.html v3: https://sourceware.org/ml/gdb-patches/2017-02/msg00516.html v4: https://sourceware.org/ml/gdb-patches/2018-06/msg00484.html v5: https://sourceware.org/ml/gdb-patches/2019-08/msg00584.html v6: https://sourceware.org/ml/gdb-patches/2019-09/msg00036.html gdb/ChangeLog: * NEWS: Mention new simulator port for PRU. sim/ChangeLog: * MAINTAINERS: Add myself as PRU maintainer. * configure: Regenerated. * configure.tgt: Add PRU. sim/common/ChangeLog: * gennltvals.sh: Add PRU libgloss target. * nltvals.def: Regenerate from the latest libgloss sources. sim/pru/ChangeLog: * Makefile.in: New file. * aclocal.m4: Regenerated. * config.in: Regenerated. * configure: Regenerated. * configure.ac: New file. * interp.c: New file. * pru.h: New file. * pru.isa: New file. * sim-main.h: New file.
2015-04-21sim: mcore: switch to common syscall handlingMike Frysinger1-0/+18
Now that libgloss has a header tracking the syscalls for this arch, we can update the database to include it for the symbolic constants/maps. Then we can switch the mcore syscall callbacks over to the common ones.
2013-06-21 * msp430: New Directory.Nick Clifton1-0/+31
* configure.tgt: Add it. * configure: Regenerate. * gennltvals.sh: Add msp430 support. * nltvals.def: Regenerate. * Makefile.in: New. * aclocal.m4: Generate. * config.in: Generate. * configure.ac: New. * configure: Generate. * msp430-sim.c: New. * msp430-sim.h: New. * sim-main.h: New. * trace.c: New. * trace.h: New.
2012-08-30sim: cr16: update syscall listMike Frysinger1-24/+28
2011-05-26sim: common: add back Blackfin syscallsMike Frysinger1-0/+31
A semi-recent change which regenerated nltvals.def somehow missed all of the Blackfin syscalls. So regenerate against the latest tree to get them back. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-03-21 * gennltvals.sh: Search sys/_default_fcntl.h, in addition toKevin Buettner1-383/+362
fcntl.h and sys/fcntl.h, for constants. * nltvals.def: Regenerate. * sim-io.c (sim_io_stat, sim_io_fstat): New functions. * sim-io.h (sys/types.h, sys/stat.h): Include. (sim_io_stat, sim_io_fstat): Declare.
2011-03-06sim: bfin: new portMike Frysinger1-0/+30
This can boot Das U-Boot and a Linux kernel. It also supports Linux userspace FLAT and FDPIC (dynamic and static) ELFs. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-05-18gdb/Jon Beniston1-0/+27
2009-05-18 Jon Beniston <jon@beniston.com> * MAINTAINERS: Add lm32 target. * Makefile.in: Add lm32 dependencies. * NEWS: Indicate lm32 is a new target. * configure.tgt: Add lm32 targets. * lm32-tdep.c: New file. gdb/testsuite 2009-05-18 Jon Beniston <jon@beniston.com> * gdb.asm/asm-source.exp: Add lm32 target. include/gdb/ 2009-05-18 Jon Beniston <jon@beniston.com> * sim-lm32.h: New file. sim/ 2009-05-18 Jon Beniston <jon@beniston.com> * MAINTAINERS: Add Jon Beniston as maintainer of lm32 sim. * configure.ac: Add lm32 target. * lm32: New directory. sim/common 2009-05-18 Jon Beniston <jon@beniston.com> * gennltvals.sh: Add lm32 target. * nltvals.def: Add lm32 syscall definitions. sim/lm32/ 2009-05-18 Jon Beniston <jon@beniston.com> * Makefile.in: New file. * arch.c: New file. * arch.h: New file. * config.in: New file. * configure: New file. * configure.ac: New file. * cpu.c: New file. * cpu.h: New file. * cpuall.h: New file. * decode.c: New file. * decode.h: New file. * dv-lm32cpu.c: New file. * dv-lm32timer.c: New file. * dv-lm32uart.c: New file. * lm32.c: New file. * lm32-sim.h: New file. * mloop.in: New file. * model.c: New file. * sem.c: New file. * sem-switch.c: New file. * sim-if.c: New file. * sim-main.c: New file. * tconfig.in: New file. * traps.c: New file. * user.c: New file.
2008-04-08 gennltvals.sh: Add cr16 target sys macros.M R Swami Reddy1-0/+36
nltvals.def: Rebuild.
2003-08-292003-08-20 Michael Snyder <msnyder@redhat.com>Dave Brolley1-0/+26
Dave Brolley <brolley@redhat.com> * cgen-par.h (flags, word1): New target-specific fields of CGEN_WRITE_QUEUE_ELEMENT. (CGEN_WRITE_QUEUE_ELEMENT_FLAGS): New accessor macro. (CGEN_WRITE_QUEUE_ELEMENT_WORD1): New accessor macro. * gennltvals.sh: Add frv target. * nltvals.def: Add frv target.
2002-07-14Obsolete the d30v.Andrew Cagney1-24/+0
1999-07-12import gdb-1999-07-12 snapshotJason Molenda1-24/+0
1999-05-11import gdb-1999-05-10Stan Shebs1-0/+24
1999-04-16Initial creation of sourceware repositorygdb-4_18-branchpointStan Shebs1-0/+418
1999-04-16Initial creation of sourceware repositoryStan Shebs1-374/+0
1998-11-24Add d10v and v850 to gennltvals.sh and regenerate.Andrew Cagney1-6/+54
Add a howto.
1998-11-18 * gennltvals.sh: Add fr30 support.Doug Evans1-2/+48
* nltvals.def: Rebuild.
1998-06-13 * gennltvals.def (m32r): Use common syscall.h now.Doug Evans1-5/+31
(mn10300): Add entry. * nltvals.def: Regenerate.
1997-11-25 * gennltvals.sh: Generate syscall values for d30v.Doug Evans1-0/+254
Use libgloss/syscall.h for sparc. * nltvals.def: Regenerate.