Mark Alexander
7d146b765c
* interf.c (sim_open): Use revamped memory_read, which makes
...
byte-swapping unnecessary. Add -sparclite-board option for
emulating RAM found on typical SPARClite boards. Print
error message for unrecognized option.
* erc32.c: Change RAM address and size from constants to variables,
to allow emulation of SPARClite board RAM.
(fetch_bytes, store_bytes): New helper functions for revamped
mememory_read and memory_write.
(memory_read, memory_write): Rewrite to store bytes in target
byte order instead of storing words in host byte order; this
greatly simplifies support of little-endian programs.
(get_mem_ptr): Remove unnecessary byte parameter.
(sis_memory_write, sis_memory_read): Store words in target
byte order instead of host byte order.
(byte_swap_words): Remove, no longer needed.
* sis.h ((byte_swap_words): Remove declaration, no longer needed.
(memory_read): Add new sz parameter.
* sis.c (run_sim): Use revamped memory_read, which makes
byte-swapping unnecessary.
* exec.c (dispatch_instruction): Use revamped memory_read, which
makes byte-swapping and double-word fetching unnecessary.
* func.c (sparclite_board): Declare new variable.
(get_regi): Handle little-endian data.
(bfd_load): Recognize little-endian SPARClite as having
little-endian data.
1998-06-02 22:43:46 +00:00
Nick Clifton
e3ace30a61
Allow simulator to work with Angel SWIs.
1998-06-02 22:23:52 +00:00
Ian Carmichael
4979c0a271
* Move the sanitize comments to the right place.
1998-06-02 21:04:49 +00:00
Ian Carmichael
8e3a0b599f
* SYSCALL now uses exception vector.
...
* SKY: New memory mapping rules for k1seg, k0seg.
* Modified Files: ChangeLog.sky ChangeLog interp.c sim-main.c
1998-06-02 19:53:36 +00:00
Jason Molenda
7d449b448b
Mon Jun 1 17:14:19 1998 Anthony Thompson (athompso@cambridge.arm.com)
...
* armos.c (ARMul_OSHandleSWI::SWI_Open): Handle special case
of ":tt" to catch stdin in addition to stdout.
(ARMul_OSHandleSWI::SWI_Seek): Return 0 or 1 to indicate failure
or success of lseek().
From PR 15839, modified a bit by me to appease my sense of style--but
not too much because I am lazy.
1998-06-02 00:18:31 +00:00
Frank Ch. Eigler
29b5afe9af
* Small TX39-only patch for ECC.
...
Mon Jun 1 18:18:26 1998 Frank Ch. Eigler <fche@cygnus.com>
* interp.c (decode_coproc): For TX39, add stub COP0 register #3 ,
to allay warnings.
1998-06-01 16:29:43 +00:00
Jeff Law
fb0ea2b9e1
* r5900.igen (rsqrt.s): Update based on r5900 ISA manual version 2.1.
...
(sqrt.s): Likewise.
1998-06-01 16:29:42 +00:00
Frank Ch. Eigler
22134bdb43
* sky test suite fixes.
...
Mon Jun 1 18:54:22 1998 Frank Ch. Eigler <fche@cygnus.com>
* lib/sim-defs.exp (sim_run): Add possible environment variable
list to simulator run.
start-sanitize-sky
* sim/sky/sky-defs.tcl: Use it.
* sim/sky/t-pke2.vif1out: Update to match recent word-precise
tracking table change in sim/mips/sky-pke.c.
* sim/sky/t-pke3.trc: Ditto.
* sim/sky/t-pke4.vif0expect: Ditto.
end-sanitize-sky
Mon May 18 10:37:47 1998 Doug Evans <devans@canuck.cygnus.com>
1998-06-01 16:09:52 +00:00
Andrew Cagney
df26156d68
Match mips*tx39 not mipst*tx39.
1998-05-29 01:42:20 +00:00
Andrew Cagney
451a9c0587
Pull in preliminary versions of hw instances and handles from ../ppc
1998-05-25 11:33:28 +00:00
Andrew Cagney
48f83b1a2e
Make hw-main.h the main header file for H/W devices. Like sim-main.h
...
Update dv-*.c
Replace *_callback with more correct. *_method. Update dv-*.c
1998-05-25 11:06:29 +00:00
Andrew Cagney
c14db36dbb
Add files hw-alloc.[hc] (mising from last CI)
...
Move set_* macro's from hw-base to hw-device.
1998-05-25 08:50:22 +00:00
Andrew Cagney
325a1ba876
Initialize/destory hw-properties within the hw-device.
1998-05-25 08:29:05 +00:00
Andrew Cagney
69be0d4cb8
Split out hw-alloc code. Add constructor and destructor for hw-alloc.
1998-05-25 08:18:03 +00:00
Andrew Cagney
39e953a722
Split out hw-event code. Clean up interface. Update all users.
1998-05-25 07:37:30 +00:00
Andrew Cagney
2f06c437e2
Clean up create/delete of hw-ports
1998-05-25 07:08:48 +00:00
Andrew Cagney
f675744718
* hw-device.c (hw_ioctl), hw-device.h (hw_ioctl_callback): Drop
...
PROCESSOR and CIA arguments.
1998-05-25 06:44:39 +00:00
Andrew Cagney
1e1dcdf0d9
De-sanitize simulator hw.
1998-05-25 06:20:43 +00:00
Andrew Cagney
ce82378189
Fix mips SWL on 64bit ISA when 32 bit word appears in second half of
...
64 bit bus.
Test.
1998-05-25 05:48:34 +00:00
Ron Unrau
aa81c3ca99
* Initial support for "sim list vif[01]"
1998-05-24 13:06:09 +00:00
Andrew Cagney
f872d0d643
Only enable H/W on some mips targets.
...
Move common hw-obj to Make-common
Pacify GCC
1998-05-22 05:23:04 +00:00
Andrew Cagney
32d41f6ddb
Sanity clause
1998-05-22 02:08:26 +00:00
Andrew Cagney
56833aba59
Back out of hw-main _callback -> _descriptor changes
1998-05-22 01:12:06 +00:00
Gavin Romig-Koch
5e34097b8b
gencode.c: Mark BEGEZALL as LIKELY.
1998-05-21 18:26:38 +00:00
Patrick Macdonald
fab0ee0d0b
* interp.c: modified name of GIF device
...
* sky-gpuif.[ch]: IMT burst support and queue manipulation ( see
ChangeLog.sky for complete details )
* sky-gs.c: modified name of GIF device
1998-05-21 15:41:35 +00:00
Andrew Cagney
26feb3a83d
Fix sign extension on 32 bit add/sub instructions.
1998-05-21 09:32:07 +00:00
Andrew Cagney
8404825993
* interp.c (sim_fetch_register): Convert internal r5900 regs to
...
target byte order
1998-05-21 08:18:21 +00:00
Andrew Cagney
643878d017
* sim-hw.c: Include ctype.h.
...
(do_hw_poll_read): Do not assume EAGAIN.
1998-05-21 08:17:31 +00:00
Jillian Ye
e0459470a9
c_gen.pl: Added subroutine "print_comment"
...
and on/off option for "src line #"
1998-05-20 22:14:16 +00:00
Doug Evans
66f1864d7e
* m32r-sim.h (PROFILE_COUNT_PARINSNS): New macro.
...
* mloopx.in (extract): Set abuf.addr for proper fill nop counting.
(execute): Count parallel insns.
* sim-if.c (print_m32r_misc_cpu): Print count.
* sim-main.h (M32R_MISC_PROFILE): New member parallel_count.
1998-05-20 11:59:32 +00:00
Doug Evans
6f7833f035
* cgen-trace.c (first_insn_p): New static local.
...
(trace_insn_init): Set it.
(trace_insn_fini): Use TRACE_PREFIX.
(trace_insn): Rewrite to use trace_prefix.
* sim-trace.c (trace_prefix): Don't print filename arg if NULL.
Adjust width accordingly.
* sim-profile.h (PROFILE_DATA): New member profile_any_p.
(PROFILE_ANY_P,PROFILE_INSN_P,PROFILE_MEMORY): New macros.
(PROFILE_SCACHE_P,PROFILE_PC_P,PROFILE_CORE_P): New macros.
(PROFILE_COUNT_INSN,PROFILE_COUNT_READ,PROFILE_COUNT_WRITE): Simplify.
(PROFILE_COUNT_CORE): Simplify.
* sim-profile.c (profile_option_handler): Compute profile_any_p.
1998-05-20 11:43:00 +00:00
Doug Evans
6ebf4a9559
Zero bottom two bits of pc in jmp,jl insns.
...
* sem.c,sem-switch.c: Regenerate.
* semx.c: Regenerate.
1998-05-20 07:54:31 +00:00
Doug Evans
6f1cadd0ce
* cgen-ops.h (ADDCFSI): Fix typo.
1998-05-20 07:01:05 +00:00
Doug Evans
f99354d0c0
* sim-if.c (do_trap): Treat traps 2-15 as hardware does.
1998-05-19 23:52:23 +00:00
Doug Evans
496b3694af
* sim/sky/sky.ld: Delete file.
1998-05-18 17:38:48 +00:00
Frank Ch. Eigler
3fa454e95f
* Monster patch - may destablize MIPS sims for a little while.
...
* Followup patch for SCEI PR 15853
* First check-in of TX3904 interrupt controller devices for ECC. [sanitized]
* First implementation of MIPS hardware interrupt emulation.
Mon May 18 18:22:42 1998 Frank Ch. Eigler <fche@cygnus.com>
* configure.in (SIM_AC_OPTION_HARDWARE): Added common hardware
modules. Recognize TX39 target with "mips*tx39" pattern.
* configure: Rebuilt.
* sim-main.h (*): Added many macros defining bits in
TX39 control registers.
(SignalInterrupt): Send actual PC instead of NULL.
(SignalNMIReset): New exception type.
* interp.c (board): New variable for future use to identify
a particular board being simulated.
(mips_option_handler,mips_options): Added "--board" option.
(interrupt_event): Send actual PC.
(sim_open): Make memory layout conditional on board setting.
(signal_exception): Initial implementation of hardware interrupt
handling. Accept another break instruction variant for simulator
exit.
(decode_coproc): Implement RFE instruction for TX39.
(mips.igen): Decode RFE instruction as such.
start-sanitize-tx3904
* configure.in (tx3904cpu,tx3904irc): Added devices for tx3904.
* interp.c: Define "jmr3904" and "jmr3904debug" board types and
bbegin to implement memory map.
* dv-tx3904cpu.c: New file.
* dv-tx3904irc.c: New file.
end-sanitize-tx3904
1998-05-18 15:55:05 +00:00
Doug Evans
991238c82b
* cgen-sim.h (CGEN_CPU): New members idesc_{read,sem}_init_p.
...
* genmloop.sh: Use them rather than static locals.
1998-05-17 00:50:07 +00:00
Doug Evans
17f382c9bf
* erc32.c (close_port): Don't close stdin; it kills GDB.
...
(byte_swap_words): New function.
* sis.h: (byte_swap_words): Declare.
* interf.c (run_sim): Always fetch instructions as big-endian.
* sis.c (run_sim): Ditto.
Move this c/l entry from ../ChangeLog.
1998-05-16 23:07:01 +00:00
Doug Evans
5f4c24c024
* sim-if.c (sim_stop): Update call to @cpu@_engine_stop.
...
(sim_sync_stop): New function.
1998-05-16 20:11:41 +00:00
Doug Evans
ebd58f4dde
* sim-engine.c (sim_engine_set_run_state): New function.
...
* sim-engine.h (sim_engine_set_run_state): Declare.
* genmloop.sh (pending_reason,pending_sigrc): New static locals.
(@cpu@_engine_stop): New args reason,sigrc. All callers updated.
(engine_resume): Reorganize. Allow synchronous exit from main loop.
1998-05-16 19:51:12 +00:00
Doug Evans
882d99e4b6
* sim/m32r/allinsn.exp: Pass --m32rx-enable-special to gas.
...
* sim/m32r/misc.exp: Ditto.
1998-05-16 00:32:09 +00:00
Doug Evans
a8981d6751
* Makefile.in (devices.o): Add dependencies.
...
* arch.h,cpu.c,cpu.h,cpuall.h: Regenerate.
* sem-switch.c,sem.c: Regenerate.
* mloop.in (execute): Update calls to TRACE_INSN_{INIT,FINI}.
* cpux.c,cpux.h,modelx.c,semx.c: Regenerate.
* m32rx.c (m32rx_model_mark_{busy,unbusy}_reg): New functions.
* mloopx.in (execute): Update calls to TRACE_INSN_{INIT,FINI}.
1998-05-15 23:46:24 +00:00
Doug Evans
bcb829fdbd
* cgen-trace.c (trace_insn_init): New arg first_p.
...
All callers updated.
(trace_insn_fini): New arg last_p. All callers updated.
* cgen-trace.h (trace_insn_init,trace_insn_fini): Update.
(TRACE_INSN_INIT,TRACE_INSN_FINI): Update.
* genmloop.sh (engine_resume): Update.
1998-05-15 23:31:22 +00:00
Joyce Janczyn
6cad239558
Run ranlib on installed copy of libsim.a.
1998-05-15 20:06:08 +00:00
Joyce Janczyn
08bae91baa
Install libsim.a $(exec_prefix)/lib/lib[target]-sim.a as part of install-sim.
1998-05-15 19:05:28 +00:00
Mark Alexander
f1a0162a28
* sis.h (uint64, int64): Define.
...
* exec.c (SDIV, SDIVCC, UDIV, UDIVCC): Define new opcodes.
* (mul64): Simplify calculation of negative result.
* (div64): New helper function for 64-bit division.
* (dispatch_instruction): Add emulation of SDIV, SDIVCC, UDIV,
and UDIVCC.
1998-05-15 06:23:04 +00:00
Doug Evans
02a0ec918f
Tweak last entry.
1998-05-15 00:49:37 +00:00
Doug Evans
90ef07f2e5
* config/default.exp (CC,SIM): Delete.
...
* sky-defs.tcl (LDSCRIPT,SIM): Delete.
(run_trc_test): Use sim_compile, sim_run. Only delete temp files
if testcase passed.
(run_brn_test): Ditto.
1998-05-15 00:49:24 +00:00
Doug Evans
1461afc634
* sim/sky/sky.exp: Add runtest_file_p support. Don't print
...
unsupported message if not sky.
* sim/sky/sky_sce.exp: Likewise.
1998-05-14 20:20:59 +00:00
Doug Evans
41ab9a4b7e
* lib/sim-defs.exp (sim_run): Fix handling of output redirection.
...
New arg prog_opts. All callers updated.
1998-05-14 18:50:37 +00:00
Andrew Cagney
3e8c1f2e16
More test cases.
1998-05-14 08:15:05 +00:00
Gavin Romig-Koch
7d2c0e8c97
* r5900.igen: Replace the calls and the definition of the
...
function check_op_hilo_hi1lo1 with the pair
check_mult_hilo_hi1lo1 and check_mult_hilo_hi1lo1.
1998-05-13 18:30:15 +00:00
Gavin Romig-Koch
afc5e7f23a
* tx.igen (madd,maddu): Replace calls to check_op_hilo
...
with calls to check_div_hilo.
1998-05-13 18:14:09 +00:00
Gavin Romig-Koch
94dda41a0c
* mips/mips.igen (check_op_hilo,check_mult_hilo,check_div_hilo):
...
Replace check_op_hilo with check_mult_hilo and check_div_hilo.
Add special r3900 version of do_mult_hilo.
(do_dmultx,do_mult,do_multu): Replace calls to check_op_hilo
with calls to check_mult_hilo.
(do_ddiv,do_ddivu,do_div,do_divu): Replace calls to check_op_hilo
with calls to check_div_hilo.
1998-05-13 14:00:56 +00:00
Andrew Cagney
1a89994e08
* configure.in (SUBTARGET_R3900): Define for mipstx39 target.
...
Document a replacement.
1998-05-12 05:36:47 +00:00
Frank Ch. Eigler
24abdc9d31
* Fixing typo that caused infinite loop upon PKE MPG.
1998-05-11 16:15:22 +00:00
Doug Evans
801354e772
* lib/sim-defs.exp (sim_version): Simplify.
...
(sim_run): Implement.
(run_sim_test): Use sim_run.
(sim_compile): New proc.
1998-05-08 21:42:49 +00:00
Patrick Macdonald
55470cc7ef
* Roll Alpha modifications into devo for sky-gpuif*/ sky-gs*/ interp.c
...
* Complete and informative details can be found in ChangeLog.sky
1998-05-07 19:14:28 +00:00
Frank Ch. Eigler
a1d609b4fe
* Changes to sky PKE sim to calculate word-precision source-addresses
...
for VU memory tracking tables.
Thu May 7 12:15:41 1998 Frank Ch. Eigler <fche@cygnus.com>
* sky-pke.c (pke_pcrel_operand_bits): Compute word-resolution
source address for UNPACK into VU MEM.
(pke_code_mpg): Ditto for MPG into VU uMEM.
1998-05-07 17:50:18 +00:00
Frank Ch. Eigler
53307c2301
* Finish dropping sim/txvu directory.
1998-05-07 14:39:08 +00:00
Ron Unrau
c939ffeb80
Initial Breakpoint support:
...
* sim-main.h: (struct _sim_cpu): add cur_device field.
Define cur_device values, breakpoint value, and SIM_ENGINE_HALT_HOOK
* interp.c (sim_open): initialize cur_device
* sky-engine.c (engine_run): use cur_device to set current_cpu
* sky-libvpe.c (vpecallms_cycle): add check for breakpoint
* sky-hardware.h: delete NUMBER_CPUS
* sky-hardware.c (attach_devices): create a memory mapped comm
area for GDB/SIM interactions
misc:
* sky-vu.c ({read,write}_vu_misc_reg): do default behavior for
unknown regs instead of sim_io_error. MP reg is float (was missing
cast).
1998-05-07 14:36:42 +00:00
Doug Evans
eb00d70698
* sim-main.h (INSN_NAME): New arg `cpu'.
1998-05-07 02:45:07 +00:00
Doug Evans
433a8eafaa
* Make-common (sim_main_headers): Sort.
...
(cgen-*.o): Add cgen-sim.h dependency.
* sim-cpu.h: New file. sim_cpu_base moved here.
Move sim_cpu_lookup decl here.
* sim-base.h: #include "sim-cpu.h".
* sim-cpu.c: New file.
* Make-common (sim_main_headers): Add sim-cpu.h.
(sim-cpu.o): Add rule for.
1998-05-07 02:08:05 +00:00
Doug Evans
d9fbbdfaa3
lotsa stuff, see ChangeLog
1998-05-06 22:39:35 +00:00
Doug Evans
40c680ba80
* sem-switch.c: Regenerate. Redo computed goto label handling.
...
* sem.c: Regenerate. Call PROFILE_COUNT_INSN.
* readx.c: Regenerate. Redo computed goto label handling.
* semx.c: Regenerate. Call PROFILE_COUNT_INSN. Finish profiling
support.
* Makefile.in (stamp-xcpu): Turn on profiling support.
1998-05-06 22:38:05 +00:00
Doug Evans
177dedfb88
* Makefile.in (m32r.o,mloop.o,cpu.o,model.o): Add decode.h dependency.
...
(m32rx.o,mloopx.o,cpux.o,modelx.o): Add decodex.h dependency.
* decode.c,decode.h: Regenerate, introduces IDESC table.
* mloop.in (extract16,extract32): Add IDESC support.
Update names of semantic handler member names.
(execute): Ditto. Delete call to PROFILE_COUNT_INSN.
* decodex.c,decodex.h: Regenerate, introduces IDESC table.
* mloopx.in: Add IDESC support.
Update names of semantic handler member names.
Delete call to PROFILE_COUNT_INSN.
1998-05-06 22:37:14 +00:00
Doug Evans
109e611125
* sim-io.c: #include <errno.h>.
1998-05-06 17:13:25 +00:00
Andrew Cagney
844f40d393
Copy polling code in PSIM simulator into common directory. Will
...
need rewrite later. Use in mn10300 simulator.
1998-05-06 03:32:12 +00:00
Doug Evans
ca118edaff
Fix sanitization.
1998-05-05 00:24:16 +00:00
Frank Ch. Eigler
5678ce88c4
* Added hooks to new dejagnu sky tests, removed old test from run.
...
Mon May 4 17:59:11 1998 Frank Ch. Eigler <fche@cygnus.com>
start-sanitize-sky
* configure.in (testdir): Don't use old sky test directory.
* configure: Regenerated
* sky/Makefile.in: swallow stderr on buggy tests
end-sanitize-sky
* config/default.exp: Added C compiler settings.
1998-05-04 22:18:20 +00:00
Frank Ch. Eigler
83657d850c
* Garbage collection overdue since January.
1998-05-04 21:25:49 +00:00
Doug Evans
77e0fb08e1
* Makefile.in: Replace @MAINT@ with $(CGEN_MAINT).
...
(CGEN_MAINT): New variable.
* configure.in: Add support for --enable-cgen-maint.
* configure: Regenerate.
1998-05-02 01:28:32 +00:00
Andrew Cagney
03f3bfdb7a
*) Delete CPU and CIA arguments from hw_io_*_buffer transfers.
...
Instead save them in the sim_hw structure.
*) Route sim-core accesses to hw devices through the sim_hw module.
*) Route hw device requests to abort/halt through the sim_hw module.
*) Add print parameter to hw_tree_print() function.
*) Add sim_engine_vabort () function.
1998-05-01 07:58:47 +00:00
Andrew Cagney
a6a51ac720
Fix type of arguments to sim_engine_halt.
1998-05-01 05:44:17 +00:00
Andrew Cagney
ad14e4d176
For multiply->add, loose underflow status, overflow when acc is
...
to-the-max, product can overflow result.
1998-04-30 10:56:49 +00:00
Andrew Cagney
e7439596fc
Add 2-result FP trace macro.
...
Dump hex value of floating-point numbers
1998-04-30 10:55:09 +00:00
Geoffrey Noer
8c59a22d97
Wed Apr 29 15:44:52 1998 Geoffrey Noer <noer@cygnus.com>
...
* aclocal.m4: new file for AM_EXEEXT macro
* configure.in: call AM_EXEEXT
* configure: regenerate with autoconf 2.12.1.
* Makefile.in: add EXEEXT support
1998-04-29 22:49:27 +00:00
James Lemke
60372a3f96
* sim-main.h, sky-libvpe.c: r59fp_op* functions were called with
...
1st parm of wrong type. Converted remaining "/" to "FDiv".
* interp.c: Make "--float-type host" the default.
1998-04-29 21:17:53 +00:00
Mark Alexander
1c57e2955d
* configure.in: Build simulator on sparclite and sparc86x targets.
...
* configure: Regenerate.
1998-04-29 20:11:29 +00:00
Frank Ch. Eigler
2325ac592f
* Test case for modular arithmetic hardware erratum, c.f. PR 14887.
...
Wed Apr 29 12:49:00 1998 Frank Ch. Eigler <fche@cygnus.com>
* ls-modaddr.S: New test for modular addressing.
* Makefile.in: Run it.
1998-04-29 17:01:23 +00:00
Ron Unrau
56c0f25a5b
* rw-vureg.{c,vuexpect}: test VU register read/writes through aliased memory
1998-04-29 14:48:42 +00:00
Geoffrey Noer
9d45df1b8c
Tue Apr 28 18:28:58 1998 Geoffrey Noer <noer@cygnus.com>
...
* common/aclocal.m4: call AM_EXEEXT in SIM_AC_COMMON, define
AM_CYGWIN32 and AM_EXEEXT.
* common/Make-common.in: set EXEEXT, add missing EXEEXTs
to run and install-common rules.
* common/configure: regenerate
And update all subdirectory ChangeLogs and configure files.
1998-04-29 01:44:23 +00:00
Nick Clifton
8b7197b6bc
Rebuilt from latest cen files
1998-04-29 01:07:56 +00:00
Jillian Ye
eb0948b006
*** empty log message ***
1998-04-29 00:50:26 +00:00
Jillian Ye
002b3c2f9d
sce*test*_out_dif.dat : Change the last line of the files to be
...
"7f 00000000 00000000"
: ----------------------------------------------------------------------
1998-04-29 00:48:13 +00:00
Jillian Ye
f9c3840555
*** empty log message ***
1998-04-29 00:35:04 +00:00
Doug Evans
d9e3a135fa
* cpu.c,model.c,sem-switch.c,sem.c: Regenerated. Mostly comment
...
and variable renaming due to macro insn additions.
* mloop.in: Update to use CGEN_INSN_NUM.
* cpu.x,modelx.c,readx.c,semx.c: Regenerated.
* mloopx.in: Update to use CGEN_INSN_NUM.
1998-04-27 22:42:22 +00:00
Doug Evans
e926707c80
* cpu.c,model.c,sem-switch.c,sem.c: Regenerated. Mostly comment
...
and variable renaming due to macro insn additions.
* mloop.in: Update to use CGEN_INSN_NUM.
* cpu.x,modelx.c,readx.c,semx.c: Regenerated.
* mloopx.in: Update to use CGEN_INSN_NUM.
1998-04-27 22:41:32 +00:00
Andrew Cagney
f68cdf65e8
Clean up cell types.
1998-04-27 07:13:00 +00:00
Tom Tromey
5da9ce07eb
* configure: Regenerated to track ../common/aclocal.m4 changes.
...
* config.in: Ditto.
* acconfig.h: New file.
* configure.in: Reverted change of Apr 24; use sinclude again.
1998-04-26 22:03:55 +00:00
Tom Tromey
b29daf0287
* Makefile.in (autoconf-common autoheader-common): Don't pass -l
...
to autoconf and autoheader.
1998-04-26 21:44:25 +00:00
Tom Tromey
59fb349750
* configure: Regenerated to track ../common/aclocal.m4 changes.
...
* config.in: Ditto.
* acconfig.h: New file.
* configure.in: Reverted change of Apr 24; use sinclude again.
Don't call AC_C_CROSS.
1998-04-26 21:43:25 +00:00
Tom Tromey
56df89bcf6
* configure: Regenerated to track ../common/aclocal.m4 changes.
...
* config.in: Ditto.
* acconfig.h (NEED_DECLARATION_PRINTF): Removed.
1998-04-26 21:39:16 +00:00
Tom Tromey
7c9e17390b
* configure: Regenerated to track ../common/aclocal.m4 changes.
...
* config.in: Ditto.
* acconfig.h: Removed.
* configure.in: Call CY_GNU_GETTEXT.
* Makefile.in (INTLLIBS): New macro.
(INTLDEPS): Likewise.
($(RUN_PROG)): Depend on INTLDEPS; link against INTLLIBS.
(top_builddir): New macro.
1998-04-24 22:12:15 +00:00
Tom Tromey
ead653821c
* configure: Regenerated to track ../common/aclocal.m4 changes.
...
* config.in: Ditto.
* configure.in: Don't call sinclude.
1998-04-24 22:02:29 +00:00
Tom Tromey
6bded866f0
* configure: Regenerated to track ../common/aclocal.m4 changes.
...
* config.in: Ditto.
* configure.in: Don't call sinclude.
1998-04-24 21:45:01 +00:00
Tom Tromey
c2816431f1
* Makefile.in (autoconf-common autoheader-common): Pass `-l
...
../common' to autoconf and autoheader. Unconditionally run
autoconf in every subdir.
(autoconf-changelog autoheader-changelog): Unconditionally run
commands in every subdir.
(autoconf-install autoheader-install): Likewise.
1998-04-24 21:00:29 +00:00
Tom Tromey
cbd15dc12a
* configure: Regenerated to track ../common/aclocal.m4 changes.
...
* config.in: Ditto.
* configure.in: Don't call sinclude.
1998-04-24 20:57:53 +00:00
Tom Tromey
a2eb9d2751
* configure: Regenerated to track ../common/aclocal.m4 changes.
...
* config.in: Ditto.
* Makefile.in (top_builddir): New macro.
(INTLLIBS): New macro.
(INTLDEPS): Likewise.
(psim): Depend on INTLDEPS; link against INTLLIBS.
* configure.in: Call CY_GNU_GETTEXT.
1998-04-24 20:55:51 +00:00
Tom Tromey
fc4198bbb5
* configure: Regenerated to track ../common/aclocal.m4 changes.
...
* config.in: Ditto.
* acconfig.h: New file.
* Make-common.in (top_builddir): New macro.
(INTL_LIB): Removed.
(INTLLIBS): New macro.
(INTLDEPS): Likewise.
(LIBDEPS): Use INTLDEPS.
(EXTRA_LIBS): Use INTLLIBS.
* aclocal.m4 (SIM_AC_COMMON): Call CY_GNU_GETTEXT.
(CY_WITH_NLS, CY_GNU_GETTEXT, AM_PATH_PROG_WITH_TEST,
AM_LC_MESSAGES): New macros from GNU gettext.
1998-04-24 20:51:56 +00:00
Tom Tromey
b1df34b9ed
* configure: Regenerated to track ../common/aclocal.m4 changes.
...
* config.in: Ditto.
* configure.in: Don't call sinclude.
1998-04-24 20:39:48 +00:00
Andrew Cagney
d32658fe26
Drop leading `_' from macros.
1998-04-24 09:59:22 +00:00
Andrew Cagney
ca61710bde
* mips.igen (do_store_left): Pass 0 not NULL to store_memory.
1998-04-24 09:57:17 +00:00
Andrew Cagney
1c5d25f841
* ic (rBase, rLink): Make the type a pointer.
1998-04-24 09:54:50 +00:00
Andrew Cagney
21566f9fbe
* interp.c (struct hash_entry): OPCODE and MASK are unsigned.
...
* d10v_sim.h (remote-sim.h, sim-config.h): Include.
1998-04-24 09:54:16 +00:00
Andrew Cagney
e9164db545
* ld-insn.c (load_insn_table): Terminate error with NL.
...
* gen.c (insns_bit_useless): Perform unsigned bit comparisons.
* filter.c (is_filtered_out, filter_parse): Pacify GCC, len is unsigned.
* gen-icache.c (print_icache_extraction): Do not type cast pointers.
1998-04-24 09:52:25 +00:00
Doug Evans
1e114b0add
Delete sky sim-base.h entries (required sanitization).
1998-04-22 21:05:19 +00:00
James Lemke
aefd02b523
Move target specific stuff from sim/common/sim-base.h to sim/mips/sim-main.h
1998-04-22 20:41:04 +00:00
Doug Evans
c24db1ca0f
* Makefile.in (GCC_FOR_TARGET): Add options to find newlib and
...
libgloss. Add comment that we should be using dejagnu.
1998-04-22 19:33:56 +00:00
Doug Evans
dca2d4f4dc
* Makefile.in (TARGET_FLAGS_TO_PASS): Delete LIBS, LDFLAGS.
1998-04-22 19:29:27 +00:00
Michael Meissner
d865fb6e56
Regenerate configure
1998-04-22 18:29:57 +00:00
Michael Meissner
3618a6e972
Add intl support
1998-04-22 18:19:01 +00:00
Jillian Ye
18de2a0134
Fixing typos.
1998-04-21 22:16:12 +00:00
Jillian Ye
680fce2b97
Makefile.in : Use GIF_TRACE to generate the sce_test*_our_gif.out files.
1998-04-21 21:53:05 +00:00
James Lemke
8c8dd0c471
r5900.igen, sim-main.h, sky-libvpe.c: Add run-time option --float-type
1998-04-21 21:33:44 +00:00
James Lemke
2b1d91ab62
configure.in, interp.c: Add configure option --with-sim-funit.
1998-04-21 21:24:24 +00:00
James Lemke
bd3aa7cbc7
sim-base.h: Add configure option --with-sim-funit.
1998-04-21 21:19:45 +00:00
James Lemke
3e5fbf91b5
Add configure option --with-sim-funit for sim & gdb.
1998-04-21 21:14:09 +00:00
Doug Evans
8bb5064edd
* cgen-ops.h (ADDCFSI): Fix.
...
(SUBCFSI): Tweak.
PR 15741.
1998-04-21 19:52:02 +00:00
Doug Evans
404d4ee153
* cgen-types.h (GETHIDI,MAKEDI): Tweak.
1998-04-21 19:49:42 +00:00
Jason Molenda
5fe24ce03a
Fix sanitize tag. The proper keyword is "start-sanitize-*", not
...
"begin-sanitize-*".
1998-04-21 17:55:06 +00:00
Doug Evans
581fd0423c
* sim/m32r/addx.cgs: Test (-1)+(-1)+1.
1998-04-21 17:54:03 +00:00
Doug Evans
aa4677044a
* lib/sim-defs.exp (run_sim_test): Don't exit early if one mach fails,
...
try all machs.
1998-04-21 17:52:16 +00:00
Jason Molenda
5569ab1b26
Add sim-main.c to things to keep.
1998-04-21 17:45:28 +00:00
Andrew Cagney
515125b709
Entry about changing sim_open missing from changelog.
1998-04-21 05:25:56 +00:00
Andrew Cagney
97f4d18341
Implement ERET instruction.
...
Add {signed,unsigned}_address type.
1998-04-21 04:30:27 +00:00
Andrew Cagney
421cbaae98
For new IGEN simulators, rewrite checks validating correct use of the
...
HI/LO registers. For old gencode simulator, delete all checks.
1998-04-21 01:17:58 +00:00
Andrew Cagney
98f5dae13b
* gen-icache.c (print_icache_extraction): When generating #define
...
force the expression to the correct type.
1998-04-21 00:11:40 +00:00
Doug Evans
970a8fd6c3
* cpu.c,sem.c,sem-switch.c: Regenerate. From
...
- cgen/m32r.cpu (h-accum): Add attribute FUN-ACCESS.
* m32r.c (m32r_h_accum_get,m32r_h_accum_set): New functions.
#include cgen-ops.h.
* cpux.c,readx.c,semx.c: Regenerate.
* m32rx.c (m32r_h_accum_get,m32r_h_accum_set): New functions.
#include cgen-ops.h. Delete inclusion of several unnecessary headers.
(m32r_h_accums_get): Sign extend top 8 bits.
1998-04-20 23:20:22 +00:00
Frank Ch. Eigler
f61321eaaf
* Added one new R5900 COP2 test.
...
Mon Apr 20 18:36:50 1998 Frank Ch. Eigler <fche@cygnus.com>
* t-cop2b.c (test01): Additional COP2 tests (QMFC2/QMTC2/LQ/SQ).
Don't use $1 ($at) register in inline assembly.
1998-04-20 22:59:16 +00:00
Jillian Ye
54a0a7df08
t-pke2.trc t-pke2.vif1expect: Update the testcase to use the
...
correct registers permitted by gpus.
1998-04-20 21:56:01 +00:00
Doug Evans
d8d0c6a627
* Makefile.in (ULIMIT): New variable.
...
(sce%.ok): Use it.
(.run.ok,.run.ko): Ditto.
1998-04-17 21:21:12 +00:00
Frank Ch. Eigler
f8998e7780
* Fixed data mangling problems in R5900 COP2 LQC2/SQC2 instructions.
1998-04-17 19:04:53 +00:00
Frank Ch. Eigler
aa4d43968a
* New R5900 COP2 test case.
1998-04-17 19:04:41 +00:00
Frank Ch. Eigler
fc4e5b84c8
* Adapted R5900 COP2 interface code to clarified micro-mode interlock
...
behavior.
1998-04-16 19:27:55 +00:00
Jillian Ye
73181dfff8
Update the testcase to work with gpu2 lib.
1998-04-16 19:07:57 +00:00
Andrew Cagney
7d93d53871
o CVT.S.W and CVT.W.S were reversed
...
o When unpacking an r5900 FP value,
was not treating IEEE-NaN's as very
large values.
o When packing an r5900 FP result from an infinite
precision intermediate value was saturating
to IEEE-MAX instead of r5900-MAX
o The least significant bit of the FP status
register did not stick to one.
1998-04-16 07:49:58 +00:00
Andrew Cagney
c58fa2cc43
TX19 uses igen by default.
1998-04-15 23:17:16 +00:00
Frank Ch. Eigler
46399a00e8
* Changes to make interp.c compile under mips64r5900-sky-elf target.
...
Wed Apr 15 12:41:18 1998 Frank Ch. Eigler <fche@cygnus.com>
* interp.c (decode_coproc): Make COP2 branch code compile after
igen signature changes.
1998-04-15 19:02:04 +00:00
Andrew Cagney
74025eeea7
Re-fix 32 bit DSRAV instruction.
...
Fix mips16 BRANCH, unsigned ADD/SUB and SRAV instructions.
1998-04-15 14:04:01 +00:00
Andrew Cagney
ea5d84f5dc
Add EXTEND11().
1998-04-15 13:50:50 +00:00
Andrew Cagney
f3bdd368ea
Debug tx19 built from igen sources.
...
Rework ifetch{16,32} to match the more recent do_load function.
1998-04-15 07:23:28 +00:00
Andrew Cagney
7acc4e98d2
Define EXTEND15().
1998-04-15 06:45:19 +00:00
Andrew Cagney
93f967158f
Define EXTEND4() and EXTEND5().
1998-04-15 00:06:50 +00:00
John Metzler
5d71b4bc92
Tue Apr 14 16:31:35 1998 John Metzler <jmetzler@cygnus.com>
...
* sim-memopt.c (parse_addr): Sunos 4.5 does not hane strtol
declared so we need this cast to prevent long long addresses
from being misconfigures. Results in access to unmapped memory.
1998-04-14 23:36:19 +00:00
Doug Evans
489564e28b
* sim/m32r/maclh1.cgs: Fix testcase.
...
* sim/m32r/maclh1-2.cgs: New testcase.
1998-04-14 21:09:35 +00:00
Doug Evans
94a5989b24
* semx.c: Regenerate.
...
PR 15693.
1998-04-14 21:07:45 +00:00
Doug Evans
b42e7eb361
* Make-common.in (RUNTESTFLAGS): Define.
...
(check): Pass RUNTESTFLAGS to recursive make.
1998-04-14 20:22:07 +00:00
Ian Carmichael
ac137dc872
* Added interactive debugging for vector units, and a bunch of minor
...
* things. See ChangeLog.sky for details.
*
* Modified Files:
* .Sanitize ChangeLog.sky Makefile.in sky-libvpe.c sky-vu.c
* sky-vu.h sky-vudis.c sky-vudis.h
* Added Files:
* sky-indebug.c sky-indebug.h sky-interact.c sky-interact.h
* sky-console.c sky-console.h
1998-04-14 19:58:36 +00:00
Jillian Ye
c6ae153421
c_gen.pl: Change to use data type "int" instead of "long int" in
...
function perform_test_read_only.
1998-04-14 16:25:44 +00:00