summaryrefslogtreecommitdiffstats
path: root/sim
Commit message (Collapse)AuthorAgeFilesLines
* sim: use AM_MAINTAINER_MODEMike Frysinger2013-06-0576-337/+1802
| | | | | | | I noticed the sim code is using an old implementation of the maintainer logic. I cut it over to the new macro (like gdb has been doing). In practice, it makes no difference currently as nothing in the sim tree uses it, but I have a follow up commit for the Blackfin tree that needs it.
* sim: arm: add support for MOVW and MOVT instructionsMike Frysinger2013-05-154-4/+71
| | | | | | | | | | | | | | | | | | From: Jayant R. Sonar <Jayant.Sonar@kpitcummins.com> This patch adds simulator support for handling the armv7 instructions 'movw (immediate)' and 'movt'. Compiler frequently use these instructions to load the 32bit addresses of global variables, string pointers etc. into the general registers. In absence of support of these instructions: 1. GDB run simulator fails to print even simple "hello world" string on console. 2. Loading of global variable addresses into the registers fail causing arithmetic operation failures. Patch has been regression tested for arm-none-eabi (-march=armv7-a).
* * v850.igen (LDSR): Accept but ignore a selID parameter.Nick Clifton2013-05-132-3/+9
|
* gdbTom Tromey2013-05-1020-10/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Freddie Chopin <freddie_chopin@op.pl> PR build/15414: * configure: Rebuild. * configure.ac (build_warnings): Do not use -Wformat-nonliteral with -Wno-format. sim/common * acinclude.m4 (SIM_AC_OPTION_WARNINGS): Do not use -Wformat-nonliteral with -Wno-format. sim/bfin * configure: Rebuild. sim/cr16 * configure: Rebuild. sim/cris * configure: Rebuild. sim/d10v * configure: Rebuild. sim/igen * configure: Rebuild. sim/m68hc11 * configure: Rebuild. sim/mips * configure: Rebuild. sim/mn10300 * configure: Rebuild. sim/v850 * configure: Rebuild.
* Move ChangeLog entry from sim/ to sim/ppc/...Joel Brobecker2013-05-062-4/+4
| | | | ... where it belongs.
* 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>Hafiz Abid Qadeer2013-05-032-13/+6
| | | | | | revert: 2013-04-19 Nathan Froyd <froydnj@codesourcery.com> * ppc-instructions (isel): New instruction.
* 2013-04-19 Nathan Froyd <froydnj@codesourcery.com>Hafiz Abid Qadeer2013-04-192-0/+17
| | | | * ppc-instructions (isel): New instruction.
* sim: frv/m32r: back out hard failure when dv-sockser is not availableMike Frysinger2013-03-319-42/+34
| | | | | | | These sims have optional support for the dv-sockser model, so do not make them hard failures. The Makefile made it seem like they didn't actually support things dynamically, but a further code dive into the source and the Makefile shows that things work out.
* sim: rewrite SIM_AC_OPTION_HARDWARE a bit to simplify thingsMike Frysinger2013-03-2623-354/+448
| | | | | | | | | | | | | | | There's no need to put the majority of the logic into the 3rd arg of the AC_ARG_ENABLE. Coupled with the lack of indentation, it makes it hard to follow, error prone to update, and duplicates code (with the 4th arg). So pull the logic out of the 3rd arg and outside of the AC_ARG_ENABLE macro. This allows us to gut the 4th arg entirely, merge with the code that followed the macro, and fix bugs related to the new dv-sockser in the process. Hopefully building the various sims with the default sim-hardware settings, as well as with explicit --{dis,en}able-sim-hardware flags, should all just work now.
* 2013-03-23 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2013-03-235-29/+34
| | | | | * configure.ac: Use $SIM_DV_SOCKSER_O. * configure: Regenerated.
* 2013-03-23 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2013-03-2312-8/+590
| | | | | | * configure.ac: Fail if dv-sockser.o not available. Error when --disable-sim-hardware is specified. * configure: Regenerated.
* 2013-03-23 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2013-03-235-3/+175
| | | | | | | | * configure.ac: Fail if dv-sockser.o not available. Error when --disable-sim-hardware is specified. * tconfig.in: Conditionalize use of dv_sockser_install. * configure: Regenerated. * config.in: Regenerated.
* 2013-03-23 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2013-03-235-6/+60
| | | | | | | * configure.ac: Address use of dv-sockser.o. * tconfig.in: Conditionalize use of dv_sockser_install. * configure: Regenerated. * config.in: Regenerated.
* 2013-03-23 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2013-03-232-2/+23
| | | | | | | * acinclude.m4: Add SIM_DV_SOCKSER_O which is empty on hosts which do not support dv-sockser.o. Add always as option to first argument to SIM_AC_OPTION_HARDWARE. Fail if hardware is always required to be enabled by simulator.
* gdb:Steve Ellcey2013-03-1512-11/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2013-03-15 Steve Ellcey <sellcey@mips.com> * remote-sim.c (sim_command_completer): Make char arguments const. include: 2013-03-15 Steve Ellcey <sellcey@mips.com> * gdb/remote-sim.h (sim_command_completer): Make char arguments const. sim: 2013-03-15 Steve Ellcey <sellcey@mips.com> * arm/wrapper.c (sim_complete_command): Make char arguments const. * avr/interp.c (sim_complete_command): Ditto. * common/sim-options.c (sim_complete_command): Ditto. * cr16/interp.c (sim_complete_command): Ditto. * erc32/interf.c (sim_complete_command): Ditto. * m32c/gdb-if.c (sim_complete_command): Ditto. * microblaze/interp.c (sim_complete_command): Ditto. * ppc/sim_calls.c (sim_complete_command): Ditto. * rl78/gdb-if.c (sim_complete_command): Ditto. * rx/gdb-if.c (sim_complete_command): Ditto. * sh/interp.c (sim_complete_command): Ditto.
* Fix erc32 simulator out-of-tree build failure.Joel Brobecker2013-03-142-1/+6
| | | | | | | sim/erc32/ChangeLog: * Makefile.in: Include build directory in search path to find config.h
* * simops.c (v850_rotl): New function.Nick Clifton2013-01-286-0/+278
| | | | | | | | (v850_bins): New function. * simops.h: Add prototypes fir v850_rotl and v850_bins. * v850-dc: Add entries for V850e3v5. * v850.igen: Add support for v850e3v5. (ld.dw, st.dw, rotl, bins): New patterns.
* Remove debug outputAnthony Green2013-01-172-1/+4
|
* * rx.c (decode_opcode): Handle RXO_satr.Nick Clifton2013-01-162-0/+20
|
* * interp.c (sim_open): Add support for bfd_arch_v850_rh850Nick Clifton2013-01-104-16/+121
| | | | | | | | | | | | | architecture type. Add support for bfd_mach_v850e2 and bfd_mach_v850e2v3 machine numbers. * v850.igen (dbtrap): Add support for SIM_OPEN_DEBUG. (cmpf.d): Correct order of operands. (cmpf.s): Likewise. (trncf.dul): New pattern. (trncf.duw): New pattern. (trncf.sul): New pattern. (trncf.suw): New pattern. * v850-dc: Correct bitfield selection for TRNCF.SW and CVTF.SW.
* * mem.c (MDBL): Correct value.Nick Clifton2013-01-082-2/+7
| | | | (MDBH): Correct value.
* Update years in copyright notice for the GDB files.Joel Brobecker2013-01-01539-585/+542
| | | | | | | 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.
* Revert GPL version change in sim/bfin/aclocal.m4Joel Brobecker2012-12-202-1/+7
| | | | | | | | sim/bfin/ChangeLog: * aclocal.m4: Revert the previous change changing the license from GPL v2 or later to GPL v3 or later (this file was generated).
* Revert GPL version change in linux-fixed-code.s.Joel Brobecker2012-12-202-1/+6
| | | | | | | sim/bfin/ChangeLog: * linux-fixed-code.s: Revert the previous change changing the license from GPL v2 or later to GPL v3 or later.
* Update sim's COPYING files.Joel Brobecker2012-12-194-580/+1256
| | | | | | | | | | sim/arm/ChangeLog: * COPYING: Update to GPL version 3. sim/ppc/ChangeLog: * COPYING: Update to GPL version 3.
* [sim] Update old contact info in GPL license noticesJoel Brobecker2012-12-19256-523/+264
| | | | | | sim/ChangeLog: Update old contact info in GPL license notices.
* Update sim copyright headers from GPLv2-or-later to GPLv3-or-later.Joel Brobecker2012-12-19169-170/+174
| | | | | | gdb/sim/ChangeLog: Update the non-FSF-copyrighted files in sim to GPLv3 or later.
* Fix sim build when configured with --enable-pluginsH.J. Lu2012-11-2031-27/+225583
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * common/Make-common.in: Use lt_cv_dlopen_libs under PLUGINS condition. * common/acinclude.m4: Define lt_cv_dlopen_libs. * arm/configure: Regenerate. * avr/configure: Regenerate. * bfin/configure: Regenerate. * common/configure: Regenerate. * cr16/configure: Regenerate. * cris/configure: Regenerate. * d10v/configure: Regenerate. * erc32/configure: Regenerate. * frv/configure: Regenerate. * h8300/configure: Regenerate. * igen/configure: Regenerate. * iq2000/configure: Regenerate. * lm32/configure: Regenerate. * m32c/configure: Regenerate. * m32r/configure: Regenerate. * m68hc11/configure: Regenerate. * mcore/configure: Regenerate. * microblaze/configure: Regenerate. * mips/configure: Regenerate. * mn10300/configure: Regenerate. * moxie/configure: Regenerate. * ppc/configure: Regenerate. * rl78/configure: Regenerate. * rx/configure: Regenerate. * sh/configure: Regenerate. * sh64/configure: Regenerate. * testsuite/configure: Regenerate. * v850/configure: Regenerate.
* * MAINTAINERS: Update my email address.Stephane Carrez2012-11-052-1/+5
|
* 2012-10-04 Chao-ying Fu <fu@mips.com>Steve Ellcey2012-10-032-0/+16
| | | | | | Steve Ellcey <sellcey@mips.com> * mips/mips3264r2.igen (rdhwr): New.
* Forgot to include ChangeLog in last checkin.Steve Ellcey2012-09-241-0/+6
|
* 2012-09-24 Steve Ellcey <sellcey@mips.com>Steve Ellcey2012-09-243-3/+11
| | | | | | * mips/basic.exp: Add mips*-mti-elf* target. * configure.ac: Add mips*-mti-elf* target. * configure: Regenerate.
* * v850.igen (W,WWWW): Correct computation of register number.Nick Clifton2012-09-132-14/+19
| | | | | | | | | | | (JR32): Remove unnecessary comma. (cmovf.s): Register 0 is an invalid source register. (maddf.s): Remove bogus intermediary rounding. (nmaddf.s): Likewise. (trncf.sl): Remove bogus initial rounding. (trncf.dw): Likewise. (trncf.sl): Likewise. (trncf.sw): Likewise.
* Adjust for branch target encoding changeAnthony Green2012-09-082-10/+15
|
* 2012-09-03 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2012-09-043-4/+7
| | | | | * configure.ac: Always link against dv-sockser.o. * configure: Regenerate.
* PR sim/14540Nick Clifton2012-09-032-1/+7
| | | | | * armsupp.c (ARMul_MRC): Return 0 if access to the MRC instruction is denied.
* sim: cr16: update syscall listMike Frysinger2012-08-303-25/+34
|
* sim: cr16: improve trap handlingMike Frysinger2012-08-304-2/+31
|
* sim: cr16: add sim_complete_command stubMike Frysinger2012-08-302-0/+9
|
* oops - acxidentally omitted from previous delta.Nick Clifton2012-08-161-0/+10
|
* * end.c: Include config.h before system header files.Nick Clifton2012-08-167-0/+7
| | | | | | | | | * erc32.c: Likewise. * exec.c: Likewise. * float.c: Likewise. * func.c: Likewise. * help.c: Likewise. * interf.c: Likewise.
* * wrapper.c (libiberty.h): Include.Kevin Buettner2012-08-012-6/+14
| | | | | (sim_store_register, sim_fetch_register): On success, return length, instead of -1.
* sim: bfin: set bfrom alias field to correct sizeMike Frysinger2012-08-012-10/+17
| | | | | | | | When the sim is built w/out the bfroms, we end up passing a length of 0 when mapping the rom region which the core sim code rejects. So add an alias field equal to the length to avoid that error. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* sim: bfin: update return value in bfin_reg_{fetch,store}Mike Frysinger2012-08-012-4/+10
| | | | | | | The latest gdb sim-remote.c really wants a return value from the fetch/store register functions, so update the Blackfin sim to avoid the warnings/errors. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* include "config.h" instead of BFD's sysdep.h in d10v/interp.cJoel Brobecker2012-06-192-1/+19
| | | | | | | | | | | | The change of include file introduces some new warnings about functions being used without a prototype. So a few more system includes have been added to compensate for that. sim/d10v/ChangeLog: * interp.c: #include "config.h" instead of "sysdep.h". Add conditional include of string.h or strings.h, as well as conditional include of stdlib.h.
* sim: cr16: include config.h rather than sysdep.h from bfdMike Frysinger2012-06-172-1/+8
|
* sim: moxie: fix build by including config.h firstMike Frysinger2012-06-172-0/+6
|
* * interp.c: Include config.h first. Do not include sysdep.h.Hans-Peter Nilsson2012-06-172-1/+5
|
* sim/erc32/sys.h: Include "config.h".Joel Brobecker2012-06-152-0/+5
| | | | | | | | | This file includes "gdb/callback.h", which includes "bfd.h", which itself verifies that "config.h" was included earlier. sim/erc32/ChangeLog: * sys.h: Include "config.h".
* Define PACKAGE macro in all sims' config.h.Joel Brobecker2012-06-1582-10/+543
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some of the common includes in include/gdb such as callback.h include bfd.h. But there was a recent change in bfd-in.h to require that config.h be included before bfd.h can be included: /* PR 14072: Ensure that config.h is included first. */ #if !defined PACKAGE && !defined PACKAGE_VERSION #error config.h must be included before this header #endif PACKAGE_VERSION is always defined by default by the AC_INIT autoconf macro, but PACKAGE isn't. This patch updates the SIM_AC_COMMON macro to define it, and then regenerates all configure scripts and config.in files. sim/common/changeLog: * acinclude.m4 (SIM_AC_COMMON): Define PACKAGE. * config.in, configure: Regenerate. sim/ChangeLog: * configure: Regenerate. sim/arm/ChangeLog: * config.in, configure: Regenerate. sim/avr/ChangeLog: * config.in, configure: Regenerate. sim/bfin/ChangeLog: * config.in, configure: Regenerate. sim/cr16/ChangeLog: * config.in, configure: Regenerate. sim/cris/ChangeLog: * config.in, configure: Regenerate. sim/d10v/ChangeLog: * config.in, configure: Regenerate. sim/erc32/ChangeLog: * config.in, configure: Regenerate. sim/frv/ChangeLog: * config.in, configure: Regenerate. sim/h8300/ChangeLog: * config.in, configure: Regenerate. sim/iq2000/ChangeLog: * config.in, configure: Regenerate. sim/lm32/ChangeLog: * config.in, configure: Regenerate. sim/m32c/ChangeLog: * config.in, configure: Regenerate. sim/m32r/ChangeLog: * config.in, configure: Regenerate. sim/m68hc11/ChangeLog: * config.in, configure: Regenerate. sim/mcore/ChangeLog: * config.in, configure: Regenerate. sim/microblaze/ChangeLog: * config.in, configure: Regenerate. sim/mips/ChangeLog: * config.in, configure: Regenerate. sim/mn10300/ChangeLog: * config.in, configure: Regenerate. sim/moxie/ChangeLog: * config.in, configure: Regenerate. sim/ppc/ChangeLog: * configure: Regenerate. sim/rl78/ChangeLog: * config.in, configure: Regenerate. sim/rx/ChangeLog: * config.in, configure: Regenerate. sim/sh/ChangeLog: * config.in, configure: Regenerate. sim/sh64/ChangeLog: * config.in, configure: Regenerate. sim/v850/ChangeLog: * config.in, configure: Regenerate. sim/testsuite/ChangeLog: * configure: Regenerate.
OpenPOWER on IntegriCloud