Frank Ch. Eigler
764f1408a3
* mmap support for common simulators
...
2001-03-16 Frank Ch. Eigler <fche@redhat.com>
Add support for mmap-based memory regions.
* sim-memopt.c (mmap_next_fd): New global.
(sim_memory_init): Reinitialize it.
(OPTION_MEMORY_MAPFILE, memory_option_handler): Support new
"--memory-mapfile FILE" option. Check for some errors.
(do_memopt_add): Conditionally do mmap instead of malloc for
backing store of simulated memory. Check for more errors.
(do_simopt_delete, sim_memory_uninstall): Corresponding cleanup.
* sim-memopt.h (munmap_length): New member of _sim_memopt.
* configure.in: Look for mmap/fstat related functions and headers.
* config.in, configure: Regenerated.
2001-03-20 17:13:39 +00:00
Frank Ch. Eigler
35c209920b
* tweak
...
2001-03-15 Frank Ch. Eigler <fche@redhat.com>
* sim-core.c (sim_core_map_attach): Correct overlap-related
error messages.
2001-03-16 03:20:26 +00:00
Andrew Cagney
1e6cd1593b
Link with libintl, needed by libopcodes.
2001-03-14 21:51:31 +00:00
Michael Meissner
f6bb7a3bb0
Remove reference to alloca-conf.h
2001-03-07 20:19:41 +00:00
Nick Clifton
4f3c3dbb37
Fix BLX(1) for Thumb
2001-03-06 22:33:47 +00:00
Andrew Cagney
c663138840
Fixes for NetBSD 1.5. NetBSD has been renumbering/renaming its
...
SYS_* interfaces.
2001-03-05 16:22:45 +00:00
Dave Brolley
55552082e8
2001-03-05 Dave Brolley <brolley
...
arch.c: Regenerate.
arch.h: Regenerate.
cpu.c: Regenerate.
cpu.h: Regenerate.
cpuall.h: Regenerate.
cpux.c: Regenerate.
cpux.h: Regenerate.
decode.c: Regenerate.
decode.h: Regenerate.
decodex.c: Regenerate.
decodex.h: Regenerate.
model.c: Regenerate.
modelx.c: Regenerate.
sem-switch.c: Regenerate.
sem.c: Regenerate.
semx-switch.c: Regenerate.
2001-03-05 16:05:38 +00:00
Dave Brolley
52fa932eab
2001-03-05 Dave Brolley <brolley@
...
* arch.c: Regenerate.
* arch.h: Regenerate.
* cpu.c: Regenerate.
* cpu.h: Regenerate.
* cpuall.h: Regenerate.
* decode.c: Regenerate.
* decode.h: Regenerate.
* model.c: Regenerate.
* sem-switch.c: Regenerate.
* sem.c: Regenerate.
2001-03-05 16:00:17 +00:00
Nick Clifton
917bca4f21
Add support for disabling alignment checks when performing GDB interface
...
calls or SWI emulaiton routines. (Alignment checking code has not yet been
contributed).
2001-02-28 01:04:24 +00:00
Ben Elliston
fb891446b7
2001-02-23 Ben Elliston <bje@redhat.com>
...
* sim-main.h (ENGINE_ISSUE_PREFIX_HOOK): Only define if not
already defined elsewhere.
2001-02-24 02:43:11 +00:00
Ben Elliston
01816cd804
2001-02-22 Ben Elliston <bje@redhat.com>
...
* sim-trace.h (TRACE_VPU_IDX): Add.
(TRACE_vpu): Define.
(WITH_TRACE_VPU_P): Likewise.
(TRACE_VPU_P): Likewise.
* sim-trace.c (OPTION_TRACE_VPU): Define.
(trace_options): Add --trace-vpu.
(trace_option_handler): Handle OPTION_TRACE_VPU.
(trace_option_handler): Include VPU tracing in --trace-semantics.
(trace_idx_to_str): Handle TRACE_VPU_IDX.
2001-02-22 20:47:49 +00:00
Ben Elliston
44a9331cdf
2001-02-21 Ben Elliston <bje@redhat.com>
...
* sim-trace.h (TRACE_BRANCH_INPUT1): New macro.
(TRACE_BRANCH_INPUT2): Likewise.
2001-02-21 21:35:41 +00:00
Ben Elliston
8030f85769
2001-02-19 Ben Elliston <bje@redhat.com>
...
* sim-main.h (sim_monitor): Return an int.
* interp.c (sim_monitor): Add return values.
(signal_exception): Handle error conditions from sim_monitor.
2001-02-19 21:57:03 +00:00
Nick Clifton
2ef048fc9f
Remove Prefetch abort for breakpoints. Instead set the state to RESUME.
2001-02-16 22:04:22 +00:00
Ben Elliston
9afc4bbfbb
2001-02-16 Ben Elliston <bje@redhat.com>
...
* MAINTAINERS: Add myself for common portions.
2001-02-15 23:03:41 +00:00
Ben Elliston
c43ad8eb1e
* profiling bug fixes.
...
2001-02-09 Ben Elliston <bje@redhat.com>
* (profile_print_pc): Write header out in target byte order.
2001-02-09 Ben Elliston <bje@redhat.com>
* sim-profile.c (profile_pc_init): Correct bug in loop logic when
adjusting the pc shift value.
2001-02-15 21:14:40 +00:00
Nick Clifton
44e23e575b
Add code to preserve processor mode when a prefetch
...
abort is signalled after processing a breakpoint.
2001-02-15 02:38:15 +00:00
Nick Clifton
5f7d0a33db
Reset processor into ARM mode for any machine type except the early ARMs.
2001-02-14 22:21:20 +00:00
Nick Clifton
94ab9d7b9e
remove spurious whitespace
2001-02-14 03:55:57 +00:00
Nick Clifton
1e5d4e465c
Prevent Aborts from happening whilst emulating a SWI
2001-02-14 03:50:46 +00:00
Nick Clifton
179ae6ea64
Fix definition of NEGBRANCH
2001-02-12 23:29:49 +00:00
Chris Demetriou
56b48a7a9b
2001-02-08 Ben Elliston <bje@redhat.com>
...
* sim-main.c (load_memory): Pass cia to sim_core_read* functions.
(store_memory): Likewise, pass cia to sim_core_write*.
2001-02-08 05:22:04 +00:00
DJ Delorie
ddcd33c11d
* i960-desc.c: Update all the A macro definitions to the new
...
stdc-sensitive versions that cgen would have used.
2001-02-07 01:16:05 +00:00
Nick Clifton
fae0bf59e6
Add parentheses ready for future conbtribution
2001-02-01 20:56:35 +00:00
Nick Clifton
dda308f5fd
Update base address register after restoring register bank.
2001-02-01 20:39:51 +00:00
Jonathan Larmour
42acc51e30
* Makefile.in (gencode): Link with libopcodes in build tree rather
...
than building source files from there.
2001-02-01 06:56:29 +00:00
Nick Clifton
88694af3f9
Detect installation of SWI vector by running program as well as loading program.
2001-02-01 00:14:40 +00:00
Alexandre Oliva
de0492b6fb
* interp.c (sim_create_inferior): Record program arguments for
...
later inspection by the trap handler.
(count_argc): New function.
(prog_argv): Declare static.
(sim_write): Declare.
(trap): Implement argc, argnlen and argn system calls. Do not
abort on unknown system calls--simply return -1.
* syscall.h (SYS_argc, SYS_argnlen, SYS_argn): Define.
2001-01-30 23:03:56 +00:00
Alexandre Oliva
554064594b
* interp.c (trap): Implement time.
2001-01-24 13:17:01 +00:00
Geoffrey Keating
428e1889bc
* emul_netbsd.c (do_open): Translate the flag parameter to the
...
open syscall to the numbers supported by the host.
2001-01-15 23:24:30 +00:00
Chris Demetriou
0b8c7076b5
* MAINTAINERS: Added self and Andrew for the mips sim.
2001-01-15 19:16:57 +00:00
Ben Elliston
badd2b1e70
* Tidy.
2001-01-15 00:23:00 +00:00
Frank Ch. Eigler
9397fcbf1c
* configury fix
...
[common/ChangeLog]
2001-01-12 Chris Demetriou <cgd@sibyte.com>
* aclocal.m4 (SIM_AC_OPTION_SCACHE): Properly
handle the case where a numeric value is supplied.
[eg. m32r/ChangeLog]
2001-01-12 Frank Ch. Eigler <fche@redhat.com>
* configure: Regenerated with sim_scache fix.
2001-01-12 18:51:28 +00:00
Ben Elliston
63fe103861
2001-01-06 Ben Elliston <bje@redhat.com>
...
* cgen.sh: Allow extrafiles to include the semantics files when
generating an ISA-specific decoder.
2001-01-05 04:36:09 +00:00
Alexandre Oliva
b6f6b44d62
* Make-common.in (sim-io.o): Depend on targ-vals.h.
2000-12-27 17:47:20 +00:00
Ben Elliston
ad8707b58d
2000-12-23 Ben Elliston <bje@redhat.com>
...
* cgen-trace.c (trace_result): Handle 'f' type operands; output
them to the trace stream using sim_fpu_printn_fpu. Include
"sim-fpu.h".
2000-12-23 21:52:14 +00:00
Ben Elliston
b94c096644
2000-12-15 Ben Elliston <bje@redhat.com>
...
* sim-fpu.h (sim_fpu_printn_fpu): Declare.
* sim-fpu.c (print_bits): Add digits parameter. Print only as many
trailing digits as specified (-1 to print all digits).
(sim_fpu_print_fpu): New wrapper around sim_fpu_printn_fpu.
(sim_fpu_printn_fpu): Rename from sim_fpu_print_fpu; update calls
to print_bits ().
2000-12-23 11:51:04 +00:00
Nick Clifton
ac1c9d3aad
Fix test for StoreDouble Instruction.
2000-12-19 00:58:04 +00:00
Ben Elliston
fd5d712edf
2000-12-13 Ben Elliston <bje@redhat.com>
...
* cgen.sh: Set prefix/PREFIX (append ISA if applicable). Factor
sed expressions into $sedscript, substituting @prefix@/@PREFIX@.
(defs): New action.
2000-12-13 22:55:54 +00:00
Geoffrey Keating
4c15ccf7af
In sim/common:
...
* sim-endian.h: Don't have parameters on macro definitions which
are simply renaming functions, to permit use of XCONCAT2 in both
the macro name and the arguments in a use of such a definition.
In sim/ppc:
* sim-endian.h: Don't have parameters on macro definitions which
are simply renaming functions, to permit use of XCONCAT2 in both
the macro name and the arguments in a use of such a definition.
2000-12-12 20:54:13 +00:00
Ben Elliston
0d277f51d0
2000-12-11 Ben Elliston <bje@redhat.com>
...
* cgen-ops.h (SUBWORDDFDI): New function.
2000-12-11 07:14:34 +00:00
Nick Clifton
9a6b6a66b7
Add 0x91 as an FPE SWI.
2000-12-11 03:08:17 +00:00
Michael Chastain
7c721b2a2a
2000-11-15 Jim Blandy <jimb@redhat.com>
...
* sim_calls.c: Doc fix.
(sim_fetch_register, sim_store_register): Call
gdbarch_register_name directly, instead of going through
REGISTER_NAME macro.
2000-12-08 01:52:41 +00:00
Nick Clifton
df38a86eec
oops - remove redundant prototype introduced in previous delta
2000-12-08 01:39:48 +00:00
Nick Clifton
760a7bbec5
Add emulation of double word load and store instructions.
2000-12-08 01:38:47 +00:00
Ben Elliston
c79688eb6e
2000-12-05 Ben Elliston <bje@redhat.com>
...
* Make-common.in (cgen-defs): New target.
(cgen-decode): Pass $(EXTRAFILES).
2000-12-05 00:56:44 +00:00
Ben Elliston
bb4e03e555
2000-12-05 Ben Elliston <bje@redhat.com>
...
* genmloop.sh: Use @prefix@, not @cpu@ throughout. Add -prefix and
-outfile-suffix options.
2000-12-05 00:46:04 +00:00
Ben Elliston
6227bc851d
2000-12-04 Ben Elliston <bje@redhat.com>
...
* cgen-ops.h (SUBWORDSIQI): Mask off top bits.
(SUBWORDSIUQI): Likewise.
(SUBWORDDIHI): Likewise.
(SUBWORDDIQI): New function.
2000-12-04 04:05:45 +00:00
Ben Elliston
76440e4ba0
2000-12-04 Ben Elliston <bje@redhat.com>
...
* cgen-trace.c (disassemble_insn): Remove unused declaration.
* cgen-scache.c (scache_option_handler): Remove unused local var.
2000-12-04 00:57:57 +00:00
Nick Clifton
7f53bc3526
Suppress support of DEMON swi's in XScale mode.
2000-12-03 23:28:46 +00:00