D.Venkatasubramanian
d1360fb06a
Added Commandline Support.
...
2003-03-20 D.Venkatasubramanian <dvenkat@noida.hcltech.com>
* compile.c (cmdline_location): Added function to
return the location of 8-bit (256 locations) where the
Command Line arguments would be stored.
(decode): Added a TRAP to 0xcc for Commandline
processing using pseudo opcode O_SYS_CMDLINE.
(sim_resume): Added handling of O_SYS_CMDLINE Trap.
(sim_create_inferior): Setting a pointer to
Commandline Args array.
* inst.h: Added a new variable ptr_command_line for
storing pointer to Commandline array.
2003-03-20 06:00:25 +00:00
D.Venkatasubramanian
bf17422685
File I/O Support added.
...
2003-03-14 D.Venkatasubramanian <dvenkat@noida.hcltech.com>
* compile.c (decode): Added code for some more magic traps.
* compile.c (sim_resume): Added support for File I/O system
calls through callback to host_system.
System calls provided support for :
open, read, write, lseek, close, stat, fstat
Only basic support for stat and fstat.
2003-03-14 04:12:01 +00:00
Nick Clifton
0d9fd8f1d0
(SWIWrite0): Catch big-endian bug when printing characters
2003-03-02 10:28:29 +00:00
Stephane Carrez
9b9f7b3ccd
* Makefile.in (SIM_EXTRA_CFLAGS): Set WITH_TARGET_ADDRESS_BITSIZE
...
to 32 to support memory bank switching; temporarily use 32-bit for
WORD_BITSIZE to avoid a bug in sim-common.
2003-03-02 10:03:40 +00:00
Andrew Cagney
876fec0252
2003-03-01 Andrew Cagney <cagney@redhat.com>
...
* sim-engine.c (sim_engine_halt): If jmpbuf is invalid, abort.
(sim_engine_vabort): Ditto.
2003-03-01 20:54:22 +00:00
Stephane Carrez
00416c6ed6
* interp.c (sim_fetch_register): Only store a single byte for
...
1 byte registers.
2003-03-01 16:00:09 +00:00
Andrew Cagney
6b4a89357a
Index: arm/ChangeLog
...
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.
2003-02-27 23:26:34 +00:00
Andrew Cagney
dbd7cd63b9
Index: common/ChangeLog
...
2003-02-26 Andrew Cagney <cagney@redhat.com>
* sim-engine.h (sim_engine_abort): Add noreturn attribute.
(sim_engine_vabort): Ditto.
(sim_engine_halt, sim_engine_restart): Ditto.
Index: mn10300/ChangeLog
2003-02-26 Andrew Cagney <cagney@redhat.com>
* am33.igen: Call sim_engine_abort instead of abort.
2003-02-26 23:27:09 +00:00
David Carlton
bb6317d347
2003-02-26 David Carlton <carlton@math.stanford.edu>
...
* dv-mn103tim.c (read_special_timer6_reg): Add break after
empty default: label.
(write_special_timer6_reg): Ditto.
Update copyright.
2003-02-26 17:04:19 +00:00
Joern Rennecke
1bbd6057d5
cgen:
...
* cpu/sh64-media.cpu (make-mextr): Fix setting of count.
sim/sh64:
* sem-media-switch.c, sem-media.c: Regenerate.
2003-02-21 20:05:42 +00:00
Andrew Cagney
836cc9f493
Index: include/gdb/ChangeLog
...
2003-02-20 Andrew Cagney <ac131313@redhat.com>
* remote-sim.c (gdbsim_insert_breakpoint)
(gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
code.
Index: include/gdb/ChangeLog
2003-02-20 Andrew Cagney <ac131313@redhat.com>
* remote-sim.h (SIM_RC): Delete unused SIM_RC_UNKNOWN_BREAKPOINT,
SIM_RC_INSUFFICIENT_RESOURCES and SIM_RC_DUPLICATE_BREAKPOINT.
(sim_set_breakpoint, sim_clear_breakpoint): Delete declarations.
(sim_clear_all_breakpoints, sim_enable_breakpoint): Ditto.
(sim_enable_all_breakpoints, sim_disable_breakpoint): Ditto.
(sim_disable_all_breakpoints): Ditto.
Index: sim/common/ChangeLog
2003-02-20 Andrew Cagney <ac131313@redhat.com>
* Make-common.in (SIM_NEW_COMMON_OBJS): Remove sim-break.o
(sim-break_h): Delete macro.
(sim-break.o): Delete rule.
* sim-break.c: Delete file.
* sim-break.h: Delete file.
* sim-base.h [SIM_HAVE_BREAKPOINTS]: Don't include "sim-break.h".
(STATE_BREAKPOINTS): Delete macro.
(sim_state_base): Delete field breakpoints.
* sim-module.c (modules) [SIM_HAVE_BREAKPOINTS]: Don't add
sim_break_install to array.
2003-02-20 14:37:59 +00:00
Nick Clifton
2bc8946db8
Commit Sh2E addition
2003-02-06 10:42:33 +00:00
Kazu Hirata
ec38ce9947
* compile.c (init_pointers): Abort if wreg never gets initialized.
...
(sim_resume): Fix the handling of exts.w and extu.w.
2003-02-05 23:10:27 +00:00
Kazu Hirata
ad4cda162b
* compile.c (sim_resume): Fix the handling of bxor.
2003-02-01 03:00:14 +00:00
Michael Snyder
837fd61c26
Missed one...
2003-01-16 20:03:30 +00:00
Michael Snyder
a4f27e3e0a
2003-01-16 Michael Snyder <msnyder@redhat.com>
...
* compile.c: Change K&R function definitions to ISO.
(fetch): Make static, and eliminate unused parameter 'n'.
2003-01-16 19:54:35 +00:00
Chris Demetriou
d29e330fda
2003-01-14 Chris Demetriou <cgd@broadcom.com>
...
* mips.igen (LUXC1, SUXC1): New, for mipsV and mips64.
2003-01-14 19:01:41 +00:00
Chris Demetriou
a2353a08ac
2003-01-14 Chris Demetriou <cgd@broadcom.com>
...
* mips.igen (EI, DI): Remove.
2003-01-14 18:15:08 +00:00
Ben Elliston
45fdcabea2
2003-01-10 Ben Elliston <bje@redhat.com>
...
* README.Cygnus: Rename from this ..
* README: .. to this.
2003-01-10 05:27:17 +00:00
Ben Elliston
7f53bce4e3
* remove duplicated entry from 2002-05-17 on 2002-05-20.
...
* s/SWI_TARGET_SWITCHES/SIM_TARGET_SWITCHES/.
2003-01-10 04:51:58 +00:00
Kazu Hirata
45a15d6f78
* run.c (usage): Fix typos.
2003-01-08 17:18:29 +00:00
Chris Demetriou
805517776c
2003-01-05 Richard Sandiford <rsandifo@redhat.com>
...
* Makefile.in (tmp-run-multi): Fix mips16 filter.
2003-01-06 01:57:40 +00:00
Chris Demetriou
4c54fc26ed
2003-01-04 Richard Sandiford <rsandifo@redhat.com>
...
Andrew Cagney <ac131313@redhat.com>
Gavin Romig-Koch <gavin@redhat.com>
Graydon Hoare <graydon@redhat.com>
Aldy Hernandez <aldyh@redhat.com>
Dave Brolley <brolley@redhat.com>
Chris Demetriou <cgd@broadcom.com>
* configure.in (mips64vr*): Define TARGET_ENABLE_FR to 1.
(sim_mach_default): New variable.
(mips64vr-*-*, mips64vrel-*-*): New configurations.
Add a new simulator generator, MULTI.
* configure: Regenerate.
* Makefile.in (SIM_MULTI_OBJ, SIM_EXTRA_DISTCLEAN): New variables.
(multi-run.o): New dependency.
(SIM_MULTI_ALL, SIM_MULTI_IGEN_CONFIGS): New variables.
(tmp-mach-multi, tmp-itable-multi, tmp-run-multi): New rules.
(tmp-multi): Combine them.
(BUILT_SRC_FROM_MULTI): New variable. Depend on tmp-multi.
(clean-extra): Remove sources in BUILT_SRC_FROM_MULTI.
(distclean-extra): New rule.
* sim-main.h: Include bfd.h.
(MIPS_MACH): New macro.
* mips.igen (vr4120, vr5400, vr5500): New models.
(clo, clz, dclo, dclz, madd, maddu, msub, msub, mul): Add *vr5500.
* vr.igen: Replace with new version.
2003-01-05 07:56:59 +00:00
Chris Demetriou
e6c674b896
2003-01-04 Chris Demetriou <cgd@broadcom.com>
...
* configure.in: Use SIM_AC_OPTION_RESERVED_BITS(1).
* configure: Regenerate.
2003-01-05 06:13:51 +00:00
Chris Demetriou
28f50ac815
2002-12-31 Chris Demetriou <cgd@broadcom.com>
...
* sim-main.h (check_branch_bug, mark_branch_bug): Remove.
* mips.igen: Remove all invocations of check_branch_bug and
mark_branch_bug.
2002-12-31 21:31:32 +00:00
Kazu Hirata
d0fe2f7e74
* compile.c: Fix formatting.
...
* inst.h: Likewise.
2002-12-26 05:44:46 +00:00
Doug Evans
574654558a
* arch.c,arch.h,cpuall.h: Regenerate.
...
* cpu.c,cpu.h,decode.c,decode.h,model.c,sem-switch.c,sem.c: Regenerate.
* cpux.c,cpux.h,decodex.c,decodex.h,modelx.c,semx-switch.c: Regenerate.
2002-12-20 02:26:35 +00:00
Chris Demetriou
5071ffe6bf
2002-12-16 Chris Demetriou <cgd@broadcom.com>
...
* tconfig.in: Include "gdb/callback.h" and "gdb/remote-sim.h".
2002-12-17 07:27:53 +00:00
Andrew Cagney
0da2b66558
2002-11-30 Andrew Cagney <cagney@redhat.com>
...
* simops.c: Use int, 1, 0 instead of boolean, true and false.
* sim-main.h: Ditto.
2002-11-30 18:01:30 +00:00
Andrew Cagney
6c0a25e9f8
2002-11-28 Andrew Cagney <cagney@redhat.com>
...
* sim-main.h: Only include "idecode.h" once.
* Makefile.in (SIM_EXTRA_DEPS): Define.
2002-11-28 18:08:26 +00:00
Chris Demetriou
127a77fee0
2002-11-27 Richard Sandiford <rsandifo@redhat.com>
...
* sim-fpu.c (sim_fpu_inv): Use sim_fpu_div.
2002-11-28 01:32:03 +00:00
Andrew Cagney
b85e4829fa
2002-11-22 Andrew Cagney <ac131313@redhat.com>
...
* dv-core.c: Update copyright. sim/common contributed to the FSF.
* dv-glue.c, dv-pal.c, hw-base.c, hw-base.h, hw-device.c: Ditto.
* hw-device.h, hw-handles.c, hw-handles.h: Ditto.
* hw-instances.c, hw-instances.h, hw-properties.c: Ditto.
* hw-properties.h, hw-tree.c, hw-tree.h, sim-alu.h: Ditto.
* sim-basics.h, sim-bits.c, sim-bits.h, sim-config.c: Ditto.
* sim-config.h, sim-core.c, sim-core.h, sim-endian.c: Ditto.
* sim-endian.h, sim-events.c, sim-events.h, sim-inline.c: Ditto.
* sim-inline.h, sim-io.c, sim-io.h, sim-n-bits.h: Ditto.
* sim-n-core.h, sim-n-endian.h, sim-types.h: Ditto.
2002-11-23 01:12:05 +00:00
Andrew Cagney
1fdb3c684d
2002-11-22 Andrew Cagney <cagney@redhat.com>
...
* gen.c (name_cmp): Rename format_name_cmp.
(insn_list_insert): When a merge, compare the format name and
instruction name. Add trace messages.
2002-11-22 23:20:46 +00:00
Andrew Cagney
4e0bf4c4d0
2002-11-21 Andrew Cagney <ac131313@redhat.com>
...
* filter.c: Re-indent.
* filter.h, filter_host.h, gen-engine.c, gen-engine.h: Ditto.
* gen-icache.c, gen-icache.h, gen-idecode.c: Ditto.
* gen-idecode.h, gen-itable.c, gen-itable.h: Ditto.
* gen-model.c, gen-model.h, gen-semantics.c: Ditto.
* gen-semantics.h, gen-support.c, gen-support.h: Ditto.
* gen.c, gen.h, igen.c, igen.h, ld-cache.c, ld-cache.h: Ditto.
* ld-decode.c, ld-decode.h, ld-insn.c, ld-insn.h, lf.c: Ditto.
* lf.h, misc.c, misc.h, table.c, table.h: Ditto.
2002-11-22 04:20:49 +00:00
Andrew Cagney
feaee4bdbb
2002-11-21 Andrew Cagney <ac131313@redhat.com>
...
* Makefile.in: Update copyright. IGEN contributed to the FSF.
* filter.c, filter.h, filter_host.c, filter_host.h: Ditto.
* gen-engine.c, gen-engine.h, gen-icache.c, gen-icache.h: Ditto.
* gen-idecode.c, gen-idecode.h, gen-itable.c: Ditto.
* gen-itable.h, gen-model.c, gen-model.h, gen-semantics.c: Ditto.
* gen-semantics.h, gen-support.c, gen-support.h, gen.c: Ditto.
* gen.h, igen.c, igen.h, ld-cache.c, ld-cache.h: Ditto.
* ld-decode.c, ld-decode.h, ld-insn.c, ld-insn.h, lf.c: Ditto.
* lf.h, misc.c, misc.h, table.c, table.h: Ditto.
2002-11-22 04:09:40 +00:00
Andrew Cagney
d25b15536c
Index: common/ChangeLog
...
2002-11-13 Andrew Cagney <cagney@redhat.com>
* run.c (main): Remove SIM_HAVE_ENVIRONMENT from #endif.
Index: d10v/ChangeLog
2002-11-13 Andrew Cagney <cagney@redhat.com>
* simops.c: Include <string.h>.
2002-11-14 02:54:14 +00:00
Chris Demetriou
ac835424b5
2002-11-06 Richard Sandiford <rsandifo@redhat.com>
...
* gen-engine.c (print_engine_issue_prefix_hook): Don't add the
global prefix to ENGINE_ISSUE_PREFIX_HOOK.
(print_engine_issue_postfix_hook): Likewise ENGINE_ISSUE_POSTFIX_HOOK.
2002-11-06 18:41:09 +00:00
Chris Demetriou
d690312feb
2002-11-06 Richard Sandiford <rsandifo@redhat.com>
...
* Make-common.in (SIM_EXTRA_DISTCLEAN): New macro.
(distclean): Depend on it.
2002-11-06 18:40:25 +00:00
Alan Modra
7c3e3b337e
* cgen-trace.h: Test __BFD_H_SEEN__ rather than BFD_VERSION.
2002-10-14 10:55:39 +00:00
Joern Rennecke
fd8f4948fe
gcc uses trap 33 for profiling, but the simulator didn't support it.
...
This patch fixes the gcc.dg/nest.c failures for sh-elf.
Fri Oct 11 16:22:28 2002 J"orn Rennecke <joern.rennecke@superh.com>
* interp.c (trap): Return int. Take extra parameter for address
of the trap instruction. Changed all callers.
Add case 33 for profiling.
* gencode.c (trapa): Handle trap 33 using the trap function.
Add read of vector for generic traps.
2002-10-11 15:31:28 +00:00
Jim Wilson
30458d39d6
Fix handling of v850e bit-twiddle instructions.
...
* simops.c (OP_E6077E0): And op1 with 7 after reading register, not
before.
(BIT_CHANGE_OP): Likewise.
2002-09-30 20:11:08 +00:00
Andrew Cagney
058f270dea
Add support for -m option. Fix PR gdb/433.
2002-09-27 23:57:50 +00:00
Andrew Cagney
fe1198e63e
2002-09-27 Andrew Cagney <ac131313@redhat.com>
...
* hw_disk.c (hw_disk_init_address): Set device type to "block",
not "disk".
2002-09-27 21:02:14 +00:00
Jim Wilson
2e8162cedb
Fix bug in support for trap instruction.
...
* simops (OP_10007E0): Don't subtract 4 from PC.
2002-09-27 18:59:08 +00:00
Nick Clifton
5d6a173dca
Remove v850ea references
2002-09-19 07:52:02 +00:00
Dave Brolley
7ede505aef
2002-08-29 Dave Brolley <brolley@redhat.com>
...
* Make-common.in (CGEN_READ_SCM): Remove ../../cgen/stamp-cgen.
2002-08-29 19:27:52 +00:00
Nick Clifton
e551c2572e
Makefile.in: Add gen-zero-r0 option.
...
sim-main.h (GPR_SET, GPR_CLEAR): Define.
simops.c (OP_24007E0): Sign extend the imm9 operand of a mul instruction.
2002-08-29 16:59:20 +00:00
Dave Brolley
051b807af7
2002-08-28 Dave Brolley <brolley@redhat.com>
...
* gen-support.c (gen_support_h): Generate
'#define semantic_illegal <PREFIX>_semantic_illegal'.
2002-08-28 16:01:31 +00:00
Geoffrey Keating
a926ab2fb9
* MAINTAINERS: Change my mailing address.
2002-08-24 22:43:50 +00:00
Chris Demetriou
dff11de0d8
2002-08-22 Chris Demetriou <cgd@broadcom.com>
...
* compare_igen_models: New script.
2002-08-23 06:26:05 +00:00
Nick Clifton
2ec3c90a77
oops - fix typo in previous delta
2002-08-16 09:38:09 +00:00
Nick Clifton
c7a7b500fd
Catch and ignore SWIs of -1, they can be caused by an interrupted system
...
call being resumed by GDB.
2002-08-15 14:28:55 +00:00
Stephane Carrez
099d1b506b
* dv-m68hc11eepr.c (struct m68hc11eepr ): Use const char* for filename.
2002-08-13 09:01:16 +00:00
Stephane Carrez
31c7c532ab
* interp.c (sim_prepare_for_program): Look up the image for the
...
reset vector and set cpu_use_elf_start to 1 if not found.
(sim_open): Do not set cpu_use_elf_start.
2002-08-13 08:52:02 +00:00
Stephane Carrez
3976210097
* interp.c (sim_hw_configure): Return 1 for success.
...
(sim_prepare_for_program): Use the sim_hw_configure exit code to
return SIM_RC_FAIL.
2002-08-13 08:47:18 +00:00
Stephane Carrez
ca156d780d
Fix english and ChangeLog entry
2002-08-13 08:40:32 +00:00
Stephane Carrez
7230d80931
* dv-m68hc11.c (m68hc11cpu_io_read_buffer): Translate memory
...
bank window to some virtual address to read from extended memory.
(m68hc11cpu_io_write_buffer): Likewise for writing.
(attach_m68hc11_regs): When use_bank property is defined, attached
to the 68HC12 16K memory bank window.
* interp.c (sim_hw_configure): Create memory region for banked
memory.
2002-08-13 08:38:09 +00:00
Stephane Carrez
dcceded28a
* interp.c (sim_hw_configure): Connect port-X to cpu-write-port.
...
* dv-m68hc11.c (m68hc11cpu_ports): Add cpu-write-port input.
(m68hc11cpu_port_event): Handle CPU_WRITE_PORT event.
2002-08-13 08:10:45 +00:00
Stephane Carrez
abea9e28ea
* dv-m68hc11.c (m68hc11cpu_io_write): Fix to update IO mapping
...
when IO mapping changed, not when internal RAM mapping is changed.
2002-08-13 07:57:18 +00:00
Stephane Carrez
63f36def60
* m68hc11_sim.c (cpu_special): Handle call and rtc instructions.
...
* sim-main.h (M6812_CALL_INDIRECT): Add to enum.
(m6811_regs): Add page register.
(cpu_set_page, cpu_get_page): New macros.
(phys_to_virt): New function.
(cpu_get_indexed_operand_addr, cpu_return): Declare.
* gencode.c: Identify indirect addressing mode for call and fix daa.
(gen_function_entry): New param to tell if src8/dst8 locals are
necessary.
(gen_interpreter): Use it to avoid generation of unused variables.
* interp.c (sim_fetch_register): Allow to read page register; page
register, A, B and CCR are only 1 byte wide.
(sim_store_register): Likewise for writing.
2002-08-13 07:46:09 +00:00
Chris Demetriou
06e7837e0f
2002-07-30 Chris Demetriou <cgd@broadcom.com>
...
* mips.igen (do_load_double, do_store_double): New functions.
(LDC1, SDC1): Rename to...
(LDC1b, SDC1b): respectively.
(LDC1a, SDC1a): New instructions for MIPS II and MIPS32 support.
2002-07-31 05:44:54 +00:00
Michael Snyder
2265c243fc
2002-07-29 Michael Snyder <msnyder@redhat.com>
...
* cp1.c (fp_recip2): Modify initialization expression so that
GCC will recognize it as constant.
2002-07-29 23:17:10 +00:00
Andrey Volkov
a64bfde32f
Add dependences to Makefile.in and include sim-h8300 in compile.c
2002-07-29 17:01:57 +00:00
Andrew Cagney
de0a1e42d0
Delete w65 directory.
2002-07-18 00:05:41 +00:00
Andrew Cagney
75c4388adb
Index: sim/common/ChangeLog
...
2002-07-17 Andrew Cagney <cagney@redhat.com>
* run-sim.h: Add #ifdef RUN_SIM_H wrapper.
(sim_set_callbacks, sim_size, sim_trace)
(sim_set_trace, sim_set_profile_size, sim_kill): Declare. Moved
to here from "gdb/remote-sim.h".
Index: include/gdb/ChangeLog
2002-07-17 Andrew Cagney <cagney@redhat.com>
* remote-sim.h: Update copyright.
(sim_set_callbacks, sim_size, sim_trace)
(sim_set_trace, sim_set_profile_size, sim_kill): Delete. Moved to
"sim/common/run-sim.h".
2002-07-17 21:20:09 +00:00
Joern Rennecke
2f14585c74
include/gdb:
...
* sim-sh.h: Add enum constants for sh[1-4], sh3e, sh3?-dsp,
renumbering the sh-dsp registers to use distinct numbers.
sim/sh:
* Makefile.in (interp.o): Depend on $(srcroot)/include/gdb/sim-sh.h.
* interp.c: Include "gdb/sim-sh.h".
(sim_store_register, sim_fetch_register): Use constants defined there.
gdb:
* sh-tdep.c (sh_dsp_register_sim_regno): New function.
(sh_gdbarch_init): Use it for sh-dsp.
2002-07-17 18:43:28 +00:00
Andrew Cagney
7a3085c168
Obsolete fr30.
2002-07-16 14:30:14 +00:00
Andrew Cagney
39248af88f
* sim-resume.c (sim_resume): Add local variable sig_to_deliver to
...
avoid possible longjmp problems with automatic variable siggnal.
2002-07-15 16:13:12 +00:00
Andrew Cagney
076043f24e
From 2002-07-11 Momchil Velikov <velco@fadata.bg>:
...
* Make-common.in (installdirs): Make $(libdir) too, needed when
installing libsim.a.
2002-07-14 17:03:39 +00:00
Andrew Cagney
3fbeef0be8
Obsolete the d30v.
2002-07-14 00:15:20 +00:00
Nick Clifton
630ace253a
Add checks to catch invaliud XScale MIA, MIAPH and MIAxy instructions.
2002-07-05 14:12:01 +00:00
Elena Zannoni
6504452655
2002-06-24 Richard Sandiford <rsandifo@redhat.com>
...
* sh64.c: Update path of "callback.h".
2002-06-20 Elena Zannoni <ezannoni@redhat.com>
* sh64.c: Include correct file for register numbers.
2002-06-24 13:26:07 +00:00
Andrew Cagney
bf1024d698
* Makefile.in (INTL_SRC): Define.
...
(INTL_CFLAGS): Define.
(INTL_DIR): Define.
(STD_CFLAGS): Add INTL_CFLAGS.
2002-06-22 19:10:34 +00:00
Nick Clifton
7b77dec665
Set correct value for ADP_Stopped_RunTimeError
2002-06-21 06:58:36 +00:00
Chris Demetriou
a2f8b4f350
2002-06-18 Chris Demetriou <cgd@broadcom.com>
...
* mdmx.c (SD_): Delete.
(Unpredictable): Re-define, for now, to directly invoke
unpredictable_action().
(mdmx_acc_op): Fix error in .ob immediate handling.
2002-06-18 22:15:03 +00:00
Andrew Cagney
b4b6c9398a
* interp.c (sim_firmware_command): Initialize `address'.
2002-06-18 21:32:15 +00:00
Joern Rennecke
dc9feb5c97
* interp.c (sim_resume): Fix setting of bus error for
...
instruction fetch.
2002-06-18 15:54:44 +00:00
Andrew Cagney
2796179517
* hw-events.c (hw_event_queue_schedule): Initialize `dummy'.
2002-06-17 23:53:45 +00:00
Andrew Cagney
57af9c8bc0
* d10v_sim.h (SET_PSW_BIT): Add cast to avoid inverting an enum.
2002-06-17 23:37:43 +00:00
Andrew Cagney
d62274a397
* simops.c (trace_result): Fix printf formatting.
2002-06-17 21:49:05 +00:00
Andrew Cagney
bf96209254
* sim-memopt.c: Include <unistd.h>.
...
(do_memopt_add): Fix printf format.
* sim-events.c (sim_events_schedule): Initialize ``dummy''.
2002-06-17 21:45:55 +00:00
Andrew Cagney
78e731cd36
* gen.c (gen_entry_expand_opcode): Initialize ``value'' to -1 and
...
``t'' to NULL.
* igen.c (main): Add default case to switch.
* gen-icache.c (print_icache_extraction): Ditto.
2002-06-17 21:44:06 +00:00
Andrew Cagney
b74317ff8e
* Makefile.in (BUILD_CFLAGS): Remove -O0.
2002-06-17 21:03:40 +00:00
Elena Zannoni
47243d69f7
2002-06-17 Elena Zannoni <ezannoni@redhat.com>
...
* psim.c (psim_options): Don't choke when gdb invokes us with
the --architecture option, just ignore it.
2002-06-17 19:58:39 +00:00
Andrew Cagney
c8cca39f98
Import current --enable-gdb-build-warnings.
2002-06-16 16:33:35 +00:00
Andrew Cagney
3832c25c18
* Makefile.in (autoconf-changelog autoheader-changelog): Let name,
...
id, date and host to be overriden by NAME, ID, DATE and HOST
respectfully. Use ISO dates.
2002-06-16 15:59:34 +00:00
Tom Rix
3d2957e64e
Fix for transfers across segments.
2002-06-15 11:01:34 +00:00
Chris Demetriou
e7e8118132
2002-06-14 Chris Demetriou <cgd@broadcom.com>
...
Ed Satterthwaite <ehs@broadcom.com>
* mips3d.igen: New file which contains MIPS-3D ASE instructions.
* Makefile.in (IGEN_INCLUDE): Add mips3d.igen.
* mips.igen: Include mips3d.igen.
(mips3d): New model name for MIPS-3D ASE instructions.
(CVT.W.fmt): Don't use this instruction for word (source) format
instructions.
* cp1.c (fp_binary_r, fp_add_r, fp_mul_r, fpu_inv1, fpu_inv1_32)
(fpu_inv1_64, fp_recip1, fp_recip2, fpu_inv_sqrt1, fpu_inv_sqrt1_32)
(fpu_inv_sqrt1_64, fp_rsqrt1, fp_rsqrt2): New functions.
(NR_FRAC_GUARD, IMPLICIT_1): New macros.
* sim-main.h (fmt_pw, CompareAbs, AddR, MultiplyR, Recip1, Recip2)
(RSquareRoot1, RSquareRoot2): New macros.
(fp_add_r, fp_mul_r, fp_recip1, fp_recip2, fp_rsqrt1)
(fp_rsqrt2): New functions.
* configure.in: Add MIPS-3D support to mipsisa64 simulator.
* configure: Regenerate.
2002-06-14 18:49:09 +00:00
Chris Demetriou
eab549520a
fix attribution in previous changelog entry
2002-06-14 04:49:15 +00:00
Chris Demetriou
3a2b820ef3
2002-06-13 Chris Demetriou <cgd@broadcom.com>
...
* cp1.c (FP_PS_upper, FP_PS_lower, FP_PS_cat, FPQNaN_PS): New macros.
(value_fpr, store_fpr, fp_cmp, fp_unary, fp_binary, fp_mac)
(fp_inv_sqrt, fpu_format_name): Add paired-single support.
(convert): Note that this function is not used for paired-single
format conversions.
(ps_lower, ps_upper, pack_ps, convert_ps): New functions.
* mips.igen (FMT, MOVtf.fmt): Add paired-single support.
(check_fmt_p): Enable paired-single support.
(ALNV.PS, CVT.PS.S, CVT.S.PL, CVT.S.PU, PLL.PS, PLU.PS, PUL.PS)
(PUU.PS): New instructions.
(CVT.S.fmt): Don't use this instruction for paired-single format
destinations.
* sim-main.h (FP_formats): New value 'fmt_ps.'
(ps_lower, ps_upper, pack_ps, convert_ps): New prototypes.
(PSLower, PSUpper, PackPS, ConvertPS): New macros.
2002-06-14 04:44:11 +00:00
Chris Demetriou
d18ea9c2b8
2002-06-12 Chris Demetriou <cgd@broadcom.com>
...
* mips.igen: Fix formatting of function calls in
many FP operations.
2002-06-12 23:32:05 +00:00
Chris Demetriou
95fd5cee7d
2002-06-12 Chris Demetriou <cgd@broadcom.com>
...
* mips.igen (MOVN, MOVZ): Trace result.
(TNEI): Print "tnei" as the opcode name in traces.
(CEIL.W): Add disassembly string for traces.
(RSQRT.fmt): Make location of disassembly string consistent
with other instructions.
2002-06-12 23:20:56 +00:00
Chris Demetriou
4f0d55aeaa
2002-06-12 Chris Demetriou <cgd@broadcom.com>
...
* mips.igen (X): Delete unused function.
2002-06-12 22:22:41 +00:00
Andrew Cagney
26216b9822
Add the file include/gdb/sim-arm.h defining an enum that specifies the
...
register numbering used by the GDB<->SIM interface.
2002-06-12 21:19:43 +00:00
Aldy Hernandez
307041b752
missed 2 in 2002. oops.
2002-06-12 00:46:41 +00:00
Aldy Hernandez
7d7d930f7a
002-06-09 Aldy Hernandez <aldyh@redhat.com>
...
* sim-fpu.c (unpack_fpu): Initialize exponent for
sim_fpu_class_zero.
(i2fpu): Same.
(sim_fpu_sqrt): Same.
2002-06-12 00:46:11 +00:00
Andrew Cagney
3c25f8c7b0
Move include/callback.h and include/remote-sim.h to include/gdb/.
...
Update accordingly.
2002-06-09 15:45:54 +00:00
Andrew Cagney
983b727e70
Fix name of enum used in cast (sim_fetch_register, sim_store_register).
2002-06-08 22:19:56 +00:00
Chris Demetriou
f3c08b7e16
2002-06-07 Chris Demetriou <cgd@broadcom.com>
...
Ed Satterthwaite <ehs@broadcom.com>
* cp1.c (inner_mac, fp_mac, inner_rsqrt, fp_inv_sqrt)
(fp_rsqrt, fp_madd, fp_msub, fp_nmadd, fp_nmsub): New functions.
* sim-main.h (fp_rsqrt, fp_madd, fp_msub, fp_nmadd)
(fp_nmsub): New prototypes.
(RSquareRoot, MultiplyAdd, MultiplySub, NegMultiplyAdd)
(NegMultiplySub): New defines.
* mips.igen (RSQRT.fmt): Use RSquareRoot().
(MADD.D, MADD.S): Replace with...
(MADD.fmt): New instruction.
(MSUB.D, MSUB.S): Replace with...
(MSUB.fmt): New instruction.
(NMADD.D, NMADD.S): Replace with...
(NMADD.fmt): New instruction.
(NMSUB.D, MSUB.S): Replace with...
(NMSUB.fmt): New instruction.
2002-06-08 03:05:23 +00:00
Chris Demetriou
52714ff9ee
2002-06-07 Chris Demetriou <cgd@broadcom.com>
...
Ed Satterthwaite <ehs@broadcom.com>
* cp1.c: Fix more comment spelling and formatting.
(value_fcr, store_fcr): Use fenr_FS rather than hard-coding value.
(denorm_mode): New function.
(fpu_unary, fpu_binary): Round results after operation, collect
status from rounding operations, and update the FCSR.
(convert): Collect status from integer conversions and rounding
operations, and update the FCSR. Adjust NaN values that result
from conversions. Convert to use sim_io_eprintf rather than
fprintf, and remove some debugging code.
* cp1.h (fenr_FS): New define.
2002-06-07 22:55:49 +00:00