aboutsummaryrefslogtreecommitdiff
path: root/sim/moxie/interp.c
AgeCommit message (Collapse)AuthorFilesLines
2016-01-06sim: sim_{create_inferior,open,parse_args}: constify argv/env slightlyMike Frysinger1-2/+4
2016-01-03 Mike Frysinger <vapier@gentoo.org> * sim-options.c (sim_parse_args): Mark argv array const. * sim-options.h (sim_parse_args): Likewise.
2016-01-03sim: parse_args: display getopt error ourselvesMike Frysinger1-3/+1
Fix a long standing todo where we let getopt write directly to stderr when an invalid option is passed. Use the sim io funcs instead as they go through the filtered callbacks that gdb wants.
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-12-30sim: arm/d10v/h8300/m68hc11/microblaze/mips/mn10300/moxie/sh/v850: convert ↵Mike Frysinger1-4/+6
to common sim_{fetch,store}_register
2015-11-15sim: sim-close: unify sim_close logicMike Frysinger1-7/+0
Other than the nice advantage of all sims having to declare one fewer common function, this also fixes leakage in pretty much every sim. Many were not freeing any resources, and a few were inconsistent as to the ones they did. Now we have a single module that takes care of all the logic for us. Most of the non-cgen based ones could be deleted outright. The cgen ones required adding a callback to the arch-specific cleanup func. The few that still have close callbacks are to manage their internal state. We do not convert erc32, m32c, ppc, rl78, or rx as they do not use the common sim core.
2015-10-11sim: moxie: fix leakage in error path [BZ #18273]Mike Frysinger1-0/+1
Reported-by: dcb <dcb314@hotmail.com>
2015-06-12sim: moxie: use new common trace definesMike Frysinger1-4/+9
Now that there's common helpers for printing trace data, switch to that to restore the insn tracing support for this target.
2015-06-12sim: moxie: rename TRACE to MOXIE_TRACE_INSNMike Frysinger1-73/+73
We want to add new common trace helpers including "TRACE", so rename the moxie one to MOXIE_TRACE_INSN. This also matches what the code is doing.
2015-04-17sim: replace CIA_{GET,SET} with CPU_PC_{GET,SET}Mike Frysinger1-7/+7
The CIA_{GET,SET} macros serve the same function as CPU_PC_{GET,SET} except the latter adds a layer of indirection via the sim state. This lets models set up different functions at runtime and doesn't reach so directly into the arch-specific cpu state. It also doesn't make sense to have two sets of macros that do exactly the same thing, so lets standardize on the one that gets us more.
2015-04-16sim: avr/mcore/moxie: fill out sim-cpu pc fetch/store helpersMike Frysinger1-1/+22
This makes the common sim-cpu logic work.
2015-04-05sim: moxie: fix running after nrun conversionMike Frysinger1-25/+20
The nrun conversion was slightly incorrect in how it stopped when an exception occurred. We still set cpu.asregs.exception, but nothing was checking it anymore. Convert all of that to sim_engine_halt. To keep things from regressing again, add a basic testsuite too.
2015-03-24sim: moxie: clean up build time warningsMike Frysinger1-44/+19
2015-03-24sim: moxie: convert to nrun.oMike Frysinger1-174/+49
This port already used a lot of common/ files, so cutting it over to nrun.o and using a few more common objects is pretty straight forward.
2015-03-24sim: moxie: switch to common sim-command.oMike Frysinger1-11/+0
2015-02-20sim: drop unused headersMike Frysinger1-2/+2
These look like left over hacks from the days where we had to protect ourselves from the compiler and C library. None of these checks are relevant, and we have common configure logic to do header tests. Punt them all now.
2015-02-19sim: drop unused sim_kill functionMike Frysinger1-8/+0
This has been deprecated for a long time and no one calls it.
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-12-27Update sto/ldo implementations with 16 bit offsetsAnthony Green1-20/+26
2014-12-25Whitespace cleanupAnthony Green1-4/+55
2014-12-24Add support for moxie's mul.x and umul.x instructionsAnthony Green1-2/+24
2014-12-12Add zex instruction support for moxie portAnthony Green1-2/+18
2014-04-02Add support for two new moxie sign-extension instructionsAnthony Green1-2/+18
2014-03-10sim: constify arg to sim_do_commandMike Frysinger1-1/+1
It is rare for people to want to modify the cmd arg. In general, they really shouldn't be, but a few still do. For those who misbehave, dupe the string locally so they can bang on it.
2014-03-05sim: constify prog_nameMike Frysinger1-1/+1
There's no need for the prog_name handed down to the core to be mutable, so add const markings to it and all the related funcs.
2014-02-17sim: delete duplicate SIGINT handlingMike Frysinger1-10/+0
Many of the simulators change the SIGINT handler. E.g., moxie/interp.c: sigsave = signal (SIGINT, interrupt); However, this is unnecessary. remote-sim.h already provides an API for asynchronously stopping a sim; and both gdb and the drivers (run.c and nrun.c at least, I didn't check the others) install a SIGINT handler which calls this method. URL: https://sourceware.org/bugzilla/show_bug.cgi?id=16450 Reported-by: Tom Tromey <tromey@redhat.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2014-01-01Update Copyright year range in all files maintained by GDB.Joel Brobecker1-1/+1
2013-01-17Remove debug outputAnthony Green1-1/+0
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-09-08Adjust for branch target encoding changeAnthony Green1-10/+10
2012-06-17sim: moxie: fix build by including config.h firstMike Frysinger1-0/+2
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-04-14sim: constify sim_write source buffer (part 2)Mike Frysinger1-1/+1
As pointed out by Sandra Loosemore, a bunch of targets define sim_write themselves instead of using the common/ code. So constify them too. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2010-02-27sim/moxie/Jan Kratochvil1-2/+3
* interp.c (sim_create_inferior): Fix crashes on zero PROG_BFD or ARGV.
2010-02-03Fix nop insn for moxieAnthony Green1-11/+15
2010-01-13Add period to sentence in comment.Anthony Green1-1/+1
2010-01-13Initialize SIM_DESC properly.Anthony Green1-0/+16
2010-01-01Update copyright notices to add year 2010.Joel Brobecker1-1/+1
2009-09-10Use common memory infrastructure and introduce device tree supportAnthony Green1-279/+157
2009-07-31Increase simulated memory size. Support new system call ABI. Support ↵Anthony Green1-10/+27
exception processing for Linux system calls.
2009-06-11Add PC-relative branch support to moxie sim.Anthony Green1-122/+98
2009-05-10Add missing break statemenets.Anthony Green1-0/+2
2009-05-01Add moxie simulatorAnthony Green1-0/+1481