summaryrefslogtreecommitdiffstats
path: root/sim
Commit message (Collapse)AuthorAgeFilesLines
* * run.1: Document --sysroot=filepath.Hans-Peter Nilsson2004-12-086-7/+90
| | | | | | | | | | | | | * sim-options.c (STANDARD_OPTIONS): New member OPTION_SYSROOT. (standard_options): Support --sysroot=<path>. (standard_option_handler): Handle OPTION_SYSROOT. * syscall.c (simulator_sysroot): Define, initialized empty. (get_path): Prepend simulator_sysroot to absolute file path. [HAVE_STRING_H]: Include string.h. [!HAVE_STRING_H && HAVE_STRINGS_H]: Include strings.h. * nrun.c [HAVE_UNISTD_H]: Include unistd.h. (main): If simulator_sysroot is not empty, chdir there. * sim-config.h (simulator_sysroot): Declare.
* * configure: Regenerate for ../common/aclocal.m4 update.Hans-Peter Nilsson2004-12-0726-180/+288
|
* * aclocal.m4 (SIM_AC_OUTPUT): Substitute @cgen_breaks@ for "breakHans-Peter Nilsson2004-12-073-0/+15
| | | | | | cgen_rtx_error" in a CGEN-generated simulator. * gdbinit.in: Break on sim_core_signal too. Have autoconf replacement for CGEN-related breakpoints.
* * Make-common.in (sim-basics_h): Add $(callback_h).Hans-Peter Nilsson2004-12-072-0/+5
|
* Bah, forgot to commit the trivial fix I pointed out myself after applying ↵Hans-Peter Nilsson2004-12-031-1/+1
| | | | patch for previous change
* * configure.in (SIM_CHECK_MEMBERS): Call for struct stat membersHans-Peter Nilsson2004-12-036-5/+1044
| | | | | | | | | | | | st_dev, st_ino, st_mode, st_nlink, st_uid, st_gid, st_rdev, st_size, st_blksize, st_blocks, st_atime, st_mtime and st_ctime. * aclocal.m4 (SIM_CHECK_MEMBER, SIM_CHECK_MEMBERS_1) (SIM_CHECK_MEMBERS): New macros. * callback.c (cb_host_to_target_stat): Use temporary macro ST_x for struct stat member test and write. Add ST_x calls for each struct stat member tested in configure.in. Wrap each ST_x call in #ifdef of configure macro for that member. * configure, config.in: Regenerate.
* Delete h8500 simulator, gdb droped h8500 in 6.1.Andrew Cagney2004-12-0110-7306/+1
|
* Delete i960; deleted from GDB long long ago.Andrew Cagney2004-12-0130-40714/+4
|
* Oops, forgot to save ChangeLog before committingHans-Peter Nilsson2004-12-011-0/+8
|
* Update copyright yearHans-Peter Nilsson2004-12-011-1/+1
|
* * Makefile.in (stamp-desc): Specify opcfile.Hans-Peter Nilsson2004-12-012-2/+6
|
* * cgen.sh: New thirteenth parameter opcfile, defaulting toHans-Peter Nilsson2004-12-012-2/+6
| | | | | | | /dev/null. <case desc>: Pass -OPC opcfile. * Make-common.in (cgen-desc): Pass $(opcfile) as thirteenth parameter to cgen.sh.
* * Make-common.in (sim-basics_h): Correct dependencies onRichard Earnshaw2004-11-302-3/+9
| | | | | cconfig.h and tconfig.h (sim-load.o): Correct typo in sim-basics_h dependency.
* In last change: macros not rules.Richard Earnshaw2004-11-181-3/+3
|
* * Make-common.in (sim-*_h): Add rules for all sim headers. AlsoRichard Earnshaw2004-11-182-24/+64
| | | | | | add sub-dependencies for other sim files that they include. (sim_main_headers): Use sim-*_h rules. (sim-load.o): Depend on sim-basics_h, not sim_main_headers.
* Fix consistenco; it's triplets, not triplesHans-Peter Nilsson2004-11-161-2/+2
|
* * lib/sim-defs.exp (run_sim_test): Support "xfail" and "kfail".Hans-Peter Nilsson2004-11-162-0/+26
|
* * Makefile.in (defines.h): Depend on tmp-defines.Andreas Schwab2004-11-162-0/+9
| | | | | (hw.c hw.h): Depend on tmp-hw. (pk.h): Depend on tmp-pk.
* * sim-config.c (sim_config): Recognize when a bfd has unspecifiedHans-Peter Nilsson2004-11-162-1/+8
| | | | endian information.
* * lib/sim-defs.exp (run_sim_test): Make multiple "output"Hans-Peter Nilsson2004-11-162-0/+9
| | | | specifications concatenate, not override.
* * Make-common.in (sim-load.o): Depend on $(sim_main_headers) andHans-Peter Nilsson2004-11-162-1/+8
| | | | | $(remote_sim_h) too. (sim_main_headers): Add sim-utils.h.
* 2004-11-12 Andrew Cagney <cagney@gnu.org>Andrew Cagney2004-11-1273-50546/+4
| | | | * d30v, fr30, mn10200, z8k: Delete directory.
* sim/erc32:Andreas Schwab2004-11-114-2/+11
| | | | | | | | * interf.c: Include "libiberty.h" instead of declaring buildargv ourselves. sim/ppc: * sim_calls.c: Include "libiberty.h".
* 2004-10-07 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>Andrew Cagney2004-10-272-42/+7
| | | | | | | Committed by Andrew Cagney. * traps-linux.c: Don't include linux/module.h. (m32r_trap): Remove dummy systemcall's entry of __NR_ustat and __NR_get_kernel_syms.
* (sim_run): Add support for the "rawsid" protocol.Nick Clifton2004-10-262-3/+15
|
* 2004-10-07 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>Frank Ch. Eigler2004-10-082-1/+5
| | | | * cgen-defs.h (ENDSWITCH): Changed to compile with gcc-3.4.2.
* 2004-09-24 Monika Chaddha <monika@acmet.com>Andrew Cagney2004-09-242-2/+7
| | | | | Committed by Andrew Cagney. * m16.igen (CMP, CMPI): Fix assembler.
* 2004-09-24 Ian Lance Taylor <ian@wasabisystems.com>Andrew Cagney2004-09-245-16/+111
| | | | | | | | Committed by Andrew Cagney. * configure.in: Check for sys/mount.h, sys/vfs.h, sys/statfs.h. Check for struct statfs. * emul_netbsd.c: If not HAVE_STRUCT_STATFS, #undef HAVE_FSTATFS. * configure, config.in: Regenerate.
* * sim/sh/allinsn.exp: Set global_as_options andDJ Delorie2004-09-133-0/+84
| | | | | global_ld_options appropriately for little endian builds. * sim/sh/movua.s: Support little endian.
* * lib/sim-defs.exp (run_sim_test): Add global_as_options,DJ Delorie2004-09-132-3/+22
| | | | | global_ld_options, and global_sim_options to all test cases, if defined.
* * allinsn.exp: Add new tests.Corinna Vinschen2004-09-0822-4/+2280
| | | | | | | | | | | | | | | | | | | | | | * bandor.s: New file. * bandornot.s: New file. * bclr.s: New file. * bld.s: New file. * bldnot.s: New file. * bset.s: New file. * bst.s: New file. * bxor.s: New file. * clip.s: New file. * div.s: New file. * fail.s: New file, make sure fail works. * fsca.s: New file. * fsrra.s: New file. * mov.s: New file. * mulr.s: New file. * pass.s: New file, make sure pass works. * pushpop.s: New file. * resbank.s: New file. * testutils.inc (bf8k, bt8k, assertmem): New macros.
* * gencode.c (movua.l): Compensate for endianness.Corinna Vinschen2004-09-083-37/+785
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * interp.c (RAISE_EXCEPTION_IF_IN_DELAY_SLOT): New macro. (in_delay_slot): New flag variable. (Delay_Slot): Set in_delay_slot. (sim_resume): Reset in_delay_slot after leaving code switch. * gencode.c (op tab): Call RAISE_EXCEPTION_IF_IN_DELAY_SLOT for all instructions not allowed in delay slots. Commited by Corinna Vinschen <vinschen@redhat.com> Introduce SH2a support. * interp.c: Change type of jump table to short. Add various macros. (sim_load): Save the bfd machine code. (sim_create_inferior): Ditto. (union saved_state_type): Add tbr, ibnr and ibcr registers. Move bfd_mach to end of struct. Add regstack pointer. (init_dsp): Don't swap contents of sh_dsp_table any more. Instead use it directly in its own switch statement. Allocate space for 512 register banks. (do_long_move_insn): New function. (do_blog_insn): Ditto. (trap): Use trap #13 and trap #14 to set ibnr and ibcr. * gencode.c: Move movx/movy insns into separate switch statement. (op tab): Add sh2a insns. Reject instructions that are disabled on that chip. (gensim_caselist): Generate default case here instead of in caller. (gensim): Generate two separate switch statements. Call gensim_caselist once for each (for movsxy_tab and for tab). Add tokens for r15 and multiple regs. (conflict_warn, warn_conflicts): Add for debugging.
* * cpu.[ch], arch.[ch], decode.[ch]: Regenerated.Richard Sandiford2004-08-2710-9/+14
| | | | * cpuall.h, model.c, sem.c: Regenerated.
* 2004-08-18 Chris Demetriou <cgd@broadcom.com>Chris Demetriou2004-08-193-2/+7
| | | | | * configure.in (mipsisa64sb1*-*-*): Add mips3d to sim_igen_machine. * configure: Regenerate.
* * gencode.c (tab): For shad snd shld, fix result forJoern Rennecke2004-08-182-2/+7
| | | | (op1 < 0 && shift_amount == 0).
* * Makefile.in (GDB_INCLUDES): Remove bogus reference to mmalloc.Nathanael Nerode2004-08-052-1/+5
|
* 2004-08-04 Andrew Cagney <cagney@gnu.org>Andrew Cagney2004-08-055-75/+1318
| | | | | | | | | | | | | | 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-04 Andrew Cagney <cagney@gnu.org>Andrew Cagney2004-08-043-90/+42
| | | | * Back out accidently committed change.
* gdb/ChangeLog:Jim Blandy2004-08-043-38/+105
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Index: common/ChangeLogAndrew Cagney2004-07-264-4/+14
| | | | | | | | | | | | | 2004-07-26 Andrew Cagney <cagney@gnu.org> Problem from Olaf Hering <olh@suse.de>. * Makefile.in (install-man, installdirs): Add DESTDIR prefix. Index: ppc/ChangeLog 2004-07-26 Andrew Cagney <cagney@gnu.org> Problem from Olaf Hering <olh@suse.de>. * Makefile.in (install, installdirs): Add DESTDIR.
* * tree.c (parse_integer_property): Comment typo fix.Ben Elliston2004-07-112-1/+5
|
* * hw-tree.c (parse_integer_property): Typo fix in comments.Ben Elliston2004-07-103-3/+8
| | | | * sim-options.c (sim_args_command): Likewise.
* * Makefile.in: Update all dependency information.Jim Blandy2004-07-062-92/+343
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (BASICS_H, CPU_H, IDECODE_H, PSIM_H, REGISTERS_H, DEVICE_TABLE_H) (EMUL_GENERIC_H): Values updated. (ACCONFIG_H, ALTIVEC_EXPRESSION_H, ALTIVEC_REGISTERS_H) (ANSIDECL_H, BFD_H, BITS_H, CAP_H, COMMON_SIM_BASE_H) (COMMON_SIM_BASICS_H, COMMON_SIM_FPU_H, COMMON_SIM_INLINE_H) (COMMON_SIM_SIGNAL_H, CONFIG_H, COREFILE_H, COREFILE_N_H, DEBUG_H) (DEFINES_H, DEFS_H, DEVICE_H, E500_EXPRESSION_H, E500_REGISTERS_H) (EMUL_BUGAPI_H, EMUL_CHIRP_H, EMUL_NETBSD_H, EMUL_UNIX_H, EVENTS_H) (FILTER_FILENAME_H, FILTER_H, GDB_CALLBACK_H, GDB_REMOTE_SIM_H) (GEN_ICACHE_H, GEN_IDECODE_H, GEN_ITABLE_H, GEN_MODEL_H) (GEN_SEMANTICS_H, GEN_SUPPORT_H, HW_CPU_H, HW_H, HW_PHB_H) (ICACHE_H, IDECODE_BRANCH_H, IDECODE_EXPRESSION_H) (IDECODE_FIELDS_H, IGEN_H, INLINE_H, INTERRUPTS_H, ITABLE_H) (LD_CACHE_H, LD_DECODE_H, LD_INSN_H, LF_H, MISC_H, MODEL_H, MON_H) (OPTIONS_H, OS_EMUL_H, PK_H, PPC_CONFIG_H, SEMANTICS_H) (SIM_CALLBACKS_H, SIM_ENDIAN_H, SIM_ENDIAN_N_H, SIM_MAIN_H) (SPREG_H, STD_CONFIG_H, SUPPORT_H, TABLE_H, TARG_VALS_H, TCONFIG_H) (TREE_H, VM_H, VM_N_H, WORDS_H): New variables. (callback.o, cap.o, corefile.o, debug.o, device.o, device_table.o) (dgen.o, emul_bugapi.o, emul_chirp.o, emul_netbsd.o, emul_unix.o) (events.o, filter.o, filter_filename.o, filter_host.o) (gen-icache.o, gen-idecode.o, gen-itable.o, gen-model.o) (gen-semantics.o, gen-support.o, hw_core.o, hw_cpu.o, hw_disk.o) (hw_htab.o, hw_init.o, hw_phb.o, hw_register.o, icache.o) (idecode.o, igen.o, interrupts.o, itable.o, ld-cache.o) (ld-decode.o, ld-insn.o, lf.o, main.o, misc.o, model.o, mon.o) (options.o, os_emul.o, pk_disklabel.o, psim.o, registers.o) (semantics.o, sim-endian.o, sim-fpu.o, sim_calls.o, spreg.o) (support.o, table.o, targ-map.o, tree.o, vm.o): Update dependencies.
* Index: mn10200/ChangeLogAndrew Cagney2004-06-298-10/+27
| | | | | | | | | | | | | | | | | | | | | | 2004-06-28 Andrew Cagney <cagney@gnu.org> * interp.c: Rename ui_loop_hook to deprecated_ui_loop_hook. Index: d10v/ChangeLog 2004-06-28 Andrew Cagney <cagney@gnu.org> * interp.c (sim_resume): Rename ui_loop_hook to deprecated_ui_loop_hook. Index: arm/ChangeLog 2004-06-28 Andrew Cagney <cagney@gnu.org> * armemu.c: Rename ui_loop_hook to deprecated_ui_loop_hook. Index: common/ChangeLog 2004-06-28 Andrew Cagney <cagney@gnu.org> * run.c: Rename ui_loop_hook to deprecated_ui_loop_hook.
* sim/h8300/ChangeLog:Alexandre Oliva2004-06-285-69/+37
| | | | | | | | | | | | | | 2003-07-23 Richard Sandiford <rsandifo@redhat.com> * compile.c (sim_resume): Make sure that dst.reg refers to the right register byte in mova/sz.l @(dd,RnL),ERn. 2003-07-21 Richard Sandiford <rsandifo@redhat.com> * compile.c (sim_resume): Zero-extend immediate to muls, mulsu, mulxs, divs and divxs. sim/testsuite/sim/h8300/ChangeLog: 2003-07-22 Michael Snyder <msnyder@redhat.com> * mul.s: Don't try to use negative immediate (it's always unsigned). * div.s: Ditto.
* * compile.c (sim_load): Update sd->memory_size.Alexandre Oliva2004-06-282-0/+5
|
* * e500_registers.h (EVR): Cast the 32-bit value of the GPR to anJim Blandy2004-06-282-2/+10
| | | | unsigned type before or-ing it with a 64-bit value.
* * callback.c (os_shutdown): Fix bug in last change: actuallyJoern Rennecke2004-06-272-0/+6
| | | | mark file descriptors as available on startup.
* 2000-08-07 Graham Stott <grahams@cygnus.co.uk>Alexandre Oliva2004-06-267-1/+3727
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * am33-2.igen (fmadd, fmsub, fmnadd, fmnsub): Correct typo. 2000-05-29 Alexandre Oliva <aoliva@cygnus.com> * interp.c (fpu_disabled_exception, fpu_unimp_exception, fpu_check_signal_exception): Take additional state arguments. Print exception type and call program_interrupt. Adjust callers. (fpu_rsqrt, fpu_cmp, fpu_add, fpu_sub, fpu_mul, fpu_div, fpu_fmadd, fpu_fmsub, fpu_fnmadd, fpu_fnmsub): Take additional arguments. * mn10300_sim.h (fpu_disabled_exception, fpu_unimp_exception, fpu_check_signal_exception): Adjust prototypes. (fpu_rsqrt, fpu_cmp, fpu_add, fpu_sub, fpu_mul, fpu_div, fpu_fmadd, fpu_fmsub, fpu_fnmadd, fpu_fnmsub): Likewise. * am33-2.igen: Adjust calls. 2000-05-19 Alexandre Oliva <aoliva@cygnus.com> * op_utils.c (cmp2fcc): Moved... * interp.c: ... here. 2000-05-18 Alexandre Oliva <aoliva@cygnus.com> * am33-2.igen: Use `unsigned32', `signed32', `unsigned64' or `signed64' where type width is relevant. 2000-05-15 Alexandre Oliva <aoliva@cygnus.com> * mn10300_sim.h: Include sim-fpu.h. (FD2FPU, FPU2FD): Enclose the FD argument in parentheses. (fpu_check_signal_exception): Declare. (struct fp_prec_t, fp_single_prec, fp_double_prec): Likewise. (FP_SINGLE, FP_DOUBLE): Shorthands for fp_*_prec. (fpu_rsqrt, fpu_cmp, fpu_add, fpu_sub, fpu_mul, fpu_div, fpu_fmadd, fpu_fmsub, fpu_fnmadd, fpu_fnmsub): Declare. * interp.c (fpu_disabled_exception): Document. (fpu_unimp_exception): Likewise. (fpu_check_signal_exception): Define. (reg2val_32, round_32, val2reg_32, fp_single_prec): Likewise. (reg2val_64, round_64, val2reg_64, fp_double_prec): Likewise. (REG2VAL, ROUND, VAL2REG): Define shorthands. (fpu_status_ok): Define. (fpu_rsqrt, fpu_cmp, fpu_add, fpu_sub, fpu_mul, fpu_div, fpu_fmadd, fpu_fmsub, fpu_fnmadd, fpu_fnmsub): Define. * am33-2.igen (frsqrt, fcmp, fadd, fsub, fmul, fdiv, fmadd, fmsub, fnmadd, fnmsub): Use new functions. 2000-04-27 Alexandre Oliva <aoliva@cygnus.com> * interp.c (sim_create_inferior): Set PSW bit to enable FP insns if architecture is AM33/2.0. * am33.igen: Include am33-2.igen. 2000-04-23 Alexandre Oliva <aoliva@cygnus.com> * mn10300.igen (movm, call, ret, retf): Check for am33_2 too. * am33.igen (movm): Likewise. 2000-04-19 Alexandre Oliva <aoliva@cygnus.com> * am33.igen: Added `*am33_2' to some instructions that were missing it. 2000-04-07 Alexandre Oliva <aoliva@cygnus.com> * am33-2.igen: New file. All insns implemented, but FP flags are only set for fcmp, exceptional conditions are not handled yet. * Makefile.in (IGEN_INSN): Added am33-2.igen. (tmp-igen): Added -M am33_2. * mn10300.igen, am33.igen: Added `*am33_2' to all insns. * gencode.c: Support FMT_D3. * mn10300_sim.h (dword): New type. (struct _state): Added fpregs. (REG_FPCR, FPCR): New define. All assorted bitmaps. (XS2FS, AS2FS, Xf2FD): New macros. (FS2FPU, FD2FPU, FPU2FS, FPU2FD): Likewise. (load_dword, store_dword): New functions or macros. (u642dw, dw2u64): New functions. (fpu_disabled_exception, fpu_unimp_exception): Declared. * interp.c (fpu_disabled_exception): Defined; no actual implementation. (fpu_unimp_exception): Likewise. * op_utils.c (cmp2fcc): New function.
* * interp.c, mn10300_sim.h, op_utils.c: Convert function prototypesAlexandre Oliva2004-06-264-81/+66
| | | | and definitions to ISO C.
OpenPOWER on IntegriCloud