2 Tue Feb 24 14:44:18 1998 Andrew Cagney <cagney@b1.cygnus.com>
4 * r5900.igen: Add tracing to all p* instructions.
6 Tue Feb 24 02:47:33 1998 Andrew Cagney <cagney@b1.cygnus.com>
8 * interp.c (sim_store_register, sim_fetch_register): Pull swifty
9 to get gdb talking to re-aranged sim_cpu register structure.
12 Fri Feb 20 17:43:21 1998 Andrew Cagney <cagney@b1.cygnus.com>
14 * sim-main.h (Max, Min): Declare.
16 * interp.c (Max, Min): New functions.
18 * mips.igen (BC1): Add tracing.
21 Fri Feb 20 16:27:17 1998 Andrew Cagney <cagney@b1.cygnus.com>
23 * mdmx.igen: Tag all functions as requiring either with mdmx or
28 Fri Feb 20 15:55:51 1998 Andrew Cagney <cagney@b1.cygnus.com>
30 * configure.in (SIM_AC_OPTION_FLOAT): For r5900, set FP bit size
32 (SIM_AC_OPTION_BITSIZE): For r5900, set nr address bits to 32.
34 * mips.igen (C.cond.fmt, ..): Not part of r5900 insn set.
36 * r5900.igen: Rewrite.
38 * sim-main.h: Move r5900 registers to a separate _sim_r5900_cpu
40 (GPR_SB, GPR_SH, GPR_SW, GPR_SD, GPR_UB, GPR_UH, GPR_UW, GPR_UD):
41 Define in terms of GPR/GPR1 instead of REGISTERS/REGISTERS.1
44 Thu Feb 19 14:50:00 1998 John Metzler <jmetzler@cygnus.com>
46 * interp.c Added memory map for stack in vr4100
48 Thu Feb 19 10:21:21 1998 Gavin Koch <gavin@cygnus.com>
50 * interp.c (load_memory): Add missing "break"'s.
52 Tue Feb 17 12:45:35 1998 Andrew Cagney <cagney@b1.cygnus.com>
54 * interp.c (sim_store_register, sim_fetch_register): Pass in
55 length parameter. Return -1.
57 Tue Feb 10 11:57:40 1998 Ian Carmichael <iancarm@cygnus.com>
59 * interp.c: Added hardware init hook, fixed warnings.
61 Sat Feb 7 17:16:20 1998 Andrew Cagney <cagney@b1.cygnus.com>
63 * Makefile.in (itable.h itable.c): Depend on SIM_@sim_gen@_ALL.
65 Tue Feb 3 11:36:02 1998 Andrew Cagney <cagney@b1.cygnus.com>
67 * interp.c (ifetch16): New function.
69 * sim-main.h (IMEM32): Rename IMEM.
70 (IMEM16_IMMED): Define.
74 * m16run.c (sim_engine_run): New file.
76 * m16.igen: All instructions except LB.
77 (LB): Call do_load_byte.
78 * mips.igen (do_load_byte): New function.
79 (LB): Call do_load_byte.
81 * mips.igen: Move spec for insn bit size and high bit from here.
82 * Makefile.in (tmp-igen, tmp-m16): To here.
84 * m16.dc: New file, decode mips16 instructions.
86 * Makefile.in (SIM_NO_ALL): Define.
87 (tmp-m16): Generate both 16 bit and 32 bit simulator engines.
90 * m16.igen: Mark all mips16 insns as being part of the tx19 insn
94 Tue Feb 3 11:28:00 1998 Andrew Cagney <cagney@b1.cygnus.com>
96 * configure.in (mips_fpu_bitsize): For tx39, restrict floating
97 point unit to 32 bit registers.
98 * configure: Re-generate.
100 Sun Feb 1 15:47:14 1998 Andrew Cagney <cagney@b1.cygnus.com>
102 * configure.in (sim_use_gen): Make IGEN the default simulator
103 generator for generic 32 and 64 bit mips targets.
104 * configure: Re-generate.
106 Sun Feb 1 16:52:37 1998 Andrew Cagney <cagney@b1.cygnus.com>
108 * sim-main.h (SizeFGR): Determine from floating-point and not gpr
111 * interp.c (sim_fetch_register, sim_store_register): Read/write
112 FGR from correct location.
113 (sim_open): Set size of FGR's according to
114 WITH_TARGET_FLOATING_POINT_BITSIZE.
116 * sim-main.h (FGR): Store floating point registers in a separate
119 Sun Feb 1 16:47:51 1998 Andrew Cagney <cagney@b1.cygnus.com>
121 * configure: Regenerated to track ../common/aclocal.m4 changes.
123 start-sanitize-vr5400
124 * mdmx.igen: Mark all instructions as 64bit/fp specific.
127 Tue Feb 3 00:10:50 1998 Andrew Cagney <cagney@b1.cygnus.com>
129 * interp.c (ColdReset): Call PENDING_INVALIDATE.
131 * sim-main.h (ENGINE_ISSUE_PREFIX_HOOK): Call PENDING_TICK.
133 * interp.c (pending_tick): New function. Deliver pending writes.
135 * sim-main.h (PENDING_FILL, PENDING_TICK, PENDING_SCHED,
136 PENDING_BIT, PENDING_INVALIDATE): Re-write pipeline code so that
137 it can handle mixed sized quantites and single bits.
139 Mon Feb 2 17:43:15 1998 Andrew Cagney <cagney@b1.cygnus.com>
141 * interp.c (oengine.h): Do not include when building with IGEN.
142 (sim_open): Replace GPRLEN by WITH_TARGET_WORD_BITSIZE.
143 (sim_info): Ditto for PROCESSOR_64BIT.
144 (sim_monitor): Replace ut_reg with unsigned_word.
145 (*): Ditto for t_reg.
146 (LOADDRMASK): Define.
147 (sim_open): Remove defunct check that host FP is IEEE compliant,
148 using software to emulate floating point.
149 (value_fpr, ...): Always compile, was conditional on HASFPU.
151 Sun Feb 1 11:15:29 1998 Andrew Cagney <cagney@b1.cygnus.com>
153 * sim-main.h (sim_state): Make the cpu array MAX_NR_PROCESSORS in
156 * interp.c (SD, CPU): Define.
157 (mips_option_handler): Set flags in each CPU.
158 (interrupt_event): Assume CPU 0 is the one being iterrupted.
159 (sim_close): Do not clear STATE, deleted anyway.
160 (sim_write, sim_read): Assume CPU zero's vm should be used for
162 (sim_create_inferior): Set the PC for all processors.
163 (sim_monitor, store_word, load_word, mips16_entry): Add cpu
165 (mips16_entry): Pass correct nr of args to store_word, load_word.
166 (ColdReset): Cold reset all cpu's.
167 (signal_exception): Pass cpu to sim_monitor & mips16_entry.
168 (sim_monitor, load_memory, store_memory, signal_exception): Use
169 `CPU' instead of STATE_CPU.
172 * sim-main.h: Replace uses of STATE_CPU with CPU. Replace sd with
175 * sim-main.h (signal_exception): Add sim_cpu arg.
176 (SignalException*): Pass both SD and CPU to signal_exception.
177 * interp.c (signal_exception): Update.
179 * sim-main.h (value_fpr, store_fpr, dotrace, ifetch32), interp.c:
181 (sync_operation, prefetch, cache_op, store_memory, load_memory,
182 address_translation): Ditto
183 (decode_coproc, cop_lw, cop_ld, cop_sw, cop_sd): Ditto.
185 start-sanitize-vr5400
186 * mdmx.igen (get_scale): Pass CPU_ to semantic_illegal instead of
188 (ByteAlign): Use StoreFPR, pass args in correct order.
192 Sun Feb 1 10:59:55 1998 Andrew Cagney <cagney@b1.cygnus.com>
194 * configure.in (sim_igen_filter): For r5900, configure as SMP.
197 Sat Jan 31 18:15:41 1998 Andrew Cagney <cagney@b1.cygnus.com>
199 * configure: Regenerated to track ../common/aclocal.m4 changes.
201 Sat Jan 31 14:49:24 1998 Andrew Cagney <cagney@b1.cygnus.com>
204 * configure.in (sim_igen_filter): For r5900, use igen.
205 * configure: Re-generate.
208 * interp.c (sim_engine_run): Add `nr_cpus' argument.
210 * mips.igen (model): Map processor names onto BFD name.
212 * sim-main.h (CPU_CIA): Delete.
213 (SET_CIA, GET_CIA): Define
215 Wed Jan 21 16:16:27 1998 Andrew Cagney <cagney@b1.cygnus.com>
217 * sim-main.h (GPR_SET): Define, used by igen when zeroing a
220 * configure.in (default_endian): Configure a big-endian simulator
222 * configure: Re-generate.
224 Mon Jan 19 22:26:29 1998 Doug Evans <devans@seba>
226 * configure: Regenerated to track ../common/aclocal.m4 changes.
228 Mon Jan 5 20:38:54 1998 Mark Alexander <marka@cygnus.com>
230 * interp.c (sim_monitor): Handle Densan monitor outbyte
231 and inbyte functions.
233 1997-12-29 Felix Lee <flee@cygnus.com>
235 * interp.c (sim_engine_run): msvc cpp barfs on #if (a==b!=c).
237 Wed Dec 17 14:48:20 1997 Jeffrey A Law (law@cygnus.com)
239 * Makefile.in (tmp-igen): Arrange for $zero to always be
240 reset to zero after every instruction.
242 Mon Dec 15 23:17:11 1997 Andrew Cagney <cagney@b1.cygnus.com>
244 * configure: Regenerated to track ../common/aclocal.m4 changes.
247 start-sanitize-vr5400
248 Sat Dec 13 15:18:51 1997 Andrew Cagney <cagney@b1.cygnus.com>
250 * vr5400.igen (Low32Bits, High32Bits): Sign extend extracted 32
254 start-sanitize-vr5400
255 Fri Dec 12 12:26:07 1997 Jeffrey A Law (law@cygnus.com)
257 * configure.in (sim_igen_filter): Multi-sim vr5000 - vr5000 or
258 vr5400 with the vr5000 as the default.
261 Wed Dec 10 17:10:45 1997 Jeffrey A Law (law@cygnus.com)
263 * mips.igen (MSUB): Fix to work like MADD.
264 * gencode.c (MSUB): Similarly.
266 start-sanitize-vr5400
267 Tue Dec 9 12:02:12 1997 Andrew Cagney <cagney@b1.cygnus.com>
269 * configure.in (sim_igen_filter): Multi-sim vr5400 - vr5000 or
273 Thu Dec 4 09:21:05 1997 Doug Evans <devans@canuck.cygnus.com>
275 * configure: Regenerated to track ../common/aclocal.m4 changes.
277 Wed Nov 26 11:00:23 1997 Andrew Cagney <cagney@b1.cygnus.com>
279 * mips.igen (LWC1): Correct assembler - lwc1 not swc1.
281 start-sanitize-vr5400
282 * mdmx.igen (value_vr): Correct sim_io_eprintf format argument.
283 (value_cc, store_cc): Implement.
285 * sim-main.h: Add 8*3*8 bit accumulator.
287 * vr5400.igen: Move mdmx instructins from here
288 * mdmx.igen: To here - new file. Add/fix missing instructions.
289 * mips.igen: Include mdmx.igen.
290 * Makefile.in (IGEN_INCLUDE): Add mdmx.igen.
293 Sun Nov 23 01:45:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
295 * sim-main.h (sim-fpu.h): Include.
297 * interp.c (convert, SquareRoot, Recip, Divide, Multiply, Sub,
298 Add, Negate, AbsoluteValue, Equal, Less, Infinity, NaN): Rewrite
299 using host independant sim_fpu module.
301 Thu Nov 20 19:56:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
303 * interp.c (signal_exception): Report internal errors with SIGABRT
306 * sim-main.h (C0_CONFIG): New register.
307 (signal.h): No longer include.
309 * interp.c (decode_coproc): Allow access C0_CONFIG to register.
311 Tue Nov 18 15:33:48 1997 Doug Evans <devans@canuck.cygnus.com>
313 * Makefile.in (SIM_OBJS): Use $(SIM_NEW_COMMON_OBJS).
315 Fri Nov 14 11:56:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
317 * mips.igen: Tag vr5000 instructions.
318 (ANDI): Was missing mipsIV model, fix assembler syntax.
319 (do_c_cond_fmt): New function.
320 (C.cond.fmt): Handle mips I-III which do not support CC field
322 (bc1): Handle mips IV which do not have a delaed FCC separatly.
323 (SDR): Mask paddr when BigEndianMem, not the converse as specified
325 (DMULT, DMULTU): Force use of hosts 64bit multiplication. Handle
326 vr5000 which saves LO in a GPR separatly.
328 * configure.in (enable-sim-igen): For vr5000, select vr5000
329 specific instructions.
330 * configure: Re-generate.
332 Wed Nov 12 14:42:52 1997 Andrew Cagney <cagney@b1.cygnus.com>
334 * Makefile.in (SIM_OBJS): Add sim-fpu module.
336 * interp.c (store_fpr), sim-main.h: Add separate fmt_uninterpreted_32 and
337 fmt_uninterpreted_64 bit cases to switch. Convert to
340 * sim-main.h (ENGINE_ISSUE_PREFIX_HOOK): Define,
342 * mips.igen (SWR): Mask paddr when BigEndianMem, not the converse
343 as specified in IV3.2 spec.
344 (MTC1, DMTC1): Call StoreFPR to store the GPR in the FPR.
346 Tue Nov 11 12:38:23 1997 Andrew Cagney <cagney@b1.cygnus.com>
348 * mips.igen: Delay slot branches add OFFSET to NIA not CIA.
349 (MFC0, MTC0, SWC1, LWC1, SDC1, LDC1): Implement.
350 (start-sanitize-r5900):
351 (LWXC1, SWXC1): Delete from r5900 instruction set.
352 (end-sanitize-r5900):
353 (MTC1, MFC1, DMTC1, DMFC1, CFC1, CTC1): Implement separate non
354 PENDING_FILL versions of instructions. Simplify.
356 (MULT, MULTU): Implement separate RD==0 and RD!=0 versions of
358 (BEQZ, ..., SLT, SLTI, TLT, TLE, TLI, ...): Explicitly cast GPR to
360 (MTHI, MFHI): Disable code checking HI-LO.
362 * sim-main.h (dotrace,tracefh), interp.c: Make dotrace & tracefh
364 (NULLIFY_NEXT_INSTRUCTION): Call dotrace.
366 Thu Nov 6 16:36:35 1997 Andrew Cagney <cagney@b1.cygnus.com>
368 * gencode.c (build_mips16_operands): Replace IPC with cia.
370 * interp.c (sim_monitor, signal_exception, cache_op, store_fpr,
371 value_fpr, cop_ld, cop_lw, cop_sw, cop_sd, decode_coproc): Replace
373 (UndefinedResult): Replace function with macro/function
375 (sim_engine_run): Don't save PC in IPC.
377 * sim-main.h (IPC): Delete.
379 start-sanitize-vr5400
380 * vr5400.igen (vr): Add missing cia argument to value_fpr.
381 (do_select): Rename function select.
384 * interp.c (signal_exception, store_word, load_word,
385 address_translation, load_memory, store_memory, cache_op,
386 prefetch, sync_operation, ifetch, value_fpr, store_fpr, convert,
387 cop_lw, cop_ld, cop_sw, cop_sd, decode_coproc, sim_monitor): Add
388 current instruction address - cia - argument.
389 (sim_read, sim_write): Call address_translation directly.
390 (sim_engine_run): Rename variable vaddr to cia.
391 (signal_exception): Pass cia to sim_monitor
393 * sim-main.h (SignalException, LoadWord, StoreWord, CacheOp,
394 Prefetch, SyncOperation, ValueFPR, StoreFPR, Convert, COP_LW,
395 COP_LD, COP_SW, COP_SD, DecodeCoproc): Update.
397 * sim-main.h (SignalExceptionSimulatorFault): Delete definition.
398 * interp.c (sim_open): Replace SignalExceptionSimulatorFault with
401 * interp.c (signal_exception): Pass restart address to
404 * Makefile.in (semantics.o, engine.o, support.o, itable.o,
405 idecode.o): Add dependency.
407 * sim-main.h (SIM_ENGINE_HALT_HOOK, SIM_ENGINE_RESUME_HOOK):
409 (DELAY_SLOT): Update NIA not PC with branch address.
410 (NULLIFY_NEXT_INSTRUCTION): Set NIA to instruction after next.
412 * mips.igen: Use CIA not PC in branch calculations.
413 (illegal): Call SignalException.
414 (BEQ, ADDIU): Fix assembler.
416 Wed Nov 5 12:19:56 1997 Andrew Cagney <cagney@b1.cygnus.com>
418 * m16.igen (JALX): Was missing.
420 * configure.in (enable-sim-igen): New configuration option.
421 * configure: Re-generate.
423 * sim-main.h (MAX_INSNS, INSN_NAME): Define.
425 * interp.c (load_memory, store_memory): Delete parameter RAW.
426 (sim_read, sim_write): Use sim_core_{read,write}_buffer directly
427 bypassing {load,store}_memory.
429 * sim-main.h (ByteSwapMem): Delete definition.
431 * Makefile.in (SIM_OBJS): Add sim-memopt module.
433 * interp.c (sim_do_command, sim_commands): Delete mips specific
434 commands. Handled by module sim-options.
436 * sim-main.h (SIM_HAVE_FLATMEM): Undefine, use sim-core.o module.
437 (WITH_MODULO_MEMORY): Define.
439 * interp.c (sim_info): Delete code printing memory size.
441 * interp.c (mips_size): Nee sim_size, delete function.
443 (monitor, monitor_base, monitor_size): Delete global variables.
444 (sim_open, sim_close): Delete code creating monitor and other
445 memory regions. Use sim-memopts module, via sim_do_commandf, to
446 manage memory regions.
447 (load_memory, store_memory): Use sim-core for memory model.
449 * interp.c (address_translation): Delete all memory map code
450 except line forcing 32 bit addresses.
452 Wed Nov 5 11:21:11 1997 Andrew Cagney <cagney@b1.cygnus.com>
454 * sim-main.h (WITH_TRACE): Delete definition. Enables common
457 * interp.c (logfh, logfile): Delete globals.
458 (sim_open, sim_close): Delete code opening & closing log file.
459 (mips_option_handler): Delete -l and -n options.
460 (OPTION mips_options): Ditto.
462 * interp.c (OPTION mips_options): Rename option trace to dinero.
463 (mips_option_handler): Update.
465 Wed Nov 5 09:35:59 1997 Andrew Cagney <cagney@b1.cygnus.com>
467 * interp.c (fetch_str): New function.
468 (sim_monitor): Rewrite using sim_read & sim_write.
469 (sim_open): Check magic number.
470 (sim_open): Write monitor vectors into memory using sim_write.
471 (MONITOR_BASE, MONITOR_SIZE, MEM_SIZE): Define.
472 (sim_read, sim_write): Simplify - transfer data one byte at a
474 (load_memory, store_memory): Clarify meaning of parameter RAW.
476 * sim-main.h (isHOST): Defete definition.
477 (isTARGET): Mark as depreciated.
478 (address_translation): Delete parameter HOST.
480 * interp.c (address_translation): Delete parameter HOST.
483 Wed Oct 29 14:21:32 1997 Gavin Koch <gavin@cygnus.com>
485 * gencode.c: Add tx49 configury and insns.
486 * configure.in: Add tx49 configury.
490 Wed Oct 29 11:13:56 1997 Andrew Cagney <cagney@b1.cygnus.com>
494 * Makefile.in (IGEN_INCLUDE): Files included by mips.igen.
495 (tmp-igen, tmp-m16): Depend on IGEN_INCLUDE.
497 Tue Oct 28 11:06:47 1997 Andrew Cagney <cagney@b1.cygnus.com>
499 * mips.igen: Add model filter field to records.
501 Mon Oct 27 17:53:59 1997 Andrew Cagney <cagney@b1.cygnus.com>
503 * Makefile.in (SIM_NO_CFLAGS): Define. Define WITH_IGEN=0.
505 interp.c (sim_engine_run): Do not compile function sim_engine_run
508 * configure.in (sim_igen_flags, sim_m16_flags): Set according to
511 Makefile.in (tmp-igen, tmp-m16): Drop -F and -M options to
512 igen. Replace with configuration variables sim_igen_flags /
516 * r5900.igen: New file. Copy r5900 insns here.
518 start-sanitize-vr5400
519 * vr5400.igen: New file.
521 * m16.igen: New file. Copy mips16 insns here.
522 * mips.igen: From here.
524 Mon Oct 27 13:53:59 1997 Andrew Cagney <cagney@b1.cygnus.com>
526 start-sanitize-vr5400
527 * mips.igen: Tag all mipsIV instructions with vr5400 model.
529 * configure.in: Add mips64vr5400 target.
530 * configure: Re-generate.
533 * Makefile.in (SIM_NO_OBJ): Define, move SIM_M16_OBJ, SIM_IGEN_OBJ
535 (tmp-igen, tmp-m16): Pass -I srcdir to igen.
537 Sat Oct 25 16:51:40 1997 Gavin Koch <gavin@cygnus.com>
539 * gencode.c (build_instruction): Follow sim_write's lead in using
540 BigEndianMem instead of !ByteSwapMem.
542 Fri Oct 24 17:41:49 1997 Andrew Cagney <cagney@b1.cygnus.com>
544 * configure.in (sim_gen): Dependent on target, select type of
545 generator. Always select old style generator.
547 configure: Re-generate.
549 Makefile.in (tmp-igen, tmp-m16, clean-m16, clean-igen): New
551 (SIM_M16_CFLAGS, SIM_M16_ALL, SIM_M16_OBJ, BUILT_SRC_FROM_M16,
552 SIM_IGEN_CFLAGS, SIM_IGEN_ALL, SIM_IGEN_OBJ, BUILT_SRC_FROM_IGEN,
553 IGEN_TRACE, IGEN_INSN, IGEN_DC): Define
554 (SIM_EXTRA_CFLAGS, SIM_EXTRA_ALL, SIM_OBJS): Add member
555 SIM_@sim_gen@_*, set by autoconf.
557 Wed Oct 22 12:52:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
559 * sim-main.h (NULLIFY_NEXT_INSTRUCTION, DELAY_SLOT): Define.
561 * interp.c (ColdReset): Remove #ifdef HASFPU, check
562 CURRENT_FLOATING_POINT instead.
564 * interp.c (ifetch32): New function. Fetch 32 bit instruction.
565 (address_translation): Raise exception InstructionFetch when
566 translation fails and isINSTRUCTION.
568 * interp.c (sim_open, sim_write, sim_monitor, store_word,
569 sim_engine_run): Change type of of vaddr and paddr to
571 (address_translation, prefetch, load_memory, store_memory,
572 cache_op): Change type of vAddr and pAddr to address_word.
574 * gencode.c (build_instruction): Change type of vaddr and paddr to
577 Mon Oct 20 15:29:04 1997 Andrew Cagney <cagney@b1.cygnus.com>
579 * sim-main.h (ALU64_END, ALU32_END): Use ALU*_OVERFLOW_RESULT
580 macro to obtain result of ALU op.
582 Tue Oct 21 17:39:14 1997 Andrew Cagney <cagney@b1.cygnus.com>
584 * interp.c (sim_info): Call profile_print.
586 Mon Oct 20 13:31:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
588 * Makefile.in (SIM_OBJS): Add sim-profile.o module.
590 * sim-main.h (WITH_PROFILE): Do not define, defined in
591 common/sim-config.h. Use sim-profile module.
592 (simPROFILE): Delete defintion.
594 * interp.c (PROFILE): Delete definition.
595 (mips_option_handler): Delete 'p', 'y' and 'x' profile options.
596 (sim_close): Delete code writing profile histogram.
597 (mips_set_profile, mips_set_profile_size, writeout16, writeout32):
599 (sim_engine_run): Delete code profiling the PC.
601 Mon Oct 20 13:31:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
603 * sim-main.h (SIGNEXTEND): Force type of result to unsigned_word.
605 * interp.c (sim_monitor): Make register pointers of type
608 * sim-main.h: Make registers of type unsigned_word not
611 Thu Oct 16 10:31:39 1997 Andrew Cagney <cagney@b1.cygnus.com>
614 * sim-main.h (BYTES_IN_MMI_REGS, ..., SUB_REG_FETCH, ..., GPR_SB,
615 ...): Move to sim-main.h
618 * interp.c (sync_operation): Rename from SyncOperation, make
619 global, add SD argument.
620 (prefetch): Rename from Prefetch, make global, add SD argument.
621 (decode_coproc): Make global.
623 * sim-main.h (SyncOperation, DecodeCoproc, Pefetch): Define.
625 * gencode.c (build_instruction): Generate DecodeCoproc not
628 * interp.c (SETFCC, GETFCC, PREVCOC1): Move to sim-main.h
629 (SizeFGR): Move to sim-main.h
630 (simHALTEX, simHALTIN, simTRACE, simPROFILE, simDELAYSLOT,
631 simSIGINT, simJALDELAYSLOT): Move to sim-main.h
632 (FP_FLAGS, FP_ENABLE, FP_CAUSE, IR, UF, OF, DZ, IO, UO): Move to
634 (FP_FS, FP_MASK_RM, FP_SH_RM, FP_RM_NEAREST, FP_RM_TOPINF,
635 FP_RM_TOMINF, GETRM): Move to sim-main.h.
636 (Uncached, CachedNoncoherent, CachedCoherent, Cached,
637 isINSTRUCTION, ..., AccessLength_BYTE, ...): Move to sim-main.h.
638 (UserMode, BigEndianMem, ByteSwapMem, ReverseEndian,
639 BigEndianCPU, status_KSU_mask, ...). Moved to sim-main.h
641 * sim-main.h (ALU32_END, ALU64_END): Define. When overflow raise
643 (sim-alu.h): Include.
644 (NULLIFY_NIA, NULL_CIA, CPU_CIA): Define.
645 (sim_cia): Typedef to instruction_address.
647 Thu Oct 16 10:31:41 1997 Andrew Cagney <cagney@b1.cygnus.com>
649 * Makefile.in (interp.o): Rename generated file engine.c to
654 Thu Oct 16 10:31:40 1997 Andrew Cagney <cagney@b1.cygnus.com>
656 * gencode.c (build_instruction): Use FPR_STATE not fpr_state.
658 Thu Oct 16 10:31:39 1997 Andrew Cagney <cagney@b1.cygnus.com>
660 * gencode.c (build_instruction): For "FPSQRT", output correct
661 number of arguments to Recip.
663 Tue Oct 14 17:38:18 1997 Andrew Cagney <cagney@b1.cygnus.com>
665 * Makefile.in (interp.o): Depends on sim-main.h
667 * interp.c (mips16_entry, ColdReset,dotrace): Add SD argument. Use GPR not registers.
669 * sim-main.h (sim_cpu): Add registers, register_widths, fpr_state,
670 ipc, dspc, pending_*, hiaccess, loaccess, state, dsstate fields.
671 (REGISTERS, REGISTER_WIDTHS, FPR_STATE, IPC, DSPC, PENDING_*,
672 STATE, DSSTATE): Define
673 (GPR, FGRIDX, ..): Define.
675 * interp.c (registers, register_widths, fpr_state, ipc, dspc,
676 pending_*, hiaccess, loaccess, state, dsstate): Delete globals.
677 (GPR, FGRIDX, ...): Delete macros.
679 * interp.c: Update names to match defines from sim-main.h
681 Tue Oct 14 15:11:45 1997 Andrew Cagney <cagney@b1.cygnus.com>
683 * interp.c (sim_monitor): Add SD argument.
684 (sim_warning): Delete. Replace calls with calls to
686 (sim_error): Delete. Replace calls with sim_io_error.
687 (open_trace, writeout32, writeout16, getnum): Add SD argument.
688 (mips_set_profile): Rename from sim_set_profile. Add SD argument.
689 (mips_set_profile_size): Rename from sim_set_profile_size. Add SD
691 (mips_size): Rename from sim_size. Add SD argument.
693 * interp.c (simulator): Delete global variable.
694 (callback): Delete global variable.
695 (mips_option_handler, sim_open, sim_write, sim_read,
696 sim_store_register, sim_fetch_register, sim_info, sim_do_command,
697 sim_size,sim_monitor): Use sim_io_* not callback->*.
698 (sim_open): ZALLOC simulator struct.
699 (PROFILE): Do not define.
701 Tue Oct 14 13:35:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
703 * interp.c (sim_open), support.h: Replace CHECKSIM macro found in
704 support.h with corresponding code.
706 * sim-main.h (word64, uword64), support.h: Move definition to
708 (WORD64LO, WORD64HI, SET64LO, SET64HI, WORD64, UWORD64): Ditto.
711 * Makefile.in: Update dependencies
712 * interp.c: Do not include.
714 Tue Oct 14 13:35:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
716 * interp.c (address_translation, load_memory, store_memory,
717 cache_op): Rename to from AddressTranslation et.al., make global,
720 * sim-main.h (AddressTranslation, LoadMemory, StoreMemory,
723 * interp.c (SignalException): Rename to signal_exception, make
726 * interp.c (Interrupt, ...): Move definitions to sim-main.h.
728 * sim-main.h (SignalException, SignalExceptionInterrupt,
729 SignalExceptionInstructionFetch, SignalExceptionAddressStore,
730 SignalExceptionAddressLoad, SignalExceptionSimulatorFault,
731 SignalExceptionIntegerOverflow, SignalExceptionCoProcessorUnusable):
734 * interp.c, support.h: Use.
736 Tue Oct 14 13:19:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
738 * interp.c (ValueFPR, StoreFPR), sim-main.h: Make global, rename
739 to value_fpr / store_fpr. Add SD argument.
740 (NaN, Infinity, Less, Equal, AbsoluteValue, Negate, Add, Sub,
741 Multiply, Divide, Recip, SquareRoot, Convert): Make global.
743 * sim-main.h (ValueFPR, StoreFPR): Define.
745 Tue Oct 14 13:06:55 1997 Andrew Cagney <cagney@b1.cygnus.com>
747 * interp.c (sim_engine_run): Check consistency between configure
748 WITH_TARGET_WORD_BITSIZE and WITH_FLOATING_POINT and gensim GPRLEN
751 * configure.in (mips_bitsize): Configure WITH_TARGET_WORD_BITSIZE.
752 (mips_fpu): Configure WITH_FLOATING_POINT.
753 (mips_endian): Configure WITH_TARGET_ENDIAN.
756 Fri Oct 3 09:28:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
758 * configure: Regenerated to track ../common/aclocal.m4 changes.
761 Mon Aug 25 19:11:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
763 * interp.c (MAX_REG): Allow up-to 128 registers.
764 (LO1, HI1): Define value that matches REGISTER_NAMES in gdb.
765 (REGISTER_SA): Ditto.
766 (sim_open): Initialize register_widths for r5900 specific
768 (sim_fetch_register, sim_store_register): Check for request of
769 r5900 specific SA register. Check for request for hi 64 bits of
770 r5900 specific registers.
773 Mon Sep 29 14:45:00 1997 Bob Manson <manson@charmed.cygnus.com>
775 * configure: Regenerated.
777 Fri Sep 26 12:48:18 1997 Mark Alexander <marka@cygnus.com>
779 * interp.c: Allow Debug, DEPC, and EPC registers to be examined in GDB.
781 Thu Sep 25 11:15:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
783 * gencode.c (print_igen_insn_models): Assume certain architectures
784 include all mips* instructions.
785 (print_igen_insn_format): Use data_size==-1 as marker for MIPS16
788 * Makefile.in (tmp.igen): Add target. Generate igen input from
791 * gencode.c (FEATURE_IGEN): Define.
792 (main): Add --igen option. Generate output in igen format.
793 (process_instructions): Format output according to igen option.
794 (print_igen_insn_format): New function.
795 (print_igen_insn_models): New function.
796 (process_instructions): Only issue warnings and ignore
797 instructions when no FEATURE_IGEN.
799 Wed Sep 24 17:38:57 1997 Andrew Cagney <cagney@b1.cygnus.com>
801 * interp.c (COP_SD, COP_LD): Add UNUSED to pacify GCC for some
804 Tue Sep 23 11:04:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
806 * configure: Regenerated to track ../common/aclocal.m4 changes.
808 Tue Sep 23 10:19:51 1997 Andrew Cagney <cagney@b1.cygnus.com>
810 * Makefile.in (SIM_ALIGNMENT, SIM_ENDIAN, SIM_HOSTENDIAN,
811 SIM_RESERVED_BITS): Delete, moved to common.
812 (SIM_EXTRA_CFLAGS): Update.
814 Mon Sep 22 11:46:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
816 * configure.in: Configure non-strict memory alignment.
817 * configure: Regenerated to track ../common/aclocal.m4 changes.
819 Fri Sep 19 17:45:25 1997 Andrew Cagney <cagney@b1.cygnus.com>
821 * configure: Regenerated to track ../common/aclocal.m4 changes.
823 Sat Sep 20 14:07:28 1997 Gavin Koch <gavin@cygnus.com>
825 * gencode.c (SDBBP,DERET): Added (3900) insns.
826 (RFE): Turn on for 3900.
827 * interp.c (DebugBreakPoint,DEPC,Debug,Debug_*): Added.
828 (dsstate): Made global.
829 (SUBTARGET_R3900): Added.
830 (CANCELDELAYSLOT): New.
831 (SignalException): Ignore SystemCall rather than ignore and
832 terminate. Add DebugBreakPoint handling.
833 (decode_coproc): New insns RFE, DERET; and new registers Debug
834 and DEPC protected by SUBTARGET_R3900.
835 (sim_engine_run): Use CANCELDELAYSLOT rather than clearing
837 * Makefile.in,configure.in: Add mips subtarget option.
840 Fri Sep 19 09:33:27 1997 Gavin Koch <gavin@cygnus.com>
842 * gencode.c: Add r3900 (tx39).
845 * gencode.c: Fix some configuration problems by improving
846 the relationship between tx19 and tx39.
849 Tue Sep 16 15:52:04 1997 Gavin Koch <gavin@cygnus.com>
851 * gencode.c (build_instruction): Don't need to subtract 4 for
854 Tue Sep 16 11:32:28 1997 Gavin Koch <gavin@cygnus.com>
856 * interp.c: Correct some HASFPU problems.
858 Mon Sep 15 17:36:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
860 * configure: Regenerated to track ../common/aclocal.m4 changes.
862 Fri Sep 12 12:01:39 1997 Andrew Cagney <cagney@b1.cygnus.com>
864 * interp.c (mips_options): Fix samples option short form, should
867 Thu Sep 11 09:35:29 1997 Andrew Cagney <cagney@b1.cygnus.com>
869 * interp.c (sim_info): Enable info code. Was just returning.
871 Tue Sep 9 17:30:57 1997 Andrew Cagney <cagney@b1.cygnus.com>
873 * interp.c (decode_coproc): Clarify warning about unsuported MTC0,
876 Tue Sep 9 16:28:28 1997 Andrew Cagney <cagney@b1.cygnus.com>
878 * gencode.c (build_instruction): Use SIGNED64 for 64 bit
880 (build_instruction): Ditto for LL.
883 Sun Sep 7 16:05:46 1997 Gavin Koch <gavin@cygnus.com>
885 * mips/configure.in, mips/gencode: Add tx19/r1900.
888 Thu Sep 4 17:21:23 1997 Doug Evans <dje@seba>
890 * configure: Regenerated to track ../common/aclocal.m4 changes.
893 Mon Sep 1 18:43:30 1997 Andrew Cagney <cagney@b1.cygnus.com>
895 * gencode.c (build_instruction): For "pabsw" and "pabsh", check
896 for overflow due to ABS of MININT, set result to MAXINT.
897 (build_instruction): For "psrlvw", signextend bit 31.
900 Wed Aug 27 18:13:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
902 * configure: Regenerated to track ../common/aclocal.m4 changes.
905 Wed Aug 27 14:12:27 1997 Andrew Cagney <cagney@b1.cygnus.com>
907 * interp.c (sim_open): Add call to sim_analyze_program, update
910 Tue Aug 26 10:40:07 1997 Andrew Cagney <cagney@b1.cygnus.com>
912 * interp.c (sim_kill): Delete.
913 (sim_create_inferior): Add ABFD argument. Set PC from same.
914 (sim_load): Move code initializing trap handlers from here.
916 (sim_load): Delete, use sim-hload.c.
918 * Makefile.in (SIM_OBJS): Add sim-hload.o module.
920 Mon Aug 25 17:50:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
922 * configure: Regenerated to track ../common/aclocal.m4 changes.
925 Mon Aug 25 15:59:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
927 * interp.c (sim_open): Add ABFD argument.
928 (sim_load): Move call to sim_config from here.
929 (sim_open): To here. Check return status.
932 * gencode.c (build_instruction): Do not define x8000000000000000,
933 x7FFFFFFFFFFFFFFF, or xFFFFFFFF80000000.
937 Mon Jul 28 19:49:29 1997 Andrew Cagney <cagney@b1.cygnus.com>
939 * gencode.c (build_instruction): For "pdivw", "pdivbw" and
940 "pdivuw" check for overflow due to signed divide by -1.
943 Fri Jul 25 15:00:45 1997 Gavin Koch <gavin@cygnus.com>
945 * gencode.c (build_instruction): Two arg MADD should
946 not assign result to $0.
949 Thu Jul 10 11:58:48 1997 Andrew Cagney <cagney@critters.cygnus.com>
951 * gencode.c (build_instruction): For "ppac5" use unsigned
952 arrithmetic so that the sign bit doesn't smear when right shifted.
953 (build_instruction): For "pdiv" perform sign extension when
954 storing results in HI and LO.
955 (build_instructions): For "pdiv" and "pdivbw" check for
957 (build_instruction): For "pmfhl.slw" update hi part of dest
958 register as well as low part.
959 (build_instruction): For "pmfhl" portably handle long long values.
960 (build_instruction): For "pmfhl.sh" correctly negative values.
961 Store half words 2 and three in the correct place.
962 (build_instruction): For "psllvw", sign extend value after shift.
965 Thu Jun 26 12:13:17 1997 Angela Marie Thomas (angela@cygnus.com)
967 * sim/mips/configure: Change default_sim_endian to 0 (bi-endian)
968 * sim/mips/configure.in: Regenerate.
970 Wed Jul 9 10:29:21 1997 Andrew Cagney <cagney@critters.cygnus.com>
972 * interp.c (SUB_REG_UW, SUB_REG_SW, SUB_REG_*): Use more explicit
973 signed8, unsigned8 et.al. types.
976 * gencode.c (build_instruction): For PMULTU* do not sign extend
977 registers. Make generated code easier to debug.
980 * interp.c (SUB_REG_FETCH): Handle both little and big endian
981 hosts when selecting subreg.
984 Tue Jul 8 18:07:20 1997 Andrew Cagney <cagney@andros.cygnus.com>
986 * gencode.c (type_for_data_len): For 32bit operations concerned
987 with overflow, perform op using 64bits.
988 (build_instruction): For PADD, always compute operation using type
989 returned by type_for_data_len.
990 (build_instruction): For PSUBU, when overflow, saturate to zero as
994 Wed Jul 2 11:54:10 1997 Jeffrey A Law (law@cygnus.com)
997 * gencode.c (build_instruction): Handle "pext5" according to
998 version 1.95 of the r5900 ISA.
1000 * gencode.c (build_instruction): Handle "ppac5" according to
1001 version 1.95 of the r5900 ISA.
1004 * interp.c (sim_engine_run): Reset the ZERO register to zero
1005 regardless of FEATURE_WARN_ZERO.
1006 * gencode.c (FEATURE_WARNINGS): Remove FEATURE_WARN_ZERO.
1008 Wed Jun 4 10:43:14 1997 Andrew Cagney <cagney@b1.cygnus.com>
1010 * interp.c (decode_coproc): Implement MTC0 N, CAUSE.
1011 (SignalException): For BreakPoints ignore any mode bits and just
1013 (SignalException): Always set the CAUSE register.
1015 Tue Jun 3 05:00:33 1997 Andrew Cagney <cagney@b1.cygnus.com>
1017 * interp.c (SignalException): Clear the simDELAYSLOT flag when an
1018 exception has been taken.
1020 * interp.c: Implement the ERET and mt/f sr instructions.
1022 start-sanitize-r5900
1023 Mon Jun 2 23:28:19 1997 Andrew Cagney <cagney@b1.cygnus.com>
1025 * gencode.c (build_instruction): For paddu, extract unsigned
1028 * gencode.c (build_instruction): Saturate padds instead of padd
1032 Sat May 31 00:44:16 1997 Andrew Cagney <cagney@b1.cygnus.com>
1034 * interp.c (SignalException): Don't bother restarting an
1037 Fri May 30 23:41:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
1039 * interp.c (SignalException): Really take an interrupt.
1040 (interrupt_event): Only deliver interrupts when enabled.
1042 Tue May 27 20:08:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
1044 * interp.c (sim_info): Only print info when verbose.
1045 (sim_info) Use sim_io_printf for output.
1047 Tue May 27 14:22:23 1997 Andrew Cagney <cagney@b1.cygnus.com>
1049 * interp.c (CoProcPresent): Add UNUSED attribute - not used by all
1052 Tue May 27 14:22:23 1997 Andrew Cagney <cagney@b1.cygnus.com>
1054 * interp.c (sim_do_command): Check for common commands if a
1055 simulator specific command fails.
1057 Thu May 22 09:32:03 1997 Gavin Koch <gavin@cygnus.com>
1059 * interp.c (sim_engine_run): ifdef out uses of simSTOP, simSTEP
1060 and simBE when DEBUG is defined.
1062 Wed May 21 09:08:10 1997 Andrew Cagney <cagney@b1.cygnus.com>
1064 * interp.c (interrupt_event): New function. Pass exception event
1065 onto exception handler.
1067 * configure.in: Check for stdlib.h.
1068 * configure: Regenerate.
1070 * gencode.c (build_instruction): Add UNUSED attribute to tempS
1071 variable declaration.
1072 (build_instruction): Initialize memval1.
1073 (build_instruction): Add UNUSED attribute to byte, bigend,
1075 (build_operands): Ditto.
1077 * interp.c: Fix GCC warnings.
1078 (sim_get_quit_code): Delete.
1080 * configure.in: Add INLINE, ENDIAN, HOSTENDIAN and WARNINGS.
1081 * Makefile.in: Ditto.
1082 * configure: Re-generate.
1084 * Makefile.in (SIM_OBJS): Add sim-watch.o module.
1086 Tue May 20 15:08:56 1997 Andrew Cagney <cagney@b1.cygnus.com>
1088 * interp.c (mips_option_handler): New function parse argumes using
1090 (myname): Replace with STATE_MY_NAME.
1091 (sim_open): Delete check for host endianness - performed by
1093 (simHOSTBE, simBE): Delete, replaced by sim-endian flags.
1094 (sim_open): Move much of the initialization from here.
1095 (sim_load): To here. After the image has been loaded and
1097 (sim_open): Move ColdReset from here.
1098 (sim_create_inferior): To here.
1099 (sim_open): Make FP check less dependant on host endianness.
1101 * Makefile.in (SIM_RUN_OBJS): Set to nrun.o - use new version or
1103 * interp.c (sim_set_callbacks): Delete.
1105 * interp.c (membank, membank_base, membank_size): Replace with
1106 STATE_MEMORY, STATE_MEM_SIZE, STATE_MEM_BASE.
1107 (sim_open): Remove call to callback->init. gdb/run do this.
1111 * sim-main.h (SIM_HAVE_FLATMEM): Define.
1113 * interp.c (big_endian_p): Delete, replaced by
1114 current_target_byte_order.
1116 Tue May 20 13:55:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
1118 * interp.c (host_read_long, host_read_word, host_swap_word,
1119 host_swap_long): Delete. Using common sim-endian.
1120 (sim_fetch_register, sim_store_register): Use H2T.
1121 (pipeline_ticks): Delete. Handled by sim-events.
1123 (sim_engine_run): Update.
1125 Tue May 20 13:42:03 1997 Andrew Cagney <cagney@b1.cygnus.com>
1127 * interp.c (sim_stop_reason): Move code determining simEXCEPTION
1129 (SignalException): To here. Signal using sim_engine_halt.
1130 (sim_stop_reason): Delete, moved to common.
1132 Tue May 20 10:19:48 1997 Andrew Cagney <cagney@b2.cygnus.com>
1134 * interp.c (sim_open): Add callback argument.
1135 (sim_set_callbacks): Delete SIM_DESC argument.
1138 Mon May 19 18:20:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
1140 * Makefile.in (SIM_OBJS): Add common modules.
1142 * interp.c (sim_set_callbacks): Also set SD callback.
1143 (set_endianness, xfer_*, swap_*): Delete.
1144 (host_read_word, host_read_long, host_swap_word, host_swap_long):
1145 Change to functions using sim-endian macros.
1146 (control_c, sim_stop): Delete, use common version.
1147 (simulate): Convert into.
1148 (sim_engine_run): This function.
1149 (sim_resume): Delete.
1151 * interp.c (simulation): New variable - the simulator object.
1152 (sim_kind): Delete global - merged into simulation.
1153 (sim_load): Cleanup. Move PC assignment from here.
1154 (sim_create_inferior): To here.
1156 * sim-main.h: New file.
1157 * interp.c (sim-main.h): Include.
1159 Thu Apr 24 00:39:51 1997 Doug Evans <dje@canuck.cygnus.com>
1161 * configure: Regenerated to track ../common/aclocal.m4 changes.
1163 Wed Apr 23 17:32:19 1997 Doug Evans <dje@canuck.cygnus.com>
1165 * tconfig.in (SIM_HAVE_BIENDIAN): Define.
1167 Mon Apr 21 17:16:13 1997 Gavin Koch <gavin@cygnus.com>
1169 * gencode.c (build_instruction): DIV instructions: check
1170 for division by zero and integer overflow before using
1171 host's division operation.
1173 Thu Apr 17 03:18:14 1997 Doug Evans <dje@canuck.cygnus.com>
1175 * Makefile.in (SIM_OBJS): Add sim-load.o.
1176 * interp.c: #include bfd.h.
1177 (target_byte_order): Delete.
1178 (sim_kind, myname, big_endian_p): New static locals.
1179 (sim_open): Set sim_kind, myname. Move call to set_endianness to
1180 after argument parsing. Recognize -E arg, set endianness accordingly.
1181 (sim_load): Return SIM_RC. New arg abfd. Call sim_load_file to
1182 load file into simulator. Set PC from bfd.
1183 (sim_create_inferior): Return SIM_RC. Delete arg start_address.
1184 (set_endianness): Use big_endian_p instead of target_byte_order.
1186 Wed Apr 16 17:55:37 1997 Andrew Cagney <cagney@b1.cygnus.com>
1188 * interp.c (sim_size): Delete prototype - conflicts with
1189 definition in remote-sim.h. Correct definition.
1191 Mon Apr 7 15:45:02 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1193 * configure: Regenerated to track ../common/aclocal.m4 changes.
1196 Wed Apr 2 15:06:28 1997 Doug Evans <dje@canuck.cygnus.com>
1198 * interp.c (sim_open): New arg `kind'.
1200 * configure: Regenerated to track ../common/aclocal.m4 changes.
1202 Wed Apr 2 14:34:19 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1204 * configure: Regenerated to track ../common/aclocal.m4 changes.
1206 Tue Mar 25 11:38:22 1997 Doug Evans <dje@canuck.cygnus.com>
1208 * interp.c (sim_open): Set optind to 0 before calling getopt.
1210 Wed Mar 19 01:14:00 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1212 * configure: Regenerated to track ../common/aclocal.m4 changes.
1214 Mon Mar 17 10:52:59 1997 Gavin Koch <gavin@cetus.cygnus.com>
1216 * interp.c : Replace uses of pr_addr with pr_uword64
1217 where the bit length is always 64 independent of SIM_ADDR.
1218 (pr_uword64) : added.
1220 Mon Mar 17 15:10:07 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1222 * configure: Re-generate.
1224 Fri Mar 14 10:34:11 1997 Michael Meissner <meissner@cygnus.com>
1226 * configure: Regenerate to track ../common/aclocal.m4 changes.
1228 Thu Mar 13 12:51:36 1997 Doug Evans <dje@canuck.cygnus.com>
1230 * interp.c (sim_open): New SIM_DESC result. Argument is now
1232 (other sim_*): New SIM_DESC argument.
1234 start-sanitize-r5900
1235 Wed Feb 26 18:32:21 1997 Gavin Koch <gavin@cygnus.com>
1237 * gencode.c (POP_AND,POP_OR,POP_NOR,POP_XOR):
1238 Change values to avoid overloading DOUBLEWORD which is tested
1240 * gencode.c: reinstate "offending code".
1243 Mon Feb 24 22:47:14 1997 Dawn Perchik <dawn@cygnus.com>
1245 * interp.c: Fix printing of addresses for non-64-bit targets.
1246 (pr_addr): Add function to print address based on size.
1247 start-sanitize-r5900
1248 * gencode.c: #ifdef out offending code until a permanent fix
1249 can be added. Code is causing build errors for non-5900 mips targets.
1252 start-sanitize-r5900
1253 Thu Feb 20 10:40:24 1997 Gavin Koch <gavin@cetus.cygnus.com>
1255 * gencode.c (process_instructions): Correct test for ISA dependent
1256 architecture bits in isa field of MIPS_DECODE.
1259 Wed Feb 19 14:42:09 1997 Mark Alexander <marka@cygnus.com>
1261 * interp.c (simopen): Add support for LSI MiniRISC PMON vectors.
1263 start-sanitize-r5900
1264 Tue Feb 18 17:03:47 1997 Gavin Koch <gavin@cygnus.com>
1266 * gencode.c (MIPS_DECODE): Correct instruction feature flags for
1270 Thu Feb 13 14:08:30 1997 Ian Lance Taylor <ian@cygnus.com>
1272 * gencode.c (build_mips16_operands): Correct computation of base
1273 address for extended PC relative instruction.
1275 start-sanitize-r5900
1276 Fri Feb 7 11:12:44 1997 Gavin Koch <gavin@cygnus.com>
1278 * Makefile.in, configure, configure.in, gencode.c,
1279 interp.c, support.h: add r5900.
1282 Thu Feb 6 17:16:15 1997 Ian Lance Taylor <ian@cygnus.com>
1284 * interp.c (mips16_entry): Add support for floating point cases.
1285 (SignalException): Pass floating point cases to mips16_entry.
1286 (ValueFPR): Don't restrict fmt_single and fmt_word to even
1288 (StoreFPR): Likewise. Also, don't clobber fpr + 1 for fmt_single
1290 (COP_LW): Pass fmt_word rather than fmt_uninterpreted to StoreFPR,
1291 and then set the state to fmt_uninterpreted.
1292 (COP_SW): Temporarily set the state to fmt_word while calling
1295 Tue Feb 4 16:48:25 1997 Ian Lance Taylor <ian@cygnus.com>
1297 * gencode.c (build_instruction): The high order may be set in the
1298 comparison flags at any ISA level, not just ISA 4.
1300 Tue Feb 4 13:33:30 1997 Doug Evans <dje@canuck.cygnus.com>
1302 * Makefile.in (@COMMON_MAKEFILE_FRAG): Use
1303 COMMON_{PRE,POST}_CONFIG_FRAG instead.
1304 * configure.in: sinclude ../common/aclocal.m4.
1305 * configure: Regenerated.
1307 Fri Jan 31 11:11:45 1997 Ian Lance Taylor <ian@cygnus.com>
1309 * configure: Rebuild after change to aclocal.m4.
1311 Thu Jan 23 11:46:23 1997 Stu Grossman (grossman@critters.cygnus.com)
1313 * configure configure.in Makefile.in: Update to new configure
1314 scheme which is more compatible with WinGDB builds.
1315 * configure.in: Improve comment on how to run autoconf.
1316 * configure: Re-run autoconf to get new ../common/aclocal.m4.
1317 * Makefile.in: Use autoconf substitution to install common
1320 Wed Jan 8 12:39:03 1997 Jim Wilson <wilson@cygnus.com>
1322 * gencode.c (build_instruction): Use BigEndianCPU instead of
1325 Thu Jan 02 22:23:04 1997 Mark Alexander <marka@cygnus.com>
1327 * interp.c (sim_monitor): Make output to stdout visible in
1328 wingdb's I/O log window.
1330 Tue Dec 31 07:04:00 1996 Mark Alexander <marka@cygnus.com>
1332 * support.h: Undo previous change to SIGTRAP
1335 Mon Dec 30 17:36:06 1996 Ian Lance Taylor <ian@cygnus.com>
1337 * interp.c (store_word, load_word): New static functions.
1338 (mips16_entry): New static function.
1339 (SignalException): Look for mips16 entry and exit instructions.
1340 (simulate): Use the correct index when setting fpr_state after
1341 doing a pending move.
1343 Sun Dec 29 09:37:18 1996 Mark Alexander <marka@cygnus.com>
1345 * interp.c: Fix byte-swapping code throughout to work on
1346 both little- and big-endian hosts.
1348 Sun Dec 29 09:18:32 1996 Mark Alexander <marka@cygnus.com>
1350 * support.h: Make definitions of SIGTRAP and SIGQUIT consistent
1351 with gdb/config/i386/xm-windows.h.
1353 Fri Dec 27 22:48:51 1996 Mark Alexander <marka@cygnus.com>
1355 * gencode.c (build_instruction): Work around MSVC++ code gen bug
1356 that messes up arithmetic shifts.
1358 Fri Dec 20 11:04:05 1996 Stu Grossman (grossman@critters.cygnus.com)
1360 * support.h: Use _WIN32 instead of __WIN32__. Also add defs for
1361 SIGTRAP and SIGQUIT for _WIN32.
1363 Thu Dec 19 14:07:27 1996 Ian Lance Taylor <ian@cygnus.com>
1365 * gencode.c (build_instruction) [MUL]: Cast operands to word64, to
1366 force a 64 bit multiplication.
1367 (build_instruction) [OR]: In mips16 mode, don't do anything if the
1368 destination register is 0, since that is the default mips16 nop
1371 Mon Dec 16 14:59:38 1996 Ian Lance Taylor <ian@cygnus.com>
1373 * gencode.c (MIPS16_DECODE): SWRASP is I8, not RI.
1374 (build_endian_shift): Don't check proc64.
1375 (build_instruction): Always set memval to uword64. Cast op2 to
1376 uword64 when shifting it left in memory instructions. Always use
1377 the same code for stores--don't special case proc64.
1379 * gencode.c (build_mips16_operands): Fix base PC value for PC
1381 (build_instruction): Call JALDELAYSLOT rather than DELAYSLOT for a
1383 * interp.c (simJALDELAYSLOT): Define.
1384 (JALDELAYSLOT): Define.
1385 (INDELAYSLOT, INJALDELAYSLOT): Define.
1386 (simulate): Clear simJALDELAYSLOT when simDELAYSLOT is cleared.
1388 Tue Dec 24 22:11:20 1996 Angela Marie Thomas (angela@cygnus.com)
1390 * interp.c (sim_open): add flush_cache as a PMON routine
1391 (sim_monitor): handle flush_cache by ignoring it
1393 Wed Dec 11 13:53:51 1996 Jim Wilson <wilson@cygnus.com>
1395 * gencode.c (build_instruction): Use !ByteSwapMem instead of
1397 * interp.c (CONFIG, config_EP_{mask,shift,D,DxxDxx, config_BE): Delete.
1398 (BigEndianMem): Rename to ByteSwapMem and change sense.
1399 (BigEndianCPU, sim_write, LoadMemory, StoreMemory): Change
1400 BigEndianMem references to !ByteSwapMem.
1401 (set_endianness): New function, with prototype.
1402 (sim_open): Call set_endianness.
1403 (sim_info): Use simBE instead of BigEndianMem.
1404 (xfer_direct_word, xfer_direct_long, swap_direct_word,
1405 swap_direct_long, xfer_big_word, xfer_big_long, xfer_little_word,
1406 xfer_little_long, swap_word, swap_long): Delete unnecessary MSC_VER
1407 ifdefs, keeping the prototype declaration.
1408 (swap_word): Rewrite correctly.
1409 (ColdReset): Delete references to CONFIG. Delete endianness related
1410 code; moved to set_endianness.
1412 Tue Dec 10 11:32:04 1996 Jim Wilson <wilson@cygnus.com>
1414 * gencode.c (build_instruction, case JUMP): Truncate PC to 32 bits.
1415 * interp.c (CHECKHILO): Define away.
1416 (simSIGINT): New macro.
1417 (membank_size): Increase from 1MB to 2MB.
1418 (control_c): New function.
1419 (sim_resume): Rename parameter signal to signal_number. Add local
1420 variable prev. Call signal before and after simulate.
1421 (sim_stop_reason): Add simSIGINT support.
1422 (sim_warning, sim_error, dotrace, SignalException): Define as stdarg
1424 (sim_warning): Delete call to SignalException. Do call printf_filtered
1426 (AddressTranslation): Add #ifdef DEBUG around debugging message and
1427 a call to sim_warning.
1429 Wed Nov 27 11:53:50 1996 Ian Lance Taylor <ian@cygnus.com>
1431 * gencode.c (process_instructions): If ! proc64, skip DOUBLEWORD
1432 16 bit instructions.
1434 Tue Nov 26 11:53:12 1996 Ian Lance Taylor <ian@cygnus.com>
1436 Add support for mips16 (16 bit MIPS implementation):
1437 * gencode.c (inst_type): Add mips16 instruction encoding types.
1438 (GETDATASIZEINSN): Define.
1439 (MIPS_DECODE): Add REG flag to dsllv, dsrav, and dsrlv. Add
1440 jalx. Add LEFT flag to mfhi and mflo. Add RIGHT flag to mthi and
1442 (MIPS16_DECODE): New table, for mips16 instructions.
1443 (bitmap_val): New static function.
1444 (struct mips16_op): Define.
1445 (mips16_op_table): New table, for mips16 operands.
1446 (build_mips16_operands): New static function.
1447 (process_instructions): If PC is odd, decode a mips16
1448 instruction. Break out instruction handling into new
1449 build_instruction function.
1450 (build_instruction): New static function, broken out of
1451 process_instructions. Check modifiers rather than flags for SHIFT
1452 bit count and m[ft]{hi,lo} direction.
1453 (usage): Pass program name to fprintf.
1454 (main): Remove unused variable this_option_optind. Change
1455 ``*loptarg++'' to ``loptarg++''.
1456 (my_strtoul): Parenthesize && within ||.
1457 * interp.c (LoadMemory): Accept a halfword pAddr if vAddr is odd.
1458 (simulate): If PC is odd, fetch a 16 bit instruction, and
1459 increment PC by 2 rather than 4.
1460 * configure.in: Add case for mips16*-*-*.
1461 * configure: Rebuild.
1463 Fri Nov 22 08:49:36 1996 Mark Alexander <marka@cygnus.com>
1465 * interp.c: Allow -t to enable tracing in standalone simulator.
1466 Fix garbage output in trace file and error messages.
1468 Wed Nov 20 01:54:37 1996 Doug Evans <dje@canuck.cygnus.com>
1470 * Makefile.in: Delete stuff moved to ../common/Make-common.in.
1471 (SIM_{OBJS,EXTRA_CFLAGS,EXTRA_CLEAN}): Define.
1472 * configure.in: Simplify using macros in ../common/aclocal.m4.
1473 * configure: Regenerated.
1474 * tconfig.in: New file.
1476 Tue Nov 12 13:34:00 1996 Dawn Perchik <dawn@cygnus.com>
1478 * interp.c: Fix bugs in 64-bit port.
1479 Use ansi function declarations for msvc compiler.
1480 Initialize and test file pointer in trace code.
1481 Prevent duplicate definition of LAST_EMED_REGNUM.
1483 Tue Oct 15 11:07:06 1996 Mark Alexander <marka@cygnus.com>
1485 * interp.c (xfer_big_long): Prevent unwanted sign extension.
1487 Thu Sep 26 17:35:00 1996 James G. Smith <jsmith@cygnus.co.uk>
1489 * interp.c (SignalException): Check for explicit terminating
1491 * gencode.c: Pass instruction value through SignalException()
1492 calls for Trap, Breakpoint and Syscall.
1494 Thu Sep 26 11:35:17 1996 James G. Smith <jsmith@cygnus.co.uk>
1496 * interp.c (SquareRoot): Add HAVE_SQRT check to ensure sqrt() is
1497 only used on those hosts that provide it.
1498 * configure.in: Add sqrt() to list of functions to be checked for.
1499 * config.in: Re-generated.
1500 * configure: Re-generated.
1502 Fri Sep 20 15:47:12 1996 Ian Lance Taylor <ian@cygnus.com>
1504 * gencode.c (process_instructions): Call build_endian_shift when
1505 expanding STORE RIGHT, to fix swr.
1506 * support.h (SIGNEXTEND): If the sign bit is not set, explicitly
1507 clear the high bits.
1508 * interp.c (Convert): Fix fmt_single to fmt_long to not truncate.
1509 Fix float to int conversions to produce signed values.
1511 Thu Sep 19 15:34:17 1996 Ian Lance Taylor <ian@cygnus.com>
1513 * gencode.c (MIPS_DECODE): Set UNSIGNED for multu instruction.
1514 (process_instructions): Correct handling of nor instruction.
1515 Correct shift count for 32 bit shift instructions. Correct sign
1516 extension for arithmetic shifts to not shift the number of bits in
1517 the type. Fix 64 bit multiply high word calculation. Fix 32 bit
1518 unsigned multiply. Fix ldxc1 and friends to use coprocessor 1.
1520 * interp.c (CHECKHILO): Don't set HIACCESS, LOACCESS, or HLPC.
1521 It's OK to have a mult follow a mult. What's not OK is to have a
1522 mult follow an mfhi.
1523 (Convert): Comment out incorrect rounding code.
1525 Mon Sep 16 11:38:16 1996 James G. Smith <jsmith@cygnus.co.uk>
1527 * interp.c (sim_monitor): Improved monitor printf
1528 simulation. Tidied up simulator warnings, and added "--log" option
1529 for directing warning message output.
1530 * gencode.c: Use sim_warning() rather than WARNING macro.
1532 Thu Aug 22 15:03:12 1996 Ian Lance Taylor <ian@cygnus.com>
1534 * Makefile.in (gencode): Depend upon gencode.o, getopt.o, and
1535 getopt1.o, rather than on gencode.c. Link objects together.
1536 Don't link against -liberty.
1537 (gencode.o, getopt.o, getopt1.o): New targets.
1538 * gencode.c: Include <ctype.h> and "ansidecl.h".
1539 (AND): Undefine after including "ansidecl.h".
1540 (ULONG_MAX): Define if not defined.
1541 (OP_*): Don't define macros; now defined in opcode/mips.h.
1542 (main): Call my_strtoul rather than strtoul.
1543 (my_strtoul): New static function.
1545 Wed Jul 17 18:12:38 1996 Stu Grossman (grossman@critters.cygnus.com)
1547 * gencode.c (process_instructions): Generate word64 and uword64
1548 instead of `long long' and `unsigned long long' data types.
1549 * interp.c: #include sysdep.h to get signals, and define default
1551 * (Convert): Work around for Visual-C++ compiler bug with type
1553 * support.h: Make things compile under Visual-C++ by using
1554 __int64 instead of `long long'. Change many refs to long long
1555 into word64/uword64 typedefs.
1557 Wed Jun 26 12:24:55 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
1559 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir,
1560 INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set values.
1562 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
1563 (AC_PROG_INSTALL): Added.
1564 (AC_PROG_CC): Moved to before configure.host call.
1565 * configure: Rebuilt.
1567 Wed Jun 5 08:28:13 1996 James G. Smith <jsmith@cygnus.co.uk>
1569 * configure.in: Define @SIMCONF@ depending on mips target.
1570 * configure: Rebuild.
1571 * Makefile.in (run): Add @SIMCONF@ to control simulator
1573 * gencode.c: Change LOADDRMASK to 64bit memory model only.
1574 * interp.c: Remove some debugging, provide more detailed error
1575 messages, update memory accesses to use LOADDRMASK.
1577 Mon Jun 3 11:55:03 1996 Ian Lance Taylor <ian@cygnus.com>
1579 * configure.in: Add calls to AC_CONFIG_HEADER, AC_CHECK_HEADERS,
1580 AC_CHECK_LIB, and AC_CHECK_FUNCS. Change AC_OUTPUT to set
1582 * configure: Rebuild.
1583 * config.in: New file, generated by autoheader.
1584 * interp.c: Include "config.h". Include <stdlib.h>, <string.h>,
1585 and <strings.h> if they exist. Replace #ifdef sun with #ifdef
1586 HAVE_ANINT and HAVE_AINT, as appropriate.
1587 * Makefile.in (run): Use @LIBS@ rather than -lm.
1588 (interp.o): Depend upon config.h.
1589 (Makefile): Just rebuild Makefile.
1590 (clean): Remove stamp-h.
1591 (mostlyclean): Make the same as clean, not as distclean.
1592 (config.h, stamp-h): New targets.
1594 Fri May 10 00:41:17 1996 James G. Smith <jsmith@cygnus.co.uk>
1596 * interp.c (ColdReset): Fix boolean test. Make all simulator
1599 Wed May 8 15:12:58 1996 James G. Smith <jsmith@cygnus.co.uk>
1601 * interp.c (xfer_direct_word, xfer_direct_long,
1602 swap_direct_word, swap_direct_long, xfer_big_word,
1603 xfer_big_long, xfer_little_word, xfer_little_long,
1604 swap_word,swap_long): Added.
1605 * interp.c (ColdReset): Provide function indirection to
1606 host<->simulated_target transfer routines.
1607 * interp.c (sim_store_register, sim_fetch_register): Updated to
1608 make use of indirected transfer routines.
1610 Fri Apr 19 15:48:24 1996 James G. Smith <jsmith@cygnus.co.uk>
1612 * gencode.c (process_instructions): Ensure FP ABS instruction
1614 * interp.c (AbsoluteValue): Add routine. Also provide simple PMON
1615 system call support.
1617 Wed Apr 10 09:51:38 1996 James G. Smith <jsmith@cygnus.co.uk>
1619 * interp.c (sim_do_command): Complain if callback structure not
1622 Thu Mar 28 13:50:51 1996 James G. Smith <jsmith@cygnus.co.uk>
1624 * interp.c (Convert): Provide round-to-nearest and round-to-zero
1625 support for Sun hosts.
1626 * Makefile.in (gencode): Ensure the host compiler and libraries
1627 used for cross-hosted build.
1629 Wed Mar 27 14:42:12 1996 James G. Smith <jsmith@cygnus.co.uk>
1631 * interp.c, gencode.c: Some more (TODO) tidying.
1633 Thu Mar 7 11:19:33 1996 James G. Smith <jsmith@cygnus.co.uk>
1635 * gencode.c, interp.c: Replaced explicit long long references with
1636 WORD64HI, WORD64LO, SET64HI and SET64LO macro calls.
1637 * support.h (SET64LO, SET64HI): Macros added.
1639 Wed Feb 21 12:16:21 1996 Ian Lance Taylor <ian@cygnus.com>
1641 * configure: Regenerate with autoconf 2.7.
1643 Tue Jan 30 08:48:18 1996 Fred Fish <fnf@cygnus.com>
1645 * interp.c (LoadMemory): Enclose text following #endif in /* */.
1646 * support.h: Remove superfluous "1" from #if.
1647 * support.h (CHECKSIM): Remove stray 'a' at end of line.
1649 Mon Dec 4 11:44:40 1995 Jamie Smith <jsmith@cygnus.com>
1651 * interp.c (StoreFPR): Control UndefinedResult() call on
1652 WARN_RESULT manifest.
1654 Fri Dec 1 16:37:19 1995 James G. Smith <jsmith@cygnus.co.uk>
1656 * gencode.c: Tidied instruction decoding, and added FP instruction
1659 * interp.c: Added dineroIII, and BSD profiling support. Also
1660 run-time FP handling.
1662 Sun Oct 22 00:57:18 1995 James G. Smith <jsmith@pasanda.cygnus.co.uk>
1664 * Changelog, Makefile.in, README.Cygnus, configure, configure.in,
1665 gencode.c, interp.c, support.h: created.