summaryrefslogtreecommitdiff
path: root/sim
Commit message (Collapse)AuthorAgeFilesLines
...
* sim: bfin: fix typo in BF54x SIC initMike Frysinger2012-03-312-1/+5
| | | | | | | | | | | The current code triggers a warning: dv-bfin_sic.c: In function 'bfin_sic_finish': dv-bfin_sic.c:930:41: warning: operation on 'sic-><U78e8>.bf54x.iwr1' may be undefined [-Wsequence-point] This points out the IWR2 register was not being setup because of a typo. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* sim: bfin: include devices.h to fix build warningsMike Frysinger2012-03-312-0/+5
| | | | | | | | | | | | The place where these funcs get defined do not include the header that declares their prototypes. Add that to fix -Wmissing-prototypes: devices.c:59:1: warning: no previous prototype for 'dv_bfin_mmr_invalid' devices.c:66:1: warning: no previous prototype for 'dv_bfin_mmr_require' devices.c:99:1: warning: no previous prototype for 'dv_bfin_mmr_check' devices.c:159:14: warning: no previous prototype for 'dv_get_bus_num' Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Commit gdb and sim support for v850e2 and v850e2v3 on behalf ofKevin Buettner2012-03-299-26/+3235
| | | | Rathish C <Rathish.C@kpitcummins.com>.
* sim: add bugzilla markingMike Frysinger2012-03-271-0/+1
|
* sim: add a proper sim_core_trans_addr prototypeMike Frysinger2012-03-264-1/+16
| | | | | | | The common code has a sim_core_trans_addr() helper that only the m32r code uses. Move the inline extern in the m32r code to the proper common header. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* sim: bfin: skip .c/.S tests if no compiler is availableMike Frysinger2012-03-252-0/+34
| | | | | | | | | Similar to logic in the cris exp, attempt a simple compile and if it fails (presumably due to the compiler being broken), skip all the related tests. Fortunately, most tests (~600 out of ~800) are pure assembly, so people should still get pretty good coverage. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* sim: bfin: disable redundant test that makes 32bit gas angryMike Frysinger2012-03-252-1/+7
|
* sim: bfin: fix typos in large constants in testsMike Frysinger2012-03-256-5/+13
| | | | | Truncate constants that are larger than 32bits but get loaded into 32bit registers. These high bits don't get used and don't really make sense.
* * nrun.c: Add #ifdef HAVE_CONFIG_H and associated includes stanzaHans-Peter Nilsson2012-03-242-0/+11
| | | | missing in last change.
* [PATCH] sim: make sure to include strsignal prototypeMike Frysinger2012-03-24104-3403/+6118
| | | | | | | | | | | Before POSIX standardized strsignal(), old systems would hide the prototype unless the normal extension defines were enabled. So use the AC_USE_SYSTEM_EXTENSIONS helper for that. Then make sure we include string.h ourselves in nrun.c rather than relying on implicit includes via other sim headers. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* sim: testsuite: regen configure after rl78 additionMike Frysinger2012-03-241-0/+4
|
* sim: cris: update testsuite output after strsignal changeMike Frysinger2012-03-2425-24/+33
|
* sim: testsuite: regen configure after rl78 additionMike Frysinger2012-03-231-0/+3
|
* sim: rx: fix warnings with AC_DEFINEMike Frysinger2012-03-232-3/+8
| | | | | | This lets `autoheader` work again. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* sim: sync build_warnings handling with gdbMike Frysinger2012-03-232-26/+44
| | | | | | | | | | | | | The sim code gets the logic for SIM_AC_OPTION_WARNINGS from gdb, but it hasn't been updated in a good long while. Sync with the latest gdb code. There is a sim specific change in here: we disable -Werror for now. This is because all sim code atm contains warnings. Will probably have to slowly add a white list of targets which can tolerate this until everyone is updated. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* sim: cris: update testsuite output after strsignal changeMike Frysinger2012-03-2138-37/+50
|
* sim/testsuite/: split up arch-specific changelogsMike Frysinger2012-03-217-613/+587
|
* sim: bfin: add exhaustive parallel-insn testsMike Frysinger2012-03-194-0/+33517
|
* sim: bfin: unify se_all*opcodes testsMike Frysinger2012-03-194-287/+255
| | | | | | | | | The current se_all*opcodes tests are very similar in how they work. In preparation for adding more tests along these lines, unify the common bits into a framework that others can include and build off of easily. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* sim: bfin: add tests for new shift behaviorMike Frysinger2012-03-192-0/+11
|
* sim: bfin: add tests for new shift behaviorMike Frysinger2012-03-194-0/+137
|
* sim: bfin: fix corner case Logical shift issuesMike Frysinger2012-03-192-45/+64
| | | | | | | | | | | | From: Robin Getz <robin.getz@analog.com> Overflow with shift operations happens independently of saturation, but we have the logic merged. Extend the lshift function so that callers can tell it when to handle each independently, and then do so when it's needed. Signed-off-by: Robin Getz <robin.getz@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* sim: use character classes rather than rangesMike Frysinger2012-03-194-18/+25
| | | | | | A-Z ranges don't work in all locales, so use character classes instead. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* sim: nrun: decode signal when crashingMike Frysinger2012-03-192-1/+6
| | | | | | | | This isn't entirely correct in that it assumes the signal numbering of the target and host match, but seeing as we already make that assumption in a few places, this patch doesn't make the situation any worse. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* sim: tests: ignore generated testsMike Frysinger2012-03-192-0/+5
|
* sim: bfin: ebiu_amc: push down hardcoded base addressesMike Frysinger2012-03-192-2/+12
| | | | | | | | To make it easier to support ebiu banks at other addresses, move the base to a runtime parameter rather than structure. Future work will make this more dynamic, but I'm waiting for more details first. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* sim: bfin: import optimizations from 32bit test into 16bit testMike Frysinger2012-03-192-35/+73
| | | | | | | | The 32bit allopcodes test had quite a bit of optimization added to it so that it ran in a reasonable amount of time out of uncached memory. Port those changes over to the 16bit test so the two share common code. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* sim: bfin: use ARRAY_SIZEMike Frysinger2012-03-192-1/+6
| | | | | | | Rather than hardcode the constant, use ARRAY_SIZE to get it. Should be no functional changes here. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* sim: ppc: fix compilation on AIX 7.1 due to st_pad name collisionsMike Frysinger2012-03-142-0/+9
| | | | | | | | | AIX 7.1 defines st_pad[123] to st_[amc]tim.tv_pad, respectively, breaking declaration of st_pad[123] members in struct solaris_stat. Undefine them as this is no less terrible than other solutions (like renaming the fields and losing the binding to Solaris' names). From: Michael Haubenwallner <haubi@s01en24.gentoo.org>
* sim: bfin: drop old linux/mii.h workaroundsMike Frysinger2012-03-045-23/+35
| | | | | | | | We had some workarounds for old linux/mii.h headers, but it breaks with newer ones. So tweak the checks a bit to work with newer ones. We'll worry about older systems once someone complains. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Update rx sim so that it'll print load statistics.Kevin Buettner2012-03-037-5/+58
|
* Update sim_fetch_register, sim_store_register for sh and mn10300.Kevin Buettner2012-02-164-4/+15
| | | | Fix compile warnings for sh built on 64-bit hosts.
* Add support to GDB for the Renesas rl78 architecture.Kevin Buettner2012-02-043-0/+579
|
* sim: headers: use abs_srcdir to find helper scriptsMike Frysinger2012-01-062-2/+9
| | | | | | | | | Trying to run `headers` in an out-of-tree build fails atm due to the relative srcdir paths being used in a location other than where they were setup to be used from. Get abs_srcdir from configure and use that instead where applicable. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Copyright year update in most files of the GDB Project.Joel Brobecker2012-01-04531-772/+577
| | | | | | gdb/ChangeLog: Copyright year update in most files of the GDB Project.
* Update the copyright header of various files...Joel Brobecker2012-01-0212-8/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ... to follow the correct syntax (according to the gospel of gnulib's update-copyright). In other words: - no comma after the last year; - FSF spelled exactly "Free Software Foundation, Inc.", with the comma and the period at the end. sim/common/ChangeLog: * dv-sockser.h, sim-assert.h, sim-fpu.c: Reformat the copyright header. sim/m32c/ChangeLog: * blinky.S, gloss.S, sample.S: Reformat copyright header. sim/mn10300/ChangeLog: * sim-main.h: Reformat copyright header. sim/ppc/ChangeLog: * dp-bit.c: Reformat copyright header. gdb/ChangeLog: * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c, gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c: Reformat the copyright header. gdb/gdbserver/ChangeLog: * terminal.h: Reformat copyright header. gdb/testsuite/ChangeLog: * dg-extract-results.sh, gdb.arch/gcore.c, gdb.arch/gdb1558.c, gdb.arch/i386-gnu-cfi.c, gdb.base/complex.c, gdb.base/cvexpr.c, gdb.base/gcore.c, gdb.base/gdb1555-main.c, gdb.base/gdb1555.c, gdb.base/gdb1821.c, gdb.base/long_long.c, gdb.base/restore.c, gdb.base/sepdebug.c, gdb.base/type-opaque-lib.c, gdb.base/type-opaque-main.c, gdb.cp/maint.exp, gdb.cp/namespace1.cc, gdb.cp/pr9631.cc, gdb.cp/psmang1.cc, gdb.cp/psmang2.cc, gdb.cp/try_catch.cc, gdb.cp/virtfunc.cc, gdb.hp/gdb.base-hp/reg.exp, gdb.mi/basics.c, gdb.mi/mi-stack.c, gdb.mi/mi-var-child.c, gdb.mi/mi2-var-child.exp, gdb.mi/var-cmd.c, gdb.threads/thread_check.c: Reformat copyright header.
* sim: erc32: fix linking against local readline on modern (ncurses) systemsMike Frysinger2011-12-313-21/+52
| | | | | | | | | | | | | | | | | | | | The current erc32 configure script only searches for -ltermcap to provide any termcap funcs (which readlines needs). When building against a local readline (which is static), we hit link failures like so: gcc ...-I/-D flags... -o sis \ sis.o exec.o erc32.o func.o help.o float.o \ ../../bfd/libbfd.a ../../opcodes/libopcodes.a \ ../../libiberty/libiberty.a -lz -lnsl \ ../../readline/libreadline.a -lm ../../readline/libreadline.a(display.o): In function 'cr': .../readline/display.c:2486: undefined reference to 'tputs' collect2: ld returned 1 exit status make[2]: *** [sis] Error 1 Use AC_SEARCH_LIBS from gdb's configure.ac as suggested by Joel Brobecker to check for additional termcap providers. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* sim: cr16: add ifdefs around undefined syscallsMike Frysinger2011-12-302-0/+17
| | | | | | | | | | The cr16 libgloss port does not define these syscall numbers, so trying to use them results in build failures [1]. The cr16 code already uses ifdefs around a bunch of syscalls, so extend that style to cover the ones that are currently missing. Now we can at least compile. [1] http://sourceware.org/ml/gdb-patches/2011-06/msg00118.html Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Work around Solaris bourne shell limitation when building the simJoel Brobecker2011-12-192-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Building the sim on a sparc-solaris 2.8 machine fails when configured with no extra sim hardware: > for hw in ; do \ > echo "extern const struct hw_descriptor > dv_${hw}_descriptor[];" ; \ > done >> tmp-hw.h > echo 'const char version[] = "'"`sed q > /[...]/../../gdb/version.in`"'";' > >> version.c-tmp > /bin/sh: -c: line 1: syntax error near unexpected token `;' > /bin/sh: -c: line 1: `for hw in ; do \' > make[3]: *** [hw-config.h] Error 2 The same thing happens with the version of bash that we got from Sun as well (which is very old: 2.03.0(1)-release). The problems comes from the fact that both shells are buggy, and reject the following script: for hw in ; do [...] done The above is what sim/common/Makefile.in tries to execute when generating hw-config.h. In order to allow users to build out of the box on these machines, this patch works around this bug. It does rely on the fact that none of the tokens in SIM_HW contain whitespaces. sim/common/ChangeLog: * Make-common.in (hw-config.h): Work around bug in Solaris 2.8 system bourne shell.
* sim: bfin: lookup target strings when tracing system callsMike Frysinger2011-12-032-10/+41
| | | | | | | | Parsing target addresses is hard if not generally useless, so use the new cb_get_string function to lookup the associated strings as well. Now the trace output is quickly useful instead of just marginally so. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* sim: export cb_get_string for people to useMike Frysinger2011-12-032-3/+8
| | | | | | | | The common sim code provides a useful "get_string" function which reads a C string out of the target's memory space. So rename and export it for other people to use. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* sim: generate build dependencies on the flyMike Frysinger2011-12-0378-233/+7988
| | | | | | | | Lift the code that GDB is using to generate dependencies on the fly and port it over to the sim. Now people shouldn't have to manually maintain these in their Makefile's. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Record Mike Frysinger as a sim Global Maintainer.Joel Brobecker2011-11-292-0/+9
| | | | | | | sim/ChangeLog: * maintainers (global maintainers): new section. add mike frysinger.
* [sim]DJ Delorie2011-11-2918-0/+8641
| | | | | | | | | * configure.tgt: Add rl78 support. * configure: Regenerate. * rl78: New directory. * MAINTAINERS: Add myself as RL78 maintainer. [gdb] * NEWS: Mention RL78 simulator.
* sim: dv-cfi: check for posix_fallocateMike Frysinger2011-11-075-3/+13
| | | | | | | | | Some systems (like OS X) do not have posix_fallocate. Add a configure check for it before we try to use it. This is less work than trying to support old systems. URL: http://sourceware.org/bugzilla/show_bug.cgi?id=13161 Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* sim: mn10300: fix typo in if checkMike Frysinger2011-11-072-2/+7
| | | | | | | The code looks like it should be doing a bit check, not logical. URL: http://sourceware.org/bugzilla/show_bug.cgi?id=9302 Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* 2011-02-11 Ben Golding <ben_golding@yahoo.co.uk>Tom Tromey2011-11-032-0/+5
| | | | * events.c: add #include <stdlib.h> for free(). Fix PR build/13372.
* sim: dv-cfi: check for log2 support in libm when enabledMike Frysinger2011-10-1914-1/+321
| | | | | | | The dv-cfi model uses log2() internally, so make sure we automatically link in libm when required. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* [sim]: Only print the profile info title once.Joel Brobecker2011-10-192-1/+6
| | | | | | | sim/common/ChangeLog: From John Wehle <john@feith.com> (tiny patch) * sim-profile.c (profile_info): Only print the title once.
* sim: rename common/aclocal.m4 to common/acinclude.m4Mike Frysinger2011-10-1855-974/+1099
| | | | | | | | Automake likes to dump macros automatically used into the aclocal.m4 file, but the common/aclocal.m4 naming prevents that. So rename it to the more normal "acinclude.m4" so the aclocal tool can work. Signed-off-by: Mike Frysinger <vapier@gentoo.org>