1 Sat Feb 7 17:16:20 1998 Andrew Cagney <cagney@b1.cygnus.com>
3 * Makefile.in (itable.h itable.c): Depend on SIM_@sim_gen@_ALL.
5 Tue Feb 3 11:36:02 1998 Andrew Cagney <cagney@b1.cygnus.com>
7 * interp.c (ifetch16): New function.
9 * sim-main.h (IMEM32): Rename IMEM.
10 (IMEM16_IMMED): Define.
14 * m16run.c (sim_engine_run): New file.
16 * m16.igen: All instructions except LB.
17 (LB): Call do_load_byte.
18 * mips.igen (do_load_byte): New function.
19 (LB): Call do_load_byte.
21 * mips.igen: Move spec for insn bit size and high bit from here.
22 * Makefile.in (tmp-igen, tmp-m16): To here.
24 * m16.dc: New file, decode mips16 instructions.
26 * Makefile.in (SIM_NO_ALL): Define.
27 (tmp-m16): Generate both 16 bit and 32 bit simulator engines.
30 * m16.igen: Mark all mips16 insns as being part of the tx19 insn
34 Tue Feb 3 11:28:00 1998 Andrew Cagney <cagney@b1.cygnus.com>
36 * configure.in (mips_fpu_bitsize): For tx39, restrict floating
37 point unit to 32 bit registers.
38 * configure: Re-generate.
40 Sun Feb 1 15:47:14 1998 Andrew Cagney <cagney@b1.cygnus.com>
42 * configure.in (sim_use_gen): Make IGEN the default simulator
43 generator for generic 32 and 64 bit mips targets.
44 * configure: Re-generate.
46 Sun Feb 1 16:52:37 1998 Andrew Cagney <cagney@b1.cygnus.com>
48 * sim-main.h (SizeFGR): Determine from floating-point and not gpr
51 * interp.c (sim_fetch_register, sim_store_register): Read/write
52 FGR from correct location.
53 (sim_open): Set size of FGR's according to
54 WITH_TARGET_FLOATING_POINT_BITSIZE.
56 * sim-main.h (FGR): Store floating point registers in a separate
59 Sun Feb 1 16:47:51 1998 Andrew Cagney <cagney@b1.cygnus.com>
61 * configure: Regenerated to track ../common/aclocal.m4 changes.
64 * mdmx.igen: Mark all instructions as 64bit/fp specific.
67 Tue Feb 3 00:10:50 1998 Andrew Cagney <cagney@b1.cygnus.com>
69 * interp.c (ColdReset): Call PENDING_INVALIDATE.
71 * sim-main.h (ENGINE_ISSUE_PREFIX_HOOK): Call PENDING_TICK.
73 * interp.c (pending_tick): New function. Deliver pending writes.
75 * sim-main.h (PENDING_FILL, PENDING_TICK, PENDING_SCHED,
76 PENDING_BIT, PENDING_INVALIDATE): Re-write pipeline code so that
77 it can handle mixed sized quantites and single bits.
79 Mon Feb 2 17:43:15 1998 Andrew Cagney <cagney@b1.cygnus.com>
81 * interp.c (oengine.h): Do not include when building with IGEN.
82 (sim_open): Replace GPRLEN by WITH_TARGET_WORD_BITSIZE.
83 (sim_info): Ditto for PROCESSOR_64BIT.
84 (sim_monitor): Replace ut_reg with unsigned_word.
87 (sim_open): Remove defunct check that host FP is IEEE compliant,
88 using software to emulate floating point.
89 (value_fpr, ...): Always compile, was conditional on HASFPU.
91 Sun Feb 1 11:15:29 1998 Andrew Cagney <cagney@b1.cygnus.com>
93 * sim-main.h (sim_state): Make the cpu array MAX_NR_PROCESSORS in
96 * interp.c (SD, CPU): Define.
97 (mips_option_handler): Set flags in each CPU.
98 (interrupt_event): Assume CPU 0 is the one being iterrupted.
99 (sim_close): Do not clear STATE, deleted anyway.
100 (sim_write, sim_read): Assume CPU zero's vm should be used for
102 (sim_create_inferior): Set the PC for all processors.
103 (sim_monitor, store_word, load_word, mips16_entry): Add cpu
105 (mips16_entry): Pass correct nr of args to store_word, load_word.
106 (ColdReset): Cold reset all cpu's.
107 (signal_exception): Pass cpu to sim_monitor & mips16_entry.
108 (sim_monitor, load_memory, store_memory, signal_exception): Use
109 `CPU' instead of STATE_CPU.
112 * sim-main.h: Replace uses of STATE_CPU with CPU. Replace sd with
115 * sim-main.h (signal_exception): Add sim_cpu arg.
116 (SignalException*): Pass both SD and CPU to signal_exception.
117 * interp.c (signal_exception): Update.
119 * sim-main.h (value_fpr, store_fpr, dotrace, ifetch32), interp.c:
121 (sync_operation, prefetch, cache_op, store_memory, load_memory,
122 address_translation): Ditto
123 (decode_coproc, cop_lw, cop_ld, cop_sw, cop_sd): Ditto.
125 start-sanitize-vr5400
126 * mdmx.igen (get_scale): Pass CPU_ to semantic_illegal instead of
128 (ByteAlign): Use StoreFPR, pass args in correct order.
132 Sun Feb 1 10:59:55 1998 Andrew Cagney <cagney@b1.cygnus.com>
134 * configure.in (sim_igen_filter): For r5900, configure as SMP.
137 Sat Jan 31 18:15:41 1998 Andrew Cagney <cagney@b1.cygnus.com>
139 * configure: Regenerated to track ../common/aclocal.m4 changes.
141 Sat Jan 31 14:49:24 1998 Andrew Cagney <cagney@b1.cygnus.com>
144 * configure.in (sim_igen_filter): For r5900, use igen.
145 * configure: Re-generate.
148 * interp.c (sim_engine_run): Add `nr_cpus' argument.
150 * mips.igen (model): Map processor names onto BFD name.
152 * sim-main.h (CPU_CIA): Delete.
153 (SET_CIA, GET_CIA): Define
155 Wed Jan 21 16:16:27 1998 Andrew Cagney <cagney@b1.cygnus.com>
157 * sim-main.h (GPR_SET): Define, used by igen when zeroing a
160 * configure.in (default_endian): Configure a big-endian simulator
162 * configure: Re-generate.
164 Mon Jan 19 22:26:29 1998 Doug Evans <devans@seba>
166 * configure: Regenerated to track ../common/aclocal.m4 changes.
168 Mon Jan 5 20:38:54 1998 Mark Alexander <marka@cygnus.com>
170 * interp.c (sim_monitor): Handle Densan monitor outbyte
171 and inbyte functions.
173 1997-12-29 Felix Lee <flee@cygnus.com>
175 * interp.c (sim_engine_run): msvc cpp barfs on #if (a==b!=c).
177 Wed Dec 17 14:48:20 1997 Jeffrey A Law (law@cygnus.com)
179 * Makefile.in (tmp-igen): Arrange for $zero to always be
180 reset to zero after every instruction.
182 Mon Dec 15 23:17:11 1997 Andrew Cagney <cagney@b1.cygnus.com>
184 * configure: Regenerated to track ../common/aclocal.m4 changes.
187 start-sanitize-vr5400
188 Sat Dec 13 15:18:51 1997 Andrew Cagney <cagney@b1.cygnus.com>
190 * vr5400.igen (Low32Bits, High32Bits): Sign extend extracted 32
194 start-sanitize-vr5400
195 Fri Dec 12 12:26:07 1997 Jeffrey A Law (law@cygnus.com)
197 * configure.in (sim_igen_filter): Multi-sim vr5000 - vr5000 or
198 vr5400 with the vr5000 as the default.
201 Wed Dec 10 17:10:45 1997 Jeffrey A Law (law@cygnus.com)
203 * mips.igen (MSUB): Fix to work like MADD.
204 * gencode.c (MSUB): Similarly.
206 start-sanitize-vr5400
207 Tue Dec 9 12:02:12 1997 Andrew Cagney <cagney@b1.cygnus.com>
209 * configure.in (sim_igen_filter): Multi-sim vr5400 - vr5000 or
213 Thu Dec 4 09:21:05 1997 Doug Evans <devans@canuck.cygnus.com>
215 * configure: Regenerated to track ../common/aclocal.m4 changes.
217 Wed Nov 26 11:00:23 1997 Andrew Cagney <cagney@b1.cygnus.com>
219 * mips.igen (LWC1): Correct assembler - lwc1 not swc1.
221 start-sanitize-vr5400
222 * mdmx.igen (value_vr): Correct sim_io_eprintf format argument.
223 (value_cc, store_cc): Implement.
225 * sim-main.h: Add 8*3*8 bit accumulator.
227 * vr5400.igen: Move mdmx instructins from here
228 * mdmx.igen: To here - new file. Add/fix missing instructions.
229 * mips.igen: Include mdmx.igen.
230 * Makefile.in (IGEN_INCLUDE): Add mdmx.igen.
233 Sun Nov 23 01:45:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
235 * sim-main.h (sim-fpu.h): Include.
237 * interp.c (convert, SquareRoot, Recip, Divide, Multiply, Sub,
238 Add, Negate, AbsoluteValue, Equal, Less, Infinity, NaN): Rewrite
239 using host independant sim_fpu module.
241 Thu Nov 20 19:56:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
243 * interp.c (signal_exception): Report internal errors with SIGABRT
246 * sim-main.h (C0_CONFIG): New register.
247 (signal.h): No longer include.
249 * interp.c (decode_coproc): Allow access C0_CONFIG to register.
251 Tue Nov 18 15:33:48 1997 Doug Evans <devans@canuck.cygnus.com>
253 * Makefile.in (SIM_OBJS): Use $(SIM_NEW_COMMON_OBJS).
255 Fri Nov 14 11:56:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
257 * mips.igen: Tag vr5000 instructions.
258 (ANDI): Was missing mipsIV model, fix assembler syntax.
259 (do_c_cond_fmt): New function.
260 (C.cond.fmt): Handle mips I-III which do not support CC field
262 (bc1): Handle mips IV which do not have a delaed FCC separatly.
263 (SDR): Mask paddr when BigEndianMem, not the converse as specified
265 (DMULT, DMULTU): Force use of hosts 64bit multiplication. Handle
266 vr5000 which saves LO in a GPR separatly.
268 * configure.in (enable-sim-igen): For vr5000, select vr5000
269 specific instructions.
270 * configure: Re-generate.
272 Wed Nov 12 14:42:52 1997 Andrew Cagney <cagney@b1.cygnus.com>
274 * Makefile.in (SIM_OBJS): Add sim-fpu module.
276 * interp.c (store_fpr), sim-main.h: Add separate fmt_uninterpreted_32 and
277 fmt_uninterpreted_64 bit cases to switch. Convert to
280 * sim-main.h (ENGINE_ISSUE_PREFIX_HOOK): Define,
282 * mips.igen (SWR): Mask paddr when BigEndianMem, not the converse
283 as specified in IV3.2 spec.
284 (MTC1, DMTC1): Call StoreFPR to store the GPR in the FPR.
286 Tue Nov 11 12:38:23 1997 Andrew Cagney <cagney@b1.cygnus.com>
288 * mips.igen: Delay slot branches add OFFSET to NIA not CIA.
289 (MFC0, MTC0, SWC1, LWC1, SDC1, LDC1): Implement.
290 (start-sanitize-r5900):
291 (LWXC1, SWXC1): Delete from r5900 instruction set.
292 (end-sanitize-r5900):
293 (MTC1, MFC1, DMTC1, DMFC1, CFC1, CTC1): Implement separate non
294 PENDING_FILL versions of instructions. Simplify.
296 (MULT, MULTU): Implement separate RD==0 and RD!=0 versions of
298 (BEQZ, ..., SLT, SLTI, TLT, TLE, TLI, ...): Explicitly cast GPR to
300 (MTHI, MFHI): Disable code checking HI-LO.
302 * sim-main.h (dotrace,tracefh), interp.c: Make dotrace & tracefh
304 (NULLIFY_NEXT_INSTRUCTION): Call dotrace.
306 Thu Nov 6 16:36:35 1997 Andrew Cagney <cagney@b1.cygnus.com>
308 * gencode.c (build_mips16_operands): Replace IPC with cia.
310 * interp.c (sim_monitor, signal_exception, cache_op, store_fpr,
311 value_fpr, cop_ld, cop_lw, cop_sw, cop_sd, decode_coproc): Replace
313 (UndefinedResult): Replace function with macro/function
315 (sim_engine_run): Don't save PC in IPC.
317 * sim-main.h (IPC): Delete.
319 start-sanitize-vr5400
320 * vr5400.igen (vr): Add missing cia argument to value_fpr.
321 (do_select): Rename function select.
324 * interp.c (signal_exception, store_word, load_word,
325 address_translation, load_memory, store_memory, cache_op,
326 prefetch, sync_operation, ifetch, value_fpr, store_fpr, convert,
327 cop_lw, cop_ld, cop_sw, cop_sd, decode_coproc, sim_monitor): Add
328 current instruction address - cia - argument.
329 (sim_read, sim_write): Call address_translation directly.
330 (sim_engine_run): Rename variable vaddr to cia.
331 (signal_exception): Pass cia to sim_monitor
333 * sim-main.h (SignalException, LoadWord, StoreWord, CacheOp,
334 Prefetch, SyncOperation, ValueFPR, StoreFPR, Convert, COP_LW,
335 COP_LD, COP_SW, COP_SD, DecodeCoproc): Update.
337 * sim-main.h (SignalExceptionSimulatorFault): Delete definition.
338 * interp.c (sim_open): Replace SignalExceptionSimulatorFault with
341 * interp.c (signal_exception): Pass restart address to
344 * Makefile.in (semantics.o, engine.o, support.o, itable.o,
345 idecode.o): Add dependency.
347 * sim-main.h (SIM_ENGINE_HALT_HOOK, SIM_ENGINE_RESUME_HOOK):
349 (DELAY_SLOT): Update NIA not PC with branch address.
350 (NULLIFY_NEXT_INSTRUCTION): Set NIA to instruction after next.
352 * mips.igen: Use CIA not PC in branch calculations.
353 (illegal): Call SignalException.
354 (BEQ, ADDIU): Fix assembler.
356 Wed Nov 5 12:19:56 1997 Andrew Cagney <cagney@b1.cygnus.com>
358 * m16.igen (JALX): Was missing.
360 * configure.in (enable-sim-igen): New configuration option.
361 * configure: Re-generate.
363 * sim-main.h (MAX_INSNS, INSN_NAME): Define.
365 * interp.c (load_memory, store_memory): Delete parameter RAW.
366 (sim_read, sim_write): Use sim_core_{read,write}_buffer directly
367 bypassing {load,store}_memory.
369 * sim-main.h (ByteSwapMem): Delete definition.
371 * Makefile.in (SIM_OBJS): Add sim-memopt module.
373 * interp.c (sim_do_command, sim_commands): Delete mips specific
374 commands. Handled by module sim-options.
376 * sim-main.h (SIM_HAVE_FLATMEM): Undefine, use sim-core.o module.
377 (WITH_MODULO_MEMORY): Define.
379 * interp.c (sim_info): Delete code printing memory size.
381 * interp.c (mips_size): Nee sim_size, delete function.
383 (monitor, monitor_base, monitor_size): Delete global variables.
384 (sim_open, sim_close): Delete code creating monitor and other
385 memory regions. Use sim-memopts module, via sim_do_commandf, to
386 manage memory regions.
387 (load_memory, store_memory): Use sim-core for memory model.
389 * interp.c (address_translation): Delete all memory map code
390 except line forcing 32 bit addresses.
392 Wed Nov 5 11:21:11 1997 Andrew Cagney <cagney@b1.cygnus.com>
394 * sim-main.h (WITH_TRACE): Delete definition. Enables common
397 * interp.c (logfh, logfile): Delete globals.
398 (sim_open, sim_close): Delete code opening & closing log file.
399 (mips_option_handler): Delete -l and -n options.
400 (OPTION mips_options): Ditto.
402 * interp.c (OPTION mips_options): Rename option trace to dinero.
403 (mips_option_handler): Update.
405 Wed Nov 5 09:35:59 1997 Andrew Cagney <cagney@b1.cygnus.com>
407 * interp.c (fetch_str): New function.
408 (sim_monitor): Rewrite using sim_read & sim_write.
409 (sim_open): Check magic number.
410 (sim_open): Write monitor vectors into memory using sim_write.
411 (MONITOR_BASE, MONITOR_SIZE, MEM_SIZE): Define.
412 (sim_read, sim_write): Simplify - transfer data one byte at a
414 (load_memory, store_memory): Clarify meaning of parameter RAW.
416 * sim-main.h (isHOST): Defete definition.
417 (isTARGET): Mark as depreciated.
418 (address_translation): Delete parameter HOST.
420 * interp.c (address_translation): Delete parameter HOST.
423 Wed Oct 29 14:21:32 1997 Gavin Koch <gavin@cygnus.com>
425 * gencode.c: Add tx49 configury and insns.
426 * configure.in: Add tx49 configury.
430 Wed Oct 29 11:13:56 1997 Andrew Cagney <cagney@b1.cygnus.com>
434 * Makefile.in (IGEN_INCLUDE): Files included by mips.igen.
435 (tmp-igen, tmp-m16): Depend on IGEN_INCLUDE.
437 Tue Oct 28 11:06:47 1997 Andrew Cagney <cagney@b1.cygnus.com>
439 * mips.igen: Add model filter field to records.
441 Mon Oct 27 17:53:59 1997 Andrew Cagney <cagney@b1.cygnus.com>
443 * Makefile.in (SIM_NO_CFLAGS): Define. Define WITH_IGEN=0.
445 interp.c (sim_engine_run): Do not compile function sim_engine_run
448 * configure.in (sim_igen_flags, sim_m16_flags): Set according to
451 Makefile.in (tmp-igen, tmp-m16): Drop -F and -M options to
452 igen. Replace with configuration variables sim_igen_flags /
456 * r5900.igen: New file. Copy r5900 insns here.
458 start-sanitize-vr5400
459 * vr5400.igen: New file.
461 * m16.igen: New file. Copy mips16 insns here.
462 * mips.igen: From here.
464 Mon Oct 27 13:53:59 1997 Andrew Cagney <cagney@b1.cygnus.com>
466 start-sanitize-vr5400
467 * mips.igen: Tag all mipsIV instructions with vr5400 model.
469 * configure.in: Add mips64vr5400 target.
470 * configure: Re-generate.
473 * Makefile.in (SIM_NO_OBJ): Define, move SIM_M16_OBJ, SIM_IGEN_OBJ
475 (tmp-igen, tmp-m16): Pass -I srcdir to igen.
477 Sat Oct 25 16:51:40 1997 Gavin Koch <gavin@cygnus.com>
479 * gencode.c (build_instruction): Follow sim_write's lead in using
480 BigEndianMem instead of !ByteSwapMem.
482 Fri Oct 24 17:41:49 1997 Andrew Cagney <cagney@b1.cygnus.com>
484 * configure.in (sim_gen): Dependent on target, select type of
485 generator. Always select old style generator.
487 configure: Re-generate.
489 Makefile.in (tmp-igen, tmp-m16, clean-m16, clean-igen): New
491 (SIM_M16_CFLAGS, SIM_M16_ALL, SIM_M16_OBJ, BUILT_SRC_FROM_M16,
492 SIM_IGEN_CFLAGS, SIM_IGEN_ALL, SIM_IGEN_OBJ, BUILT_SRC_FROM_IGEN,
493 IGEN_TRACE, IGEN_INSN, IGEN_DC): Define
494 (SIM_EXTRA_CFLAGS, SIM_EXTRA_ALL, SIM_OBJS): Add member
495 SIM_@sim_gen@_*, set by autoconf.
497 Wed Oct 22 12:52:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
499 * sim-main.h (NULLIFY_NEXT_INSTRUCTION, DELAY_SLOT): Define.
501 * interp.c (ColdReset): Remove #ifdef HASFPU, check
502 CURRENT_FLOATING_POINT instead.
504 * interp.c (ifetch32): New function. Fetch 32 bit instruction.
505 (address_translation): Raise exception InstructionFetch when
506 translation fails and isINSTRUCTION.
508 * interp.c (sim_open, sim_write, sim_monitor, store_word,
509 sim_engine_run): Change type of of vaddr and paddr to
511 (address_translation, prefetch, load_memory, store_memory,
512 cache_op): Change type of vAddr and pAddr to address_word.
514 * gencode.c (build_instruction): Change type of vaddr and paddr to
517 Mon Oct 20 15:29:04 1997 Andrew Cagney <cagney@b1.cygnus.com>
519 * sim-main.h (ALU64_END, ALU32_END): Use ALU*_OVERFLOW_RESULT
520 macro to obtain result of ALU op.
522 Tue Oct 21 17:39:14 1997 Andrew Cagney <cagney@b1.cygnus.com>
524 * interp.c (sim_info): Call profile_print.
526 Mon Oct 20 13:31:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
528 * Makefile.in (SIM_OBJS): Add sim-profile.o module.
530 * sim-main.h (WITH_PROFILE): Do not define, defined in
531 common/sim-config.h. Use sim-profile module.
532 (simPROFILE): Delete defintion.
534 * interp.c (PROFILE): Delete definition.
535 (mips_option_handler): Delete 'p', 'y' and 'x' profile options.
536 (sim_close): Delete code writing profile histogram.
537 (mips_set_profile, mips_set_profile_size, writeout16, writeout32):
539 (sim_engine_run): Delete code profiling the PC.
541 Mon Oct 20 13:31:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
543 * sim-main.h (SIGNEXTEND): Force type of result to unsigned_word.
545 * interp.c (sim_monitor): Make register pointers of type
548 * sim-main.h: Make registers of type unsigned_word not
551 Thu Oct 16 10:31:39 1997 Andrew Cagney <cagney@b1.cygnus.com>
554 * sim-main.h (BYTES_IN_MMI_REGS, ..., SUB_REG_FETCH, ..., GPR_SB,
555 ...): Move to sim-main.h
558 * interp.c (sync_operation): Rename from SyncOperation, make
559 global, add SD argument.
560 (prefetch): Rename from Prefetch, make global, add SD argument.
561 (decode_coproc): Make global.
563 * sim-main.h (SyncOperation, DecodeCoproc, Pefetch): Define.
565 * gencode.c (build_instruction): Generate DecodeCoproc not
568 * interp.c (SETFCC, GETFCC, PREVCOC1): Move to sim-main.h
569 (SizeFGR): Move to sim-main.h
570 (simHALTEX, simHALTIN, simTRACE, simPROFILE, simDELAYSLOT,
571 simSIGINT, simJALDELAYSLOT): Move to sim-main.h
572 (FP_FLAGS, FP_ENABLE, FP_CAUSE, IR, UF, OF, DZ, IO, UO): Move to
574 (FP_FS, FP_MASK_RM, FP_SH_RM, FP_RM_NEAREST, FP_RM_TOPINF,
575 FP_RM_TOMINF, GETRM): Move to sim-main.h.
576 (Uncached, CachedNoncoherent, CachedCoherent, Cached,
577 isINSTRUCTION, ..., AccessLength_BYTE, ...): Move to sim-main.h.
578 (UserMode, BigEndianMem, ByteSwapMem, ReverseEndian,
579 BigEndianCPU, status_KSU_mask, ...). Moved to sim-main.h
581 * sim-main.h (ALU32_END, ALU64_END): Define. When overflow raise
583 (sim-alu.h): Include.
584 (NULLIFY_NIA, NULL_CIA, CPU_CIA): Define.
585 (sim_cia): Typedef to instruction_address.
587 Thu Oct 16 10:31:41 1997 Andrew Cagney <cagney@b1.cygnus.com>
589 * Makefile.in (interp.o): Rename generated file engine.c to
594 Thu Oct 16 10:31:40 1997 Andrew Cagney <cagney@b1.cygnus.com>
596 * gencode.c (build_instruction): Use FPR_STATE not fpr_state.
598 Thu Oct 16 10:31:39 1997 Andrew Cagney <cagney@b1.cygnus.com>
600 * gencode.c (build_instruction): For "FPSQRT", output correct
601 number of arguments to Recip.
603 Tue Oct 14 17:38:18 1997 Andrew Cagney <cagney@b1.cygnus.com>
605 * Makefile.in (interp.o): Depends on sim-main.h
607 * interp.c (mips16_entry, ColdReset,dotrace): Add SD argument. Use GPR not registers.
609 * sim-main.h (sim_cpu): Add registers, register_widths, fpr_state,
610 ipc, dspc, pending_*, hiaccess, loaccess, state, dsstate fields.
611 (REGISTERS, REGISTER_WIDTHS, FPR_STATE, IPC, DSPC, PENDING_*,
612 STATE, DSSTATE): Define
613 (GPR, FGRIDX, ..): Define.
615 * interp.c (registers, register_widths, fpr_state, ipc, dspc,
616 pending_*, hiaccess, loaccess, state, dsstate): Delete globals.
617 (GPR, FGRIDX, ...): Delete macros.
619 * interp.c: Update names to match defines from sim-main.h
621 Tue Oct 14 15:11:45 1997 Andrew Cagney <cagney@b1.cygnus.com>
623 * interp.c (sim_monitor): Add SD argument.
624 (sim_warning): Delete. Replace calls with calls to
626 (sim_error): Delete. Replace calls with sim_io_error.
627 (open_trace, writeout32, writeout16, getnum): Add SD argument.
628 (mips_set_profile): Rename from sim_set_profile. Add SD argument.
629 (mips_set_profile_size): Rename from sim_set_profile_size. Add SD
631 (mips_size): Rename from sim_size. Add SD argument.
633 * interp.c (simulator): Delete global variable.
634 (callback): Delete global variable.
635 (mips_option_handler, sim_open, sim_write, sim_read,
636 sim_store_register, sim_fetch_register, sim_info, sim_do_command,
637 sim_size,sim_monitor): Use sim_io_* not callback->*.
638 (sim_open): ZALLOC simulator struct.
639 (PROFILE): Do not define.
641 Tue Oct 14 13:35:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
643 * interp.c (sim_open), support.h: Replace CHECKSIM macro found in
644 support.h with corresponding code.
646 * sim-main.h (word64, uword64), support.h: Move definition to
648 (WORD64LO, WORD64HI, SET64LO, SET64HI, WORD64, UWORD64): Ditto.
651 * Makefile.in: Update dependencies
652 * interp.c: Do not include.
654 Tue Oct 14 13:35:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
656 * interp.c (address_translation, load_memory, store_memory,
657 cache_op): Rename to from AddressTranslation et.al., make global,
660 * sim-main.h (AddressTranslation, LoadMemory, StoreMemory,
663 * interp.c (SignalException): Rename to signal_exception, make
666 * interp.c (Interrupt, ...): Move definitions to sim-main.h.
668 * sim-main.h (SignalException, SignalExceptionInterrupt,
669 SignalExceptionInstructionFetch, SignalExceptionAddressStore,
670 SignalExceptionAddressLoad, SignalExceptionSimulatorFault,
671 SignalExceptionIntegerOverflow, SignalExceptionCoProcessorUnusable):
674 * interp.c, support.h: Use.
676 Tue Oct 14 13:19:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
678 * interp.c (ValueFPR, StoreFPR), sim-main.h: Make global, rename
679 to value_fpr / store_fpr. Add SD argument.
680 (NaN, Infinity, Less, Equal, AbsoluteValue, Negate, Add, Sub,
681 Multiply, Divide, Recip, SquareRoot, Convert): Make global.
683 * sim-main.h (ValueFPR, StoreFPR): Define.
685 Tue Oct 14 13:06:55 1997 Andrew Cagney <cagney@b1.cygnus.com>
687 * interp.c (sim_engine_run): Check consistency between configure
688 WITH_TARGET_WORD_BITSIZE and WITH_FLOATING_POINT and gensim GPRLEN
691 * configure.in (mips_bitsize): Configure WITH_TARGET_WORD_BITSIZE.
692 (mips_fpu): Configure WITH_FLOATING_POINT.
693 (mips_endian): Configure WITH_TARGET_ENDIAN.
696 Fri Oct 3 09:28:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
698 * configure: Regenerated to track ../common/aclocal.m4 changes.
701 Mon Aug 25 19:11:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
703 * interp.c (MAX_REG): Allow up-to 128 registers.
704 (LO1, HI1): Define value that matches REGISTER_NAMES in gdb.
705 (REGISTER_SA): Ditto.
706 (sim_open): Initialize register_widths for r5900 specific
708 (sim_fetch_register, sim_store_register): Check for request of
709 r5900 specific SA register. Check for request for hi 64 bits of
710 r5900 specific registers.
713 Mon Sep 29 14:45:00 1997 Bob Manson <manson@charmed.cygnus.com>
715 * configure: Regenerated.
717 Fri Sep 26 12:48:18 1997 Mark Alexander <marka@cygnus.com>
719 * interp.c: Allow Debug, DEPC, and EPC registers to be examined in GDB.
721 Thu Sep 25 11:15:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
723 * gencode.c (print_igen_insn_models): Assume certain architectures
724 include all mips* instructions.
725 (print_igen_insn_format): Use data_size==-1 as marker for MIPS16
728 * Makefile.in (tmp.igen): Add target. Generate igen input from
731 * gencode.c (FEATURE_IGEN): Define.
732 (main): Add --igen option. Generate output in igen format.
733 (process_instructions): Format output according to igen option.
734 (print_igen_insn_format): New function.
735 (print_igen_insn_models): New function.
736 (process_instructions): Only issue warnings and ignore
737 instructions when no FEATURE_IGEN.
739 Wed Sep 24 17:38:57 1997 Andrew Cagney <cagney@b1.cygnus.com>
741 * interp.c (COP_SD, COP_LD): Add UNUSED to pacify GCC for some
744 Tue Sep 23 11:04:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
746 * configure: Regenerated to track ../common/aclocal.m4 changes.
748 Tue Sep 23 10:19:51 1997 Andrew Cagney <cagney@b1.cygnus.com>
750 * Makefile.in (SIM_ALIGNMENT, SIM_ENDIAN, SIM_HOSTENDIAN,
751 SIM_RESERVED_BITS): Delete, moved to common.
752 (SIM_EXTRA_CFLAGS): Update.
754 Mon Sep 22 11:46:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
756 * configure.in: Configure non-strict memory alignment.
757 * configure: Regenerated to track ../common/aclocal.m4 changes.
759 Fri Sep 19 17:45:25 1997 Andrew Cagney <cagney@b1.cygnus.com>
761 * configure: Regenerated to track ../common/aclocal.m4 changes.
763 Sat Sep 20 14:07:28 1997 Gavin Koch <gavin@cygnus.com>
765 * gencode.c (SDBBP,DERET): Added (3900) insns.
766 (RFE): Turn on for 3900.
767 * interp.c (DebugBreakPoint,DEPC,Debug,Debug_*): Added.
768 (dsstate): Made global.
769 (SUBTARGET_R3900): Added.
770 (CANCELDELAYSLOT): New.
771 (SignalException): Ignore SystemCall rather than ignore and
772 terminate. Add DebugBreakPoint handling.
773 (decode_coproc): New insns RFE, DERET; and new registers Debug
774 and DEPC protected by SUBTARGET_R3900.
775 (sim_engine_run): Use CANCELDELAYSLOT rather than clearing
777 * Makefile.in,configure.in: Add mips subtarget option.
780 Fri Sep 19 09:33:27 1997 Gavin Koch <gavin@cygnus.com>
782 * gencode.c: Add r3900 (tx39).
785 * gencode.c: Fix some configuration problems by improving
786 the relationship between tx19 and tx39.
789 Tue Sep 16 15:52:04 1997 Gavin Koch <gavin@cygnus.com>
791 * gencode.c (build_instruction): Don't need to subtract 4 for
794 Tue Sep 16 11:32:28 1997 Gavin Koch <gavin@cygnus.com>
796 * interp.c: Correct some HASFPU problems.
798 Mon Sep 15 17:36:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
800 * configure: Regenerated to track ../common/aclocal.m4 changes.
802 Fri Sep 12 12:01:39 1997 Andrew Cagney <cagney@b1.cygnus.com>
804 * interp.c (mips_options): Fix samples option short form, should
807 Thu Sep 11 09:35:29 1997 Andrew Cagney <cagney@b1.cygnus.com>
809 * interp.c (sim_info): Enable info code. Was just returning.
811 Tue Sep 9 17:30:57 1997 Andrew Cagney <cagney@b1.cygnus.com>
813 * interp.c (decode_coproc): Clarify warning about unsuported MTC0,
816 Tue Sep 9 16:28:28 1997 Andrew Cagney <cagney@b1.cygnus.com>
818 * gencode.c (build_instruction): Use SIGNED64 for 64 bit
820 (build_instruction): Ditto for LL.
823 Sun Sep 7 16:05:46 1997 Gavin Koch <gavin@cygnus.com>
825 * mips/configure.in, mips/gencode: Add tx19/r1900.
828 Thu Sep 4 17:21:23 1997 Doug Evans <dje@seba>
830 * configure: Regenerated to track ../common/aclocal.m4 changes.
833 Mon Sep 1 18:43:30 1997 Andrew Cagney <cagney@b1.cygnus.com>
835 * gencode.c (build_instruction): For "pabsw" and "pabsh", check
836 for overflow due to ABS of MININT, set result to MAXINT.
837 (build_instruction): For "psrlvw", signextend bit 31.
840 Wed Aug 27 18:13:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
842 * configure: Regenerated to track ../common/aclocal.m4 changes.
845 Wed Aug 27 14:12:27 1997 Andrew Cagney <cagney@b1.cygnus.com>
847 * interp.c (sim_open): Add call to sim_analyze_program, update
850 Tue Aug 26 10:40:07 1997 Andrew Cagney <cagney@b1.cygnus.com>
852 * interp.c (sim_kill): Delete.
853 (sim_create_inferior): Add ABFD argument. Set PC from same.
854 (sim_load): Move code initializing trap handlers from here.
856 (sim_load): Delete, use sim-hload.c.
858 * Makefile.in (SIM_OBJS): Add sim-hload.o module.
860 Mon Aug 25 17:50:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
862 * configure: Regenerated to track ../common/aclocal.m4 changes.
865 Mon Aug 25 15:59:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
867 * interp.c (sim_open): Add ABFD argument.
868 (sim_load): Move call to sim_config from here.
869 (sim_open): To here. Check return status.
872 * gencode.c (build_instruction): Do not define x8000000000000000,
873 x7FFFFFFFFFFFFFFF, or xFFFFFFFF80000000.
877 Mon Jul 28 19:49:29 1997 Andrew Cagney <cagney@b1.cygnus.com>
879 * gencode.c (build_instruction): For "pdivw", "pdivbw" and
880 "pdivuw" check for overflow due to signed divide by -1.
883 Fri Jul 25 15:00:45 1997 Gavin Koch <gavin@cygnus.com>
885 * gencode.c (build_instruction): Two arg MADD should
886 not assign result to $0.
889 Thu Jul 10 11:58:48 1997 Andrew Cagney <cagney@critters.cygnus.com>
891 * gencode.c (build_instruction): For "ppac5" use unsigned
892 arrithmetic so that the sign bit doesn't smear when right shifted.
893 (build_instruction): For "pdiv" perform sign extension when
894 storing results in HI and LO.
895 (build_instructions): For "pdiv" and "pdivbw" check for
897 (build_instruction): For "pmfhl.slw" update hi part of dest
898 register as well as low part.
899 (build_instruction): For "pmfhl" portably handle long long values.
900 (build_instruction): For "pmfhl.sh" correctly negative values.
901 Store half words 2 and three in the correct place.
902 (build_instruction): For "psllvw", sign extend value after shift.
905 Thu Jun 26 12:13:17 1997 Angela Marie Thomas (angela@cygnus.com)
907 * sim/mips/configure: Change default_sim_endian to 0 (bi-endian)
908 * sim/mips/configure.in: Regenerate.
910 Wed Jul 9 10:29:21 1997 Andrew Cagney <cagney@critters.cygnus.com>
912 * interp.c (SUB_REG_UW, SUB_REG_SW, SUB_REG_*): Use more explicit
913 signed8, unsigned8 et.al. types.
916 * gencode.c (build_instruction): For PMULTU* do not sign extend
917 registers. Make generated code easier to debug.
920 * interp.c (SUB_REG_FETCH): Handle both little and big endian
921 hosts when selecting subreg.
924 Tue Jul 8 18:07:20 1997 Andrew Cagney <cagney@andros.cygnus.com>
926 * gencode.c (type_for_data_len): For 32bit operations concerned
927 with overflow, perform op using 64bits.
928 (build_instruction): For PADD, always compute operation using type
929 returned by type_for_data_len.
930 (build_instruction): For PSUBU, when overflow, saturate to zero as
934 Wed Jul 2 11:54:10 1997 Jeffrey A Law (law@cygnus.com)
937 * gencode.c (build_instruction): Handle "pext5" according to
938 version 1.95 of the r5900 ISA.
940 * gencode.c (build_instruction): Handle "ppac5" according to
941 version 1.95 of the r5900 ISA.
944 * interp.c (sim_engine_run): Reset the ZERO register to zero
945 regardless of FEATURE_WARN_ZERO.
946 * gencode.c (FEATURE_WARNINGS): Remove FEATURE_WARN_ZERO.
948 Wed Jun 4 10:43:14 1997 Andrew Cagney <cagney@b1.cygnus.com>
950 * interp.c (decode_coproc): Implement MTC0 N, CAUSE.
951 (SignalException): For BreakPoints ignore any mode bits and just
953 (SignalException): Always set the CAUSE register.
955 Tue Jun 3 05:00:33 1997 Andrew Cagney <cagney@b1.cygnus.com>
957 * interp.c (SignalException): Clear the simDELAYSLOT flag when an
958 exception has been taken.
960 * interp.c: Implement the ERET and mt/f sr instructions.
963 Mon Jun 2 23:28:19 1997 Andrew Cagney <cagney@b1.cygnus.com>
965 * gencode.c (build_instruction): For paddu, extract unsigned
968 * gencode.c (build_instruction): Saturate padds instead of padd
972 Sat May 31 00:44:16 1997 Andrew Cagney <cagney@b1.cygnus.com>
974 * interp.c (SignalException): Don't bother restarting an
977 Fri May 30 23:41:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
979 * interp.c (SignalException): Really take an interrupt.
980 (interrupt_event): Only deliver interrupts when enabled.
982 Tue May 27 20:08:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
984 * interp.c (sim_info): Only print info when verbose.
985 (sim_info) Use sim_io_printf for output.
987 Tue May 27 14:22:23 1997 Andrew Cagney <cagney@b1.cygnus.com>
989 * interp.c (CoProcPresent): Add UNUSED attribute - not used by all
992 Tue May 27 14:22:23 1997 Andrew Cagney <cagney@b1.cygnus.com>
994 * interp.c (sim_do_command): Check for common commands if a
995 simulator specific command fails.
997 Thu May 22 09:32:03 1997 Gavin Koch <gavin@cygnus.com>
999 * interp.c (sim_engine_run): ifdef out uses of simSTOP, simSTEP
1000 and simBE when DEBUG is defined.
1002 Wed May 21 09:08:10 1997 Andrew Cagney <cagney@b1.cygnus.com>
1004 * interp.c (interrupt_event): New function. Pass exception event
1005 onto exception handler.
1007 * configure.in: Check for stdlib.h.
1008 * configure: Regenerate.
1010 * gencode.c (build_instruction): Add UNUSED attribute to tempS
1011 variable declaration.
1012 (build_instruction): Initialize memval1.
1013 (build_instruction): Add UNUSED attribute to byte, bigend,
1015 (build_operands): Ditto.
1017 * interp.c: Fix GCC warnings.
1018 (sim_get_quit_code): Delete.
1020 * configure.in: Add INLINE, ENDIAN, HOSTENDIAN and WARNINGS.
1021 * Makefile.in: Ditto.
1022 * configure: Re-generate.
1024 * Makefile.in (SIM_OBJS): Add sim-watch.o module.
1026 Tue May 20 15:08:56 1997 Andrew Cagney <cagney@b1.cygnus.com>
1028 * interp.c (mips_option_handler): New function parse argumes using
1030 (myname): Replace with STATE_MY_NAME.
1031 (sim_open): Delete check for host endianness - performed by
1033 (simHOSTBE, simBE): Delete, replaced by sim-endian flags.
1034 (sim_open): Move much of the initialization from here.
1035 (sim_load): To here. After the image has been loaded and
1037 (sim_open): Move ColdReset from here.
1038 (sim_create_inferior): To here.
1039 (sim_open): Make FP check less dependant on host endianness.
1041 * Makefile.in (SIM_RUN_OBJS): Set to nrun.o - use new version or
1043 * interp.c (sim_set_callbacks): Delete.
1045 * interp.c (membank, membank_base, membank_size): Replace with
1046 STATE_MEMORY, STATE_MEM_SIZE, STATE_MEM_BASE.
1047 (sim_open): Remove call to callback->init. gdb/run do this.
1051 * sim-main.h (SIM_HAVE_FLATMEM): Define.
1053 * interp.c (big_endian_p): Delete, replaced by
1054 current_target_byte_order.
1056 Tue May 20 13:55:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
1058 * interp.c (host_read_long, host_read_word, host_swap_word,
1059 host_swap_long): Delete. Using common sim-endian.
1060 (sim_fetch_register, sim_store_register): Use H2T.
1061 (pipeline_ticks): Delete. Handled by sim-events.
1063 (sim_engine_run): Update.
1065 Tue May 20 13:42:03 1997 Andrew Cagney <cagney@b1.cygnus.com>
1067 * interp.c (sim_stop_reason): Move code determining simEXCEPTION
1069 (SignalException): To here. Signal using sim_engine_halt.
1070 (sim_stop_reason): Delete, moved to common.
1072 Tue May 20 10:19:48 1997 Andrew Cagney <cagney@b2.cygnus.com>
1074 * interp.c (sim_open): Add callback argument.
1075 (sim_set_callbacks): Delete SIM_DESC argument.
1078 Mon May 19 18:20:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
1080 * Makefile.in (SIM_OBJS): Add common modules.
1082 * interp.c (sim_set_callbacks): Also set SD callback.
1083 (set_endianness, xfer_*, swap_*): Delete.
1084 (host_read_word, host_read_long, host_swap_word, host_swap_long):
1085 Change to functions using sim-endian macros.
1086 (control_c, sim_stop): Delete, use common version.
1087 (simulate): Convert into.
1088 (sim_engine_run): This function.
1089 (sim_resume): Delete.
1091 * interp.c (simulation): New variable - the simulator object.
1092 (sim_kind): Delete global - merged into simulation.
1093 (sim_load): Cleanup. Move PC assignment from here.
1094 (sim_create_inferior): To here.
1096 * sim-main.h: New file.
1097 * interp.c (sim-main.h): Include.
1099 Thu Apr 24 00:39:51 1997 Doug Evans <dje@canuck.cygnus.com>
1101 * configure: Regenerated to track ../common/aclocal.m4 changes.
1103 Wed Apr 23 17:32:19 1997 Doug Evans <dje@canuck.cygnus.com>
1105 * tconfig.in (SIM_HAVE_BIENDIAN): Define.
1107 Mon Apr 21 17:16:13 1997 Gavin Koch <gavin@cygnus.com>
1109 * gencode.c (build_instruction): DIV instructions: check
1110 for division by zero and integer overflow before using
1111 host's division operation.
1113 Thu Apr 17 03:18:14 1997 Doug Evans <dje@canuck.cygnus.com>
1115 * Makefile.in (SIM_OBJS): Add sim-load.o.
1116 * interp.c: #include bfd.h.
1117 (target_byte_order): Delete.
1118 (sim_kind, myname, big_endian_p): New static locals.
1119 (sim_open): Set sim_kind, myname. Move call to set_endianness to
1120 after argument parsing. Recognize -E arg, set endianness accordingly.
1121 (sim_load): Return SIM_RC. New arg abfd. Call sim_load_file to
1122 load file into simulator. Set PC from bfd.
1123 (sim_create_inferior): Return SIM_RC. Delete arg start_address.
1124 (set_endianness): Use big_endian_p instead of target_byte_order.
1126 Wed Apr 16 17:55:37 1997 Andrew Cagney <cagney@b1.cygnus.com>
1128 * interp.c (sim_size): Delete prototype - conflicts with
1129 definition in remote-sim.h. Correct definition.
1131 Mon Apr 7 15:45:02 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1133 * configure: Regenerated to track ../common/aclocal.m4 changes.
1136 Wed Apr 2 15:06:28 1997 Doug Evans <dje@canuck.cygnus.com>
1138 * interp.c (sim_open): New arg `kind'.
1140 * configure: Regenerated to track ../common/aclocal.m4 changes.
1142 Wed Apr 2 14:34:19 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1144 * configure: Regenerated to track ../common/aclocal.m4 changes.
1146 Tue Mar 25 11:38:22 1997 Doug Evans <dje@canuck.cygnus.com>
1148 * interp.c (sim_open): Set optind to 0 before calling getopt.
1150 Wed Mar 19 01:14:00 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1152 * configure: Regenerated to track ../common/aclocal.m4 changes.
1154 Mon Mar 17 10:52:59 1997 Gavin Koch <gavin@cetus.cygnus.com>
1156 * interp.c : Replace uses of pr_addr with pr_uword64
1157 where the bit length is always 64 independent of SIM_ADDR.
1158 (pr_uword64) : added.
1160 Mon Mar 17 15:10:07 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1162 * configure: Re-generate.
1164 Fri Mar 14 10:34:11 1997 Michael Meissner <meissner@cygnus.com>
1166 * configure: Regenerate to track ../common/aclocal.m4 changes.
1168 Thu Mar 13 12:51:36 1997 Doug Evans <dje@canuck.cygnus.com>
1170 * interp.c (sim_open): New SIM_DESC result. Argument is now
1172 (other sim_*): New SIM_DESC argument.
1174 start-sanitize-r5900
1175 Wed Feb 26 18:32:21 1997 Gavin Koch <gavin@cygnus.com>
1177 * gencode.c (POP_AND,POP_OR,POP_NOR,POP_XOR):
1178 Change values to avoid overloading DOUBLEWORD which is tested
1180 * gencode.c: reinstate "offending code".
1183 Mon Feb 24 22:47:14 1997 Dawn Perchik <dawn@cygnus.com>
1185 * interp.c: Fix printing of addresses for non-64-bit targets.
1186 (pr_addr): Add function to print address based on size.
1187 start-sanitize-r5900
1188 * gencode.c: #ifdef out offending code until a permanent fix
1189 can be added. Code is causing build errors for non-5900 mips targets.
1192 start-sanitize-r5900
1193 Thu Feb 20 10:40:24 1997 Gavin Koch <gavin@cetus.cygnus.com>
1195 * gencode.c (process_instructions): Correct test for ISA dependent
1196 architecture bits in isa field of MIPS_DECODE.
1199 Wed Feb 19 14:42:09 1997 Mark Alexander <marka@cygnus.com>
1201 * interp.c (simopen): Add support for LSI MiniRISC PMON vectors.
1203 start-sanitize-r5900
1204 Tue Feb 18 17:03:47 1997 Gavin Koch <gavin@cygnus.com>
1206 * gencode.c (MIPS_DECODE): Correct instruction feature flags for
1210 Thu Feb 13 14:08:30 1997 Ian Lance Taylor <ian@cygnus.com>
1212 * gencode.c (build_mips16_operands): Correct computation of base
1213 address for extended PC relative instruction.
1215 start-sanitize-r5900
1216 Fri Feb 7 11:12:44 1997 Gavin Koch <gavin@cygnus.com>
1218 * Makefile.in, configure, configure.in, gencode.c,
1219 interp.c, support.h: add r5900.
1222 Thu Feb 6 17:16:15 1997 Ian Lance Taylor <ian@cygnus.com>
1224 * interp.c (mips16_entry): Add support for floating point cases.
1225 (SignalException): Pass floating point cases to mips16_entry.
1226 (ValueFPR): Don't restrict fmt_single and fmt_word to even
1228 (StoreFPR): Likewise. Also, don't clobber fpr + 1 for fmt_single
1230 (COP_LW): Pass fmt_word rather than fmt_uninterpreted to StoreFPR,
1231 and then set the state to fmt_uninterpreted.
1232 (COP_SW): Temporarily set the state to fmt_word while calling
1235 Tue Feb 4 16:48:25 1997 Ian Lance Taylor <ian@cygnus.com>
1237 * gencode.c (build_instruction): The high order may be set in the
1238 comparison flags at any ISA level, not just ISA 4.
1240 Tue Feb 4 13:33:30 1997 Doug Evans <dje@canuck.cygnus.com>
1242 * Makefile.in (@COMMON_MAKEFILE_FRAG): Use
1243 COMMON_{PRE,POST}_CONFIG_FRAG instead.
1244 * configure.in: sinclude ../common/aclocal.m4.
1245 * configure: Regenerated.
1247 Fri Jan 31 11:11:45 1997 Ian Lance Taylor <ian@cygnus.com>
1249 * configure: Rebuild after change to aclocal.m4.
1251 Thu Jan 23 11:46:23 1997 Stu Grossman (grossman@critters.cygnus.com)
1253 * configure configure.in Makefile.in: Update to new configure
1254 scheme which is more compatible with WinGDB builds.
1255 * configure.in: Improve comment on how to run autoconf.
1256 * configure: Re-run autoconf to get new ../common/aclocal.m4.
1257 * Makefile.in: Use autoconf substitution to install common
1260 Wed Jan 8 12:39:03 1997 Jim Wilson <wilson@cygnus.com>
1262 * gencode.c (build_instruction): Use BigEndianCPU instead of
1265 Thu Jan 02 22:23:04 1997 Mark Alexander <marka@cygnus.com>
1267 * interp.c (sim_monitor): Make output to stdout visible in
1268 wingdb's I/O log window.
1270 Tue Dec 31 07:04:00 1996 Mark Alexander <marka@cygnus.com>
1272 * support.h: Undo previous change to SIGTRAP
1275 Mon Dec 30 17:36:06 1996 Ian Lance Taylor <ian@cygnus.com>
1277 * interp.c (store_word, load_word): New static functions.
1278 (mips16_entry): New static function.
1279 (SignalException): Look for mips16 entry and exit instructions.
1280 (simulate): Use the correct index when setting fpr_state after
1281 doing a pending move.
1283 Sun Dec 29 09:37:18 1996 Mark Alexander <marka@cygnus.com>
1285 * interp.c: Fix byte-swapping code throughout to work on
1286 both little- and big-endian hosts.
1288 Sun Dec 29 09:18:32 1996 Mark Alexander <marka@cygnus.com>
1290 * support.h: Make definitions of SIGTRAP and SIGQUIT consistent
1291 with gdb/config/i386/xm-windows.h.
1293 Fri Dec 27 22:48:51 1996 Mark Alexander <marka@cygnus.com>
1295 * gencode.c (build_instruction): Work around MSVC++ code gen bug
1296 that messes up arithmetic shifts.
1298 Fri Dec 20 11:04:05 1996 Stu Grossman (grossman@critters.cygnus.com)
1300 * support.h: Use _WIN32 instead of __WIN32__. Also add defs for
1301 SIGTRAP and SIGQUIT for _WIN32.
1303 Thu Dec 19 14:07:27 1996 Ian Lance Taylor <ian@cygnus.com>
1305 * gencode.c (build_instruction) [MUL]: Cast operands to word64, to
1306 force a 64 bit multiplication.
1307 (build_instruction) [OR]: In mips16 mode, don't do anything if the
1308 destination register is 0, since that is the default mips16 nop
1311 Mon Dec 16 14:59:38 1996 Ian Lance Taylor <ian@cygnus.com>
1313 * gencode.c (MIPS16_DECODE): SWRASP is I8, not RI.
1314 (build_endian_shift): Don't check proc64.
1315 (build_instruction): Always set memval to uword64. Cast op2 to
1316 uword64 when shifting it left in memory instructions. Always use
1317 the same code for stores--don't special case proc64.
1319 * gencode.c (build_mips16_operands): Fix base PC value for PC
1321 (build_instruction): Call JALDELAYSLOT rather than DELAYSLOT for a
1323 * interp.c (simJALDELAYSLOT): Define.
1324 (JALDELAYSLOT): Define.
1325 (INDELAYSLOT, INJALDELAYSLOT): Define.
1326 (simulate): Clear simJALDELAYSLOT when simDELAYSLOT is cleared.
1328 Tue Dec 24 22:11:20 1996 Angela Marie Thomas (angela@cygnus.com)
1330 * interp.c (sim_open): add flush_cache as a PMON routine
1331 (sim_monitor): handle flush_cache by ignoring it
1333 Wed Dec 11 13:53:51 1996 Jim Wilson <wilson@cygnus.com>
1335 * gencode.c (build_instruction): Use !ByteSwapMem instead of
1337 * interp.c (CONFIG, config_EP_{mask,shift,D,DxxDxx, config_BE): Delete.
1338 (BigEndianMem): Rename to ByteSwapMem and change sense.
1339 (BigEndianCPU, sim_write, LoadMemory, StoreMemory): Change
1340 BigEndianMem references to !ByteSwapMem.
1341 (set_endianness): New function, with prototype.
1342 (sim_open): Call set_endianness.
1343 (sim_info): Use simBE instead of BigEndianMem.
1344 (xfer_direct_word, xfer_direct_long, swap_direct_word,
1345 swap_direct_long, xfer_big_word, xfer_big_long, xfer_little_word,
1346 xfer_little_long, swap_word, swap_long): Delete unnecessary MSC_VER
1347 ifdefs, keeping the prototype declaration.
1348 (swap_word): Rewrite correctly.
1349 (ColdReset): Delete references to CONFIG. Delete endianness related
1350 code; moved to set_endianness.
1352 Tue Dec 10 11:32:04 1996 Jim Wilson <wilson@cygnus.com>
1354 * gencode.c (build_instruction, case JUMP): Truncate PC to 32 bits.
1355 * interp.c (CHECKHILO): Define away.
1356 (simSIGINT): New macro.
1357 (membank_size): Increase from 1MB to 2MB.
1358 (control_c): New function.
1359 (sim_resume): Rename parameter signal to signal_number. Add local
1360 variable prev. Call signal before and after simulate.
1361 (sim_stop_reason): Add simSIGINT support.
1362 (sim_warning, sim_error, dotrace, SignalException): Define as stdarg
1364 (sim_warning): Delete call to SignalException. Do call printf_filtered
1366 (AddressTranslation): Add #ifdef DEBUG around debugging message and
1367 a call to sim_warning.
1369 Wed Nov 27 11:53:50 1996 Ian Lance Taylor <ian@cygnus.com>
1371 * gencode.c (process_instructions): If ! proc64, skip DOUBLEWORD
1372 16 bit instructions.
1374 Tue Nov 26 11:53:12 1996 Ian Lance Taylor <ian@cygnus.com>
1376 Add support for mips16 (16 bit MIPS implementation):
1377 * gencode.c (inst_type): Add mips16 instruction encoding types.
1378 (GETDATASIZEINSN): Define.
1379 (MIPS_DECODE): Add REG flag to dsllv, dsrav, and dsrlv. Add
1380 jalx. Add LEFT flag to mfhi and mflo. Add RIGHT flag to mthi and
1382 (MIPS16_DECODE): New table, for mips16 instructions.
1383 (bitmap_val): New static function.
1384 (struct mips16_op): Define.
1385 (mips16_op_table): New table, for mips16 operands.
1386 (build_mips16_operands): New static function.
1387 (process_instructions): If PC is odd, decode a mips16
1388 instruction. Break out instruction handling into new
1389 build_instruction function.
1390 (build_instruction): New static function, broken out of
1391 process_instructions. Check modifiers rather than flags for SHIFT
1392 bit count and m[ft]{hi,lo} direction.
1393 (usage): Pass program name to fprintf.
1394 (main): Remove unused variable this_option_optind. Change
1395 ``*loptarg++'' to ``loptarg++''.
1396 (my_strtoul): Parenthesize && within ||.
1397 * interp.c (LoadMemory): Accept a halfword pAddr if vAddr is odd.
1398 (simulate): If PC is odd, fetch a 16 bit instruction, and
1399 increment PC by 2 rather than 4.
1400 * configure.in: Add case for mips16*-*-*.
1401 * configure: Rebuild.
1403 Fri Nov 22 08:49:36 1996 Mark Alexander <marka@cygnus.com>
1405 * interp.c: Allow -t to enable tracing in standalone simulator.
1406 Fix garbage output in trace file and error messages.
1408 Wed Nov 20 01:54:37 1996 Doug Evans <dje@canuck.cygnus.com>
1410 * Makefile.in: Delete stuff moved to ../common/Make-common.in.
1411 (SIM_{OBJS,EXTRA_CFLAGS,EXTRA_CLEAN}): Define.
1412 * configure.in: Simplify using macros in ../common/aclocal.m4.
1413 * configure: Regenerated.
1414 * tconfig.in: New file.
1416 Tue Nov 12 13:34:00 1996 Dawn Perchik <dawn@cygnus.com>
1418 * interp.c: Fix bugs in 64-bit port.
1419 Use ansi function declarations for msvc compiler.
1420 Initialize and test file pointer in trace code.
1421 Prevent duplicate definition of LAST_EMED_REGNUM.
1423 Tue Oct 15 11:07:06 1996 Mark Alexander <marka@cygnus.com>
1425 * interp.c (xfer_big_long): Prevent unwanted sign extension.
1427 Thu Sep 26 17:35:00 1996 James G. Smith <jsmith@cygnus.co.uk>
1429 * interp.c (SignalException): Check for explicit terminating
1431 * gencode.c: Pass instruction value through SignalException()
1432 calls for Trap, Breakpoint and Syscall.
1434 Thu Sep 26 11:35:17 1996 James G. Smith <jsmith@cygnus.co.uk>
1436 * interp.c (SquareRoot): Add HAVE_SQRT check to ensure sqrt() is
1437 only used on those hosts that provide it.
1438 * configure.in: Add sqrt() to list of functions to be checked for.
1439 * config.in: Re-generated.
1440 * configure: Re-generated.
1442 Fri Sep 20 15:47:12 1996 Ian Lance Taylor <ian@cygnus.com>
1444 * gencode.c (process_instructions): Call build_endian_shift when
1445 expanding STORE RIGHT, to fix swr.
1446 * support.h (SIGNEXTEND): If the sign bit is not set, explicitly
1447 clear the high bits.
1448 * interp.c (Convert): Fix fmt_single to fmt_long to not truncate.
1449 Fix float to int conversions to produce signed values.
1451 Thu Sep 19 15:34:17 1996 Ian Lance Taylor <ian@cygnus.com>
1453 * gencode.c (MIPS_DECODE): Set UNSIGNED for multu instruction.
1454 (process_instructions): Correct handling of nor instruction.
1455 Correct shift count for 32 bit shift instructions. Correct sign
1456 extension for arithmetic shifts to not shift the number of bits in
1457 the type. Fix 64 bit multiply high word calculation. Fix 32 bit
1458 unsigned multiply. Fix ldxc1 and friends to use coprocessor 1.
1460 * interp.c (CHECKHILO): Don't set HIACCESS, LOACCESS, or HLPC.
1461 It's OK to have a mult follow a mult. What's not OK is to have a
1462 mult follow an mfhi.
1463 (Convert): Comment out incorrect rounding code.
1465 Mon Sep 16 11:38:16 1996 James G. Smith <jsmith@cygnus.co.uk>
1467 * interp.c (sim_monitor): Improved monitor printf
1468 simulation. Tidied up simulator warnings, and added "--log" option
1469 for directing warning message output.
1470 * gencode.c: Use sim_warning() rather than WARNING macro.
1472 Thu Aug 22 15:03:12 1996 Ian Lance Taylor <ian@cygnus.com>
1474 * Makefile.in (gencode): Depend upon gencode.o, getopt.o, and
1475 getopt1.o, rather than on gencode.c. Link objects together.
1476 Don't link against -liberty.
1477 (gencode.o, getopt.o, getopt1.o): New targets.
1478 * gencode.c: Include <ctype.h> and "ansidecl.h".
1479 (AND): Undefine after including "ansidecl.h".
1480 (ULONG_MAX): Define if not defined.
1481 (OP_*): Don't define macros; now defined in opcode/mips.h.
1482 (main): Call my_strtoul rather than strtoul.
1483 (my_strtoul): New static function.
1485 Wed Jul 17 18:12:38 1996 Stu Grossman (grossman@critters.cygnus.com)
1487 * gencode.c (process_instructions): Generate word64 and uword64
1488 instead of `long long' and `unsigned long long' data types.
1489 * interp.c: #include sysdep.h to get signals, and define default
1491 * (Convert): Work around for Visual-C++ compiler bug with type
1493 * support.h: Make things compile under Visual-C++ by using
1494 __int64 instead of `long long'. Change many refs to long long
1495 into word64/uword64 typedefs.
1497 Wed Jun 26 12:24:55 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
1499 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir,
1500 INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set values.
1502 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
1503 (AC_PROG_INSTALL): Added.
1504 (AC_PROG_CC): Moved to before configure.host call.
1505 * configure: Rebuilt.
1507 Wed Jun 5 08:28:13 1996 James G. Smith <jsmith@cygnus.co.uk>
1509 * configure.in: Define @SIMCONF@ depending on mips target.
1510 * configure: Rebuild.
1511 * Makefile.in (run): Add @SIMCONF@ to control simulator
1513 * gencode.c: Change LOADDRMASK to 64bit memory model only.
1514 * interp.c: Remove some debugging, provide more detailed error
1515 messages, update memory accesses to use LOADDRMASK.
1517 Mon Jun 3 11:55:03 1996 Ian Lance Taylor <ian@cygnus.com>
1519 * configure.in: Add calls to AC_CONFIG_HEADER, AC_CHECK_HEADERS,
1520 AC_CHECK_LIB, and AC_CHECK_FUNCS. Change AC_OUTPUT to set
1522 * configure: Rebuild.
1523 * config.in: New file, generated by autoheader.
1524 * interp.c: Include "config.h". Include <stdlib.h>, <string.h>,
1525 and <strings.h> if they exist. Replace #ifdef sun with #ifdef
1526 HAVE_ANINT and HAVE_AINT, as appropriate.
1527 * Makefile.in (run): Use @LIBS@ rather than -lm.
1528 (interp.o): Depend upon config.h.
1529 (Makefile): Just rebuild Makefile.
1530 (clean): Remove stamp-h.
1531 (mostlyclean): Make the same as clean, not as distclean.
1532 (config.h, stamp-h): New targets.
1534 Fri May 10 00:41:17 1996 James G. Smith <jsmith@cygnus.co.uk>
1536 * interp.c (ColdReset): Fix boolean test. Make all simulator
1539 Wed May 8 15:12:58 1996 James G. Smith <jsmith@cygnus.co.uk>
1541 * interp.c (xfer_direct_word, xfer_direct_long,
1542 swap_direct_word, swap_direct_long, xfer_big_word,
1543 xfer_big_long, xfer_little_word, xfer_little_long,
1544 swap_word,swap_long): Added.
1545 * interp.c (ColdReset): Provide function indirection to
1546 host<->simulated_target transfer routines.
1547 * interp.c (sim_store_register, sim_fetch_register): Updated to
1548 make use of indirected transfer routines.
1550 Fri Apr 19 15:48:24 1996 James G. Smith <jsmith@cygnus.co.uk>
1552 * gencode.c (process_instructions): Ensure FP ABS instruction
1554 * interp.c (AbsoluteValue): Add routine. Also provide simple PMON
1555 system call support.
1557 Wed Apr 10 09:51:38 1996 James G. Smith <jsmith@cygnus.co.uk>
1559 * interp.c (sim_do_command): Complain if callback structure not
1562 Thu Mar 28 13:50:51 1996 James G. Smith <jsmith@cygnus.co.uk>
1564 * interp.c (Convert): Provide round-to-nearest and round-to-zero
1565 support for Sun hosts.
1566 * Makefile.in (gencode): Ensure the host compiler and libraries
1567 used for cross-hosted build.
1569 Wed Mar 27 14:42:12 1996 James G. Smith <jsmith@cygnus.co.uk>
1571 * interp.c, gencode.c: Some more (TODO) tidying.
1573 Thu Mar 7 11:19:33 1996 James G. Smith <jsmith@cygnus.co.uk>
1575 * gencode.c, interp.c: Replaced explicit long long references with
1576 WORD64HI, WORD64LO, SET64HI and SET64LO macro calls.
1577 * support.h (SET64LO, SET64HI): Macros added.
1579 Wed Feb 21 12:16:21 1996 Ian Lance Taylor <ian@cygnus.com>
1581 * configure: Regenerate with autoconf 2.7.
1583 Tue Jan 30 08:48:18 1996 Fred Fish <fnf@cygnus.com>
1585 * interp.c (LoadMemory): Enclose text following #endif in /* */.
1586 * support.h: Remove superfluous "1" from #if.
1587 * support.h (CHECKSIM): Remove stray 'a' at end of line.
1589 Mon Dec 4 11:44:40 1995 Jamie Smith <jsmith@cygnus.com>
1591 * interp.c (StoreFPR): Control UndefinedResult() call on
1592 WARN_RESULT manifest.
1594 Fri Dec 1 16:37:19 1995 James G. Smith <jsmith@cygnus.co.uk>
1596 * gencode.c: Tidied instruction decoding, and added FP instruction
1599 * interp.c: Added dineroIII, and BSD profiling support. Also
1600 run-time FP handling.
1602 Sun Oct 22 00:57:18 1995 James G. Smith <jsmith@pasanda.cygnus.co.uk>
1604 * Changelog, Makefile.in, README.Cygnus, configure, configure.in,
1605 gencode.c, interp.c, support.h: created.