Ian Carmichael
eba01826a5
Sky Sanitization
29 years ago
Mark Alexander
e0e0fc765e
* interp.c (sim_monitor): Handle Densan monitor outbyte
and inbyte functions.
29 years ago
Felix Lee
76ef416550
* interp.c (sim_engine_run): msvc cpp barfs on #if (a==b!=c).
29 years ago
Andrew Cagney
9c8ec16d78
In nrun.c, look for sigaction & SA_RESTART. When both present,
install cntrl-c (SIGINT) handler with no SA_RESTART bit set.
29 years ago
Andrew Cagney
b17d2d1474
For MADD et.al. instructions sign extend 32 bit result assigned to a
register.
29 years ago
Jeff Law
255cbbf190
* configure.in (sim_igen_filter): Multi-sim vr5000 - vr5000 or
vr5400 with the vr5000 as the default.
29 years ago
Nick Clifton
61c550e0bd
Renamed v850eq -> v850ea
29 years ago
Nick Clifton
e317cee2ba
Parent directory renamed.
29 years ago
Felix Lee
06434f5f16
sanitization fixes. (files not mentioned, fences misspelled)
29 years ago
Jeff Law
23850e9219
* mips.igen (MSUB): Fix to work like MADD.
* gencode.c (MSUB): Similarly.
29 years ago
Andrew Cagney
c10ae9ad33
Test/fix d10v RTE instruction.
29 years ago
Andrew Cagney
c02ed6a8a3
For bfd, add vr5400 and vr5000 mips machine variants to list of machines.
For sim/mips, enable multi-sim support when mips64vr5400-elf is target.
For sim/igen, allow specification of a default machine (will need
more work later).
29 years ago
Andrew Cagney
38d0ccc27a
Fix typo, REP_S was refering to REP_E register.
Add test.
29 years ago
Andrew Cagney
bc6df23d14
For "trap", IBT and RIE exceptions, mask all PSW.SM. NB: Stepping
through an exception may not work correctly.
For GDB reads/writes to the control registers, ensure the cpu state is
updated correctly.
29 years ago
Nick Clifton
4098c12318
Reverrt breakpoint back to its old value.
29 years ago
Nick Clifton
22c39e1487
Reverrt BREAK value back to its old value
29 years ago
Doug Evans
62381069c9
* m32r-sim.h (MSPR_ADDR): New macro.
(m32r_mspr_device): Declare.
(struct _devicep: Define.
* m32r.c (m32r_mspr_device): New global.
(device_{io_{read,write}_buffer,error}): New functions.
* mem-ops.h (SETMEM*): Use sim_core_write_map, not read map.
* sim-if.c: Delete redundant inclusion of cpu-sim.h.
(sim_open): Attach device to handle MSPR register.
* sim-main.h (WITH_DEVICES): Define as 1.
Include cpu-sim.h.
29 years ago
Doug Evans
9bb68e2096
* Make-common.in (sim-core.o): Depend on $(sim_main_headers).
* sim-config.h (WITH_TREE_PROPERTIES): Define as 0.
* sim-config.c (sim_config): Replace WITH_DEVICES with
WITH_TREE_PROPERTIES.
29 years ago
Doug Evans
6e51f990a2
Regenerate configure files.
29 years ago
Andrew Cagney
7f48c9fe1d
Add DM (bit 4) to PSW. See 7-1 for more info.
Test.
29 years ago
Doug Evans
bbb9b83c5e
* configure.in (SIM_AC_OPTION_ENVIRONMENT): Call.
* configure: Regenerated.
29 years ago
Doug Evans
22469a10e8
* Make-common.in (SIM_ENVIRONMENT): New variable.
(CONFIG_CFLAGS): Add it.
* aclocal.m4 (SIM_AC_OPTION_ENVIRONMENT): Handle
--enable-sim-environment option.
* configure: Regenerated.
* sim-config.h (environment support): Rewrite.
* sim-config.c (current_environment): Define as enum, unconditionally.
(current_alignment): Define unconditionally.
(config_environment_to_a): Update.
(config_alignment_to_a): Fix type of argument. Define unconditionally.
(sim_config): Handle environment and alignment determination
unconditionally. Delete sanity checks of current_environment,
unnecessary.
(print_sim_config): Update.
* sim-options.c (STANDARD_OPTIONS enum): Add OPTION_ENVIRONMENT.
(standard_options): Add --environment.
(standard_option_handler): Likewise.
29 years ago
Nick Clifton
b65b4d8b06
Fixed sanitization,
Changed pattern for break insn.
29 years ago
Andrew Cagney
0931ce5aa7
Missing change log entry.
29 years ago
Andrew Cagney
aa49c64f3e
* d10v_sim.h (SEXT56): Define.
* simops.c (OP_4201): For "rac", sign extend 56 bit value before
it is shifted.
* d10v_sim.h (MAX32, MIN32, MASK32, MASK40): Re-define using
SIGNED64 macro.
29 years ago
Fred Fish
193e528cd4
* interp.c (sim_resume): Call do_2_short with LEFT_FIRST or
RIGHT_FIRST, as appropriate, instead of hardcoded ints that
don't match enum values.
PR 13496
29 years ago
Nick Clifton
89b993af84
Add support for Thumb target.
29 years ago
Andrew Cagney
9d9972a38a
For "sub", compute carry by comparing inputs.
Test.
29 years ago
Andrew Cagney
d294a657d5
For "msbu", subtract unsigned product from ACC,
Test.
29 years ago
Andrew Cagney
9420287ed2
For "mulxu", store unsigned product in ACC.
Test.
29 years ago
Andrew Cagney
e8b925f1fd
Test mv[tf]ac instructions.
29 years ago
Andrew Cagney
ae55807561
For MACU add unsigned multiply to accumulator.
Test.
29 years ago
Andrew Cagney
51b057f27b
For sub2w, compute carry according to negated addition rules.
Test.
29 years ago
Andrew Cagney
70ee56c585
Rework sim/common/sim-alu.h to differentiate between direcct
subtraction (involves borrow) and negated addition (involves carry).
Update d30v so that it uses this method. Add more tests.
29 years ago
Michael Meissner
97b25f990d
Delete sim_io_syscalls and sim_io_getstring
29 years ago
Michael Meissner
f2907f7425
Switch to using cb_syscall; Fix bug in cb_syscall write
29 years ago
Michael Meissner
465db791ec
Fix problems with d30v addc/subb
29 years ago
Doug Evans
1294727e84
* gennltvals.sh: Redo syscall support to allow sanitization.
* nltvals.def: Regenerated.
And add d30v sanitization.
29 years ago
Doug Evans
6be035091a
* Make-common.in (run.o): Depend on remote-sim.h.
(nrun.o,sim-hload.o,sim-hrw.o): Likewise.
(sim-io.o,sim-reason.o,sim-resume.o): Likewise.
29 years ago
Michael Meissner
ac07041378
Flush writes to stdout, stderr
29 years ago
Andrew Cagney
3885125c8e
* sim-io.c (sim_io_getstring): Delete unused len2. (sim_io_syscalls):
Ditto for sys_errno.
29 years ago
Doug Evans
6b8d6a1c49
Delete magic number FIXME.
29 years ago
Doug Evans
4123aca810
Undo last change. callback.h changed instead.
Plus:
* syscall.c (cb_syscall): Test CB_SYSCALL struct magic number.
29 years ago
Doug Evans
fc63d75ab3
* syscall.c (cb_syscall, cases stat, fstat): Handle -Wall -Werror.
29 years ago
Andrew Cagney
0d5d0d102d
Fix typo in format argument to sim_io_eprintf.
29 years ago
Andrew Cagney
35c246c9d7
Move MDMX instructions which are public knowledge from vr5400.igen
into mdmx.igen (MDMX is MMX on steroids). Keep the file secret.
29 years ago
Michael Meissner
69628a60ea
nuke lseek
29 years ago
Andrew Cagney
8c31916d92
sanitize-r5900 not v5900
29 years ago
Andrew Cagney
fd9223f9af
Strip ChangeLog of v850e information
29 years ago
Andrew Cagney
bd4ba9023a
Add file alu-n-tst.h
29 years ago