aboutsummaryrefslogtreecommitdiff
path: root/sim/ppc/sim_calls.c
AgeCommit message (Collapse)AuthorFilesLines
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>
2005-11-28 * remote-sim.c (gdbsim_wait): Pass target signal numbers toMark Mitchell1-2/+3
sim_resume. Expect target signal numbers from sim_stop_reason. * wrapper.c (gdb/signals.h): Include it. (SIGTRAP): Don't define. (SIGBUS): Likewise. (sim_stop_reason): Use TARGET_SIGNAL_* instead of SIG*. * sim-reason.c (sim_stop_reason): Use sim_signal_to_target, not sim_signal_to_host. * sim-signal.c (sim_signal_to_host): Fix typo. (sim_signal_to_target): New function. * interp.c (gdb/signals.h): Include it. (sim_stop_reason): Use TARGET_SIGNAL_*. * interf.c: (gdb/signals.h): Include it. (sim_stop_reason): Use TARGET_SIGNAL_*. * sim_calls.c (gdb/signals.h): Include it. (sim_stop_reason): Use TARGET_SIGNAL_*. * psim.c (cntrl_c_simulation): Use TARGET_SIGNAL_*.
2004-11-11sim/erc32:Andreas Schwab1-0/+1
* interf.c: Include "libiberty.h" instead of declaring buildargv ourselves. sim/ppc: * sim_calls.c: Include "libiberty.h".
2004-08-052004-08-04 Andrew Cagney <cagney@gnu.org>Andrew Cagney1-73/+1
Jim Blandy <jimb@redhat.com> * sim_callbacks.h (simulator): Declare. * Makefile.in (gdb-sim.o): New rule. (MAIN_SRC, GDB_OBJ): Add gdb-sim.o, gdb-sim.c. (DEFS_H): Delete. (GDB_SIM_PPC_H): Define. * gdb-sim.c: New file. * sim_calls.c: Do not include "defs.h". (simulator): Drop static. (sim_store_register, sim_fetch_register): Delete.
2004-08-042004-08-04 Andrew Cagney <cagney@gnu.org>Andrew Cagney1-88/+36
* Back out accidently committed change.
2004-08-04gdb/ChangeLog:Jim Blandy1-36/+88
2004-07-20 Jim Blandy <jimb@redhat.com> Use a fixed register numbering when communicating with the PowerPC simulator. * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'. * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h". (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno): New functions. (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call init_sim_regno_table. * Makefile.in (gdb_sim_ppc_h): New variable. (rs6000-tdep.o): Update dependencies. include/gdb/ChangeLog: 2004-07-20 Jim Blandy <jimb@redhat.com> * sim-ppc.h: New file. sim/ppc/ChangeLog: 2004-07-20 Jim Blandy <jimb@redhat.com> Use a fixed register numbering when communicating with the PowerPC simulator. * sim_calls.c: #include "registers.h" and "gdb/sim-ppc.h"; do not include GDB's "defs.h". (gdb_register_name_table): New variable. (gdb_register_name_table_size): New enum constant. (gdb_register_name): New function. (sim_fetch_register, sim_store_register): Use gdb_register_name, instead of calling gdbarch_register_name. * Makefile.in (GDB_SIM_PPC_H): New variable. (DEFS_H): Delete variable. (sim_calls.o): Update dependencies.
2003-06-202003-06-20 Andrew Cagney <cagney@redhat.com>Andrew Cagney1-21/+11
* sim_calls.c (sim_create_inferior): Assert that psim_write_register succeeded. (sim_fetch_register, sim_store_register): Make "regname" constant. Delete Altivec hack. Return result from psim_read_register / psim_write_register. * psim.h (psim_read_register, psim_write_register): Change return type to int. Update comments. * psim.c: Update copyright. (psim_stack): Assert that the psim_read_register worked. (psim_read_register, psim_read_register): Return the register's size. Allocate the cooked buffer dynamically. * hw_register.c: Update copyright. (do_register_init): Check that psim_write_register succeeded. * hw_init.c: Update copyright. (create_ppc_elf_stack_frame, create_ppc_aix_stack_frame): Assert that the register transfer worked.
2003-02-27Index: arm/ChangeLogAndrew Cagney1-2/+2
2003-02-27 Andrew Cagney <cagney@redhat.com> * wrapper.c (sim_create_inferior, sim_open): Rename _bfd to bfd. Index: common/ChangeLog 2003-02-27 Andrew Cagney <cagney@redhat.com> * sim-utils.h (sim_analyze_program, sim_load_file): Rename _bfd to bfd. * sim-hload.c (sim_load), sim-base.h (sim_state_base): Ditto. * nrun.c (main): Ditto. Index: d10v/ChangeLog 2003-02-27 Andrew Cagney <cagney@redhat.com> * interp.c (sim_open, sim_create_inferior): Rename _bfd to bfd. Index: erc32/ChangeLog 2003-02-27 Andrew Cagney <cagney@redhat.com> * interf.c (sim_open, sim_create_inferior): Rename _bfd to bfd. Index: h8300/ChangeLog 2003-02-27 Andrew Cagney <cagney@redhat.com> * compile.c (sim_open, sim_create_inferior): Rename _bfd to bfd. Index: h8500/ChangeLog 2003-02-27 Andrew Cagney <cagney@redhat.com> * compile.c (sim_open, sim_create_inferior): Rename _bfd to bfd. Index: i960/ChangeLog 2003-02-27 Andrew Cagney <cagney@redhat.com> * sim-if.c (sim_open, sim_create_inferior): Rename _bfd to bfd. Index: m32r/ChangeLog 2003-02-27 Andrew Cagney <cagney@redhat.com> * sim-if.c (sim_open, sim_create_inferior): Rename _bfd to bfd. Index: m68hc11/ChangeLog 2003-02-27 Andrew Cagney <cagney@redhat.com> * interp.c (sim_prepare_for_program, sim_open) (sim_create_inferior): Rename _bfd to bfd. Index: mcore/ChangeLog 2003-02-27 Andrew Cagney <cagney@redhat.com> * interp.c (sim_open, sim_create_inferior): Rename _bfd to bfd. Index: mips/ChangeLog 2003-02-27 Andrew Cagney <cagney@redhat.com> * interp.c (sim_open): (sim_create_inferior): Index: mn10200/ChangeLog 2003-02-27 Andrew Cagney <cagney@redhat.com> * interp.c (sim_open, sim_create_inferior): Rename _bfd to bfd. Index: mn10300/ChangeLog 2003-02-27 Andrew Cagney <cagney@redhat.com> * interp.c (sim_open, sim_create_inferior, sim_open) (sim_create_inferior): Rename _bfd to bfd. Index: ppc/ChangeLog 2003-02-27 Andrew Cagney <cagney@redhat.com> * sim_calls.c (sim_open, sim_create_inferior): Rename _bfd to bfd. Index: sh/ChangeLog 2003-02-27 Andrew Cagney <cagney@redhat.com> * interp.c (init_dsp, sim_open, sim_create_inferior): Rename _bfd to bfd. Index: v850/ChangeLog 2003-02-27 Andrew Cagney <cagney@redhat.com> * interp.c (sim_open, sim_create_inferior): Rename _bfd to bfd. Index: z8k/ChangeLog 2003-02-27 Andrew Cagney <cagney@redhat.com> * iface.c (sim_open, sim_create_inferior): Rename _bfd to bfd.
2002-06-09Move include/callback.h and include/remote-sim.h to include/gdb/.Andrew Cagney1-2/+2
Update accordingly.
2002-04-152002-04-15 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni1-2/+10
* sim_calls.c (sim_fetch_register, sim_store_register): Return -1 for AltiVec registers as a temporary stopgap.
2001-12-15 * main.c: Include "defs.h", "bfd.h", "callback.h" and "remote-sim.h".Matthew Green1-0/+10
(sim_io_error): New function. * sim_calls.c: (sim_io_error): New function.
2000-12-082000-11-15 Jim Blandy <jimb@redhat.com>Michael Chastain1-24/+30
* sim_calls.c: Doc fix. (sim_fetch_register, sim_store_register): Call gdbarch_register_name directly, instead of going through REGISTER_NAME macro.
1999-04-26import gdb-19990422 snapshotStan Shebs1-1/+9
1999-04-16Initial creation of sourceware repositorygdb-4_18-branchpointStan Shebs1-0/+445
1999-04-16Initial creation of sourceware repositoryStan Shebs1-401/+0
1997-10-02Fix typo, WITH_TARGET_WORD_BITSIZE not WITH_TARGET_BITSIZE.Andrew Cagney1-2/+6
1997-08-27Add ABFD argument to sim_create_inferior. Document.Andrew Cagney1-9/+10
Add file sim-hload.c - generic load for hardware only simulators. Review each simulators sim_open, sim_load, sim_create_inferior so that they more closely match required behavour.
1997-08-27 * idecode_expression.h (ALU_END): From Charles Lefurgy - ExtractAndrew Cagney1-3/+3
sign bit using 64 bit and not a 32 bit mask. * sim_calls.c (sim_load): From Ian Lance Taylor - free argv after it has been used, not before.
1997-08-26Flush defunct sim_kill.Andrew Cagney1-8/+0
1997-08-25Add ABFD argument to sim_open call. Pass through to sim_config soAndrew Cagney1-10/+5
that image properties such as endianness can be checked. More strongly document the expected behavour of each of the sim_* interfaces. Add default endian argument to simulator config macro SIM_AC_OPTION_ENDIAN. Use in sim_config.
1997-05-20Part II of adding callback argument to sim_open(). Update all theAndrew Cagney1-46/+25
other simulators; remove SIM_DESC from depreciated function sim_set_callbacks().
1997-04-17 * psim.c (psim_options): Ignore -E option (sets endianness).David Edelsohn1-31/+53
* sim_calls.c: #include bfd.h. (entry_point): New static local. (sim_load): Return SIM_RC. New arg abfd. Set start address from bfd. (sim_create_inferior): Return SIM_RC. Delete arg start_address.
1997-01-27January 23rd mergeMichael Meissner1-6/+8
1996-11-20 * sim_calls.c (sim_resume): Reset sim_should_run if single stepping.David Edelsohn1-14/+111
1996-07-23New simulator changes from AndrewMichael Meissner1-71/+28
1995-11-28Add determining when we do not have enough writeback slots; Do not do model ↵Michael Meissner1-1/+2
specific handling if not printing out the information
1995-11-12Add support for setting model name and other thingsMichael Meissner1-14/+17
1995-11-08first stage in function unit support; add new switches & latest code from andrewMichael Meissner1-10/+27
1995-11-06Small changes from AndrewMichael Meissner1-0/+1
1995-11-02Use autoconf correctly; provide more stats with -IMichael Meissner1-2/+12
1995-11-02Andrew's latest changes & print all instruction counts if -IMichael Meissner1-51/+56
1995-10-08Add set_sim_callbacks new needed by gdb.Michael Meissner1-0/+7
1995-10-02Add support to count the number of instructions issued.Michael Meissner1-3/+9
1995-10-02Add switch processing in gdb.Michael Meissner1-0/+302