1 Fri Mar 27 16:15:52 1998 Andrew Cagney <cagney@b1.cygnus.com>
3 * configure: Regenerated to track ../common/aclocal.m4 changes.
5 Wed Mar 25 12:35:29 1998 Andrew Cagney <cagney@b1.cygnus.com>
7 * configure: Regenerated to track ../common/aclocal.m4 changes.
9 Wed Mar 18 12:38:12 1998 Andrew Cagney <cagney@b1.cygnus.com>
11 * configure: Regenerated to track ../common/aclocal.m4 changes.
13 Wed Mar 11 14:12:56 1998 Andrew Cagney <cagney@b1.cygnus.com>
15 * alu.h (IMEM32_IMMED, IMEM32, STORE, MEM): Replace sim_core_*_map
16 with read_map, write_map, exec_map resp.
18 Thu Feb 26 19:08:37 1998 Andrew Cagney <cagney@b1.cygnus.com>
20 * sim-calls.c (sim_info): Delete.
22 Tue Feb 17 14:35:05 1998 Michael Meissner <meissner@cygnus.com>
24 * misc.c (tic80_trace_cond_br): Take size/code arguments, and
25 decode bcond conditions and bbo/bbz comparison bits.
27 * cpu.h (tic80_trace_cond_br): Update prototype.
28 (TRACE_COND_PR): Take size/code additional arguments.
30 * insns: (bbo/bbz/bcnd): Update call to TRACE_COND_PR.
32 Tue Feb 17 12:50:27 1998 Andrew Cagney <cagney@b1.cygnus.com>
34 * sim-calls.c (sim_store_register, sim_fetch_register): Pass in
35 length parameter. Return -1.
37 Fri Feb 13 17:11:22 1998 Michael Meissner <meissner@cygnus.com>
39 * insns ({get,set}_fp_reg): Tic80 floating point is little endian,
42 * misc.c (tic80_trace_fpu*): Pass address of sim_fpu structure,
43 not the structure itself. Use %g consistantly to print floating
46 * cpu.h: (tic80_trace_fpu*): Update prototypes.
48 Tue Feb 3 16:25:47 1998 Andrew Cagney <cagney@b1.cygnus.com>
50 * alu.h (IMEM32, IMEM32_IMMED): Rename IMEM and IMEM_IMMED so that
51 in sync with recent igen change.
53 Sun Feb 1 16:47:51 1998 Andrew Cagney <cagney@b1.cygnus.com>
55 * configure: Regenerated to track ../common/aclocal.m4 changes.
57 Sat Jan 31 18:15:41 1998 Andrew Cagney <cagney@b1.cygnus.com>
59 * configure: Regenerated to track ../common/aclocal.m4 changes.
61 Fri Jan 30 11:47:50 1998 Andrew Cagney <cagney@b1.cygnus.com>
63 * cpu.h (CPU_CIA): Delete macro, replace with...
64 (CIA_SET, CIA_GET): Define.
66 Wed Jan 28 18:44:33 1998 Michael Meissner <meissner@cygnus.com>
68 * misc.c (tic80_trace_cmp_internal): New function to return
69 compare bits as a string.
70 (tic80_trace_{,fpu2}cmp): New functions for tracing cmp and fcmp.
72 * cpu.h (tic80_trace_{,fpu2}cmp): Add declaration.
73 (TRACE_{,FPU2}CMP): New macros for tracing compares.
75 * insns (do_{,f}cmp): Use compare specific tracing functions to
76 print out the flag bits.
78 Mon Jan 19 22:26:29 1998 Doug Evans <devans@seba>
80 * configure: Regenerated to track ../common/aclocal.m4 changes.
82 Mon Dec 15 23:17:11 1997 Andrew Cagney <cagney@b1.cygnus.com>
84 * configure: Regenerated to track ../common/aclocal.m4 changes.
87 Thu Dec 4 09:21:05 1997 Doug Evans <devans@canuck.cygnus.com>
89 * configure: Regenerated to track ../common/aclocal.m4 changes.
91 Mon Nov 24 14:57:58 1997 Doug Evans <devans@seba.cygnus.com>
93 * cpu.h (TRACE_COND_BR): Use TRACE_BRANCH_P, not TRACE_ALU_P.
95 Sat Nov 22 21:42:09 1997 Andrew Cagney <cagney@b1.cygnus.com>
97 * interp.c (engine_step): Replace SIGTRAP with SIM_SIGTRAP.
98 (engine_run_until_stop): Replace SIGINT with SIM_SIGINT.
100 * sim-main.h: Include sim-signal.h.
101 (SIGTRAP): Delete definition.
103 * interp.c, sim-calls.c: Do not include signal.h.
105 * insns (illegal): SIGILL -> SIM_SIGILL.
106 (fp_unavailable): SIGFPE -> SIM_SIGFPE.
107 (do_trap): SIGTRAP -> SIM_SIGTRAP.
109 Tue Nov 18 15:33:48 1997 Doug Evans <devans@canuck.cygnus.com>
111 * sim-main.h (CIA_ADDR): Define.
113 * Makefile.in (SIM_OBJS): Use $(SIM_NEW_COMMON_OBJS).
115 Fri Oct 17 17:26:36 1997 Andrew Cagney <cagney@b1.cygnus.com>
117 * alu.h (ALU32_END): Use ALU32_RESULT.
119 Mon Sep 29 12:49:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
121 * insns (get_fp_reg, set_fp_reg): Update to use changed sim_fpu
123 (do_fadd, do_fcmp, do_fdiv, do_fmpy, do_frnd, do_fsub): Ditto.
125 * misc.c (tic80_trace_fpu3, tic80_trace_fpu2, tic80_trace_fpu1,
126 tic80_trace_fpu2i) Update to use changed sim_fpu interface.
128 Fri Oct 3 09:28:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
130 * configure.in (SIM_AC_OPTIONS_BITSIZE): Define.
131 * configure: Regenerated to track ../common/aclocal.m4 changes.
133 Wed Sep 24 17:38:57 1997 Andrew Cagney <cagney@b1.cygnus.com>
135 * configure: Regenerated to track ../common/aclocal.m4 changes.
137 Tue Sep 23 11:04:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
139 * configure: Regenerated to track ../common/aclocal.m4 changes.
141 Tue Sep 23 10:19:51 1997 Andrew Cagney <cagney@b1.cygnus.com>
143 * Makefile.in (SIM_WARNINGS, SIM_ALIGNMENT, SIM_ENDIAN,
144 SIM_HOSTENDIAN, SIM_INLINE, SIM_RESERVED_BITS): Delete, moved to
146 (SIM_EXTRA_CFLAGS): Update.
148 Mon Sep 22 11:46:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
150 * configure: Regenerated to track ../common/aclocal.m4 changes.
152 Fri Sep 19 17:45:25 1997 Andrew Cagney <cagney@b1.cygnus.com>
154 * configure: Regenerated to track ../common/aclocal.m4 changes.
156 Tue Sep 16 23:10:03 1997 Felix Lee <flee@cygnus.com>
158 * sim-main.h (kill): macro was missing args.
159 (SIGTRAP): define for MSVC.
161 Mon Sep 15 17:36:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
163 * configure: Regenerated to track ../common/aclocal.m4 changes.
165 Mon Sep 8 20:10:43 1997 Andrew Cagney <cagney@b1.cygnus.com>
167 * cpu.h (CPU_CIA): Define.
169 * sim-main.h (struct sim_state): Delete halt_ok, path_to_halt,
170 restart_ok, path_to_restart members.
171 (struct sim_state): Delete reason, siggnal members.
173 Thu Sep 4 17:21:23 1997 Doug Evans <dje@seba>
175 * configure: Regenerated to track ../common/aclocal.m4 changes.
177 Thu Sep 4 17:45:14 1997 Andrew Cagney <cagney@b1.cygnus.com>
179 * sim-calls.c (sim_open): Add memory before parsing arguments.
180 (sim_read): Delete, replace with sim-hrw.
181 (sim_write): Delete, replace with sim-hrw.
183 Thu Sep 4 10:48:57 1997 Andrew Cagney <cagney@b1.cygnus.com>
185 * sim-calls.c (sim_open): Use sim_do_command to add memory, only
186 add memory if none already present.
187 (sim_open): Move init of registers from here.
188 (sim_create_inferior): To here. Init modules.
190 * Makefile.in (SIM_OBJS): Add sim-memopt.o module.
192 * sim-calls.c (sim_open): Add zero modulo arg to sim_core_attach.
194 Mon Sep 1 11:06:30 1997 Andrew Cagney <cagney@b1.cygnus.com>
196 * sim-calls.c (sim_open): Use sim_state_alloc
197 (simulation): Delete.
199 Sat Aug 30 09:40:47 1997 Andrew Cagney <cagney@b1.cygnus.com>
201 * insns (do_trap): Unsigned `i' for unsigned iterator.
202 (do_trap): Ditto for comparison with getpid.
204 Wed Aug 27 18:13:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
206 * configure: Regenerated to track ../common/aclocal.m4 changes.
209 Wed Aug 27 13:41:24 1997 Andrew Cagney <cagney@b1.cygnus.com>
211 * insns (do_st): Use U8_4 instead of V4_L8.
213 * sim-calls.c (sim_open): Add call to sim_analyze_program, update
216 * sim-calls.c (sim_kill): Delete.
217 (sim_create_inferior): Add ABFD argument. Initialize PC from ABFD
219 (sim_load): Delete, use sim-hload.c.
221 * Makefile.in (SIM_OBJS): Add sim-hload.o module.
223 Mon Aug 25 17:50:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
225 * configure: Regenerated to track ../common/aclocal.m4 changes.
228 Mon Aug 25 16:33:29 1997 Andrew Cagney <cagney@b1.cygnus.com>
230 * sim-calls.c (sim_open): Add ABFD argument.
231 (sim_open): Move sim_config call to just after argument
232 parsing. Check return status.
234 Fri Aug 8 21:52:27 1997 Mark Alexander <marka@cygnus.com>
236 * sim-calls.c (sim_store_register): Allow accumulators
237 other than A0 to be modified. Correct error message.
239 Thu May 29 14:02:40 1997 Andrew Cagney <cagney@b1.cygnus.com>
241 * misc.c (tic80_trace_fpu3, tic80_trace_fpu2, tic80_trace_fpu1,
242 tic80_trace_fpu2i): Pass in function prefix.
243 (tic80_trace_ldst): Rewrite so it calls print_one_insn directly.
245 * Makefile.in (SIM_OBJS): Include sim-watch.o module.
247 * sim-main.h (WITH_WATCHPOINTS): Enable watchpoints.
249 * ic (bitnum): Compute bitnum from BITNUM.
250 * insn (bbo, bbz): Use.
252 * insn: Convert long immediate instructions to igen long immediate
254 * insn: Add disasembler information.
256 Thu May 29 12:09:13 1997 Andrew Cagney <cagney@b2.cygnus.com>
258 * alu.h (IMEM_IMMED): New macro, fetch 32bit immediate operand N.
260 * insns (subu i): Immediate is signed not unsigned.
262 Tue May 27 13:22:13 1997 Andrew Cagney <cagney@b1.cygnus.com>
264 * sim-calls.c (sim_read): Pass NULL cpu to sim_core_read_buffer.
265 (sim_write): Ditto for write.
267 Tue May 20 09:33:31 1997 Andrew Cagney <cagney@b1.cygnus.com>
269 * sim-calls.c (sim_load): Set STATE_LOADED_P.
271 * sim-main.h: Include <unistd.h>.
273 * sim-calls.c (sim_set_callback): Delete.
274 (sim_open): Add/install callback argument.
277 Mon May 19 18:59:33 1997 Mike Meissner <meissner@cygnus.com>
279 * configure.in: Check for getpid, kill functions.
280 * config{.in,ure}: Regenerate.
282 * insns (do_trap): Add support for kill, getpid system calls.
284 * sim-main.h (errno.h): Include.
285 (getpid,kill): Define as NOPs if the host doesn't have them.
287 Mon May 19 14:58:47 1997 Andrew Cagney <cagney@b1.cygnus.com>
289 * sim-calls.c (sim_open): Set the simulator base magic number.
290 (sim_load): Delete prototype of sim_load_file.
291 (sim_open): Define sd to be &simulation.
293 Fri May 16 14:35:30 1997 Andrew Cagney <cagney@b1.cygnus.com>
295 * insns (illegal, fp_unavailable): Halt instead of abort the
298 * insns: Replace calls to engine_error with sim_engine_abort.
299 Ditto for engine_halt V sim_engine_halt.
301 Tue May 13 15:24:12 1997 Andrew Cagney <cagney@b2.cygnus.com>
303 * interp.c (engine_run_until_stop): Delete. Moved to common.
304 (engine_step): Ditto.
305 (engine_step): Ditto.
306 (engine_halt): Ditto.
307 (engine_restart): Ditto.
308 (engine_halt): Ditto.
309 (engine_error): Ditto.
311 * sim-calls.c (sim_stop): Delete. Moved to common.
312 (sim_stop_reason): Ditto.
315 * Makefile.in (SIM_OBJS): Link in generic sim-engine, sim-run,
316 sim-resume, sim-reason, sim-stop modules.
318 Fri May 16 11:57:49 1997 Andrew Cagney <cagney@b1.cygnus.com>
320 * ic (compute): Drop check for REG == 0, now always forced to
323 * cpu.h (GPR_SET): New macro update the gpr.
324 * insns (do_add): Use GPR_SET to update the GPR register.
326 * sim-calls.c (sim_fetch_register): Pretend that r0 is zero.
328 * Makefile.in (tmp-igen): Specify zero-r0 so that every
329 instruction clears r0.
331 * interp.c (engine_run_until_stop): Igen now generates code to
333 (engine_step): Ditto.
335 Thu May 15 11:45:37 1997 Andrew Cagney <cagney@b1.cygnus.com>
337 * insns (do_shift): When rot==0 and zero/sign merge treat it as
339 (set_fp_reg): For interger conversion, use sim-fpu fpu2i
341 (do_fmpy): Perform iii and uuu using integer arithmetic.
343 * Makefile.in (ENGINE_H): Assume everything depends on the fpu.
345 * insns (get_fp_reg): Use sim_fpu_u32to to perform unsigned
347 (do_fcmp): Update to use new fp compare functions. Make reg nr arg
348 instead of reg. Stops fp overflow.
349 (get_fp_reg): Assume val is valid when reg == 0.
350 (set_fp_reg): Fix double conversion.
352 * misc.c (tic80_trace_fpu1): New function, trace simple fp op.
354 * insns (do_frnd): Add tracing.
356 * cpu.h (TRACE_FPU1): Ditto.
358 * insns (do_trap): Printf formatting.
360 Wed May 14 18:05:50 1997 Mike Meissner <meissner@cygnus.com>
362 * misc.c (tic80_trace_fpu{3,2,2i}): Align columns with other
363 insns. Use %g to print floating point instead of %f in case the
364 numbers are real large.
366 Tue May 13 18:00:10 1997 Mike Meissner <meissner@cygnus.com>
368 * insns (do_trap): For system calls that are defined, but not
369 provided return EINVAL. Temporarily add traps 74-79 to just print
372 * interp.c (engine_{run_until_stop,step}): Before executing
373 instructions, make sure r0 == 0.
375 Tue May 13 16:39:37 1997 Andrew Cagney <cagney@b1.cygnus.com>
377 * alu.h (IMEM): Take full cia not just IP as argument.
379 * interp.c (engine_run_until_stop): Delete handling of annuled
381 (engine_step): Ditto.
383 * insn (do_branch): New function.
384 (do_bbo, do_bbz, do_bcnd, do_bsr, do_jsr): Use do_branch to handle
387 Mon May 12 17:15:52 1997 Mike Meissner <meissner@cygnus.com>
389 * insns (do_{ld,st}): Fix tracing for ld/st.
391 Mon May 12 11:12:24 1997 Andrew Cagney <cagney@b1.cygnus.com>
393 * sim-calls.c (sim_stop_reason): Restore keep_running after a
394 CNTRL-C, don't re-clear it.
396 * interp.c (engine_error): stop rather than signal with SIGABRT
399 * insns (do_ld): For 64bit loads, always store LSW in rDest, MSW in
400 rDest + 1. Also done by Michael Meissner <meissner@cygnus.com>
401 (do_st): Converse for store.
403 * misc.c (tic80_trace_fpu2i): Correct printf format for int type.
405 Sun May 11 11:02:57 1997 Andrew Cagney <cagney@b1.cygnus.com>
407 * sim-calls.c (sim_stop_reason): Return a SIGINT if keep_running
410 * interp.c (engine_step): New function. Single step the simulator
411 taking care of cntrl-c during a step.
413 * sim-calls.c (sim_resume): Differentiate between stepping and
414 running so that a cntrl-c during a step is reported.
416 Sun May 11 10:54:31 1997 Mark Alexander <marka@cygnus.com>
418 * sim-calls.c (sim_fetch_register): Use correct reg base.
419 (sim_store_register): Ditto.
421 Sun May 11 10:25:14 1997 Michael Meissner <meissner@cygnus.com>
423 * cpu.h (tic80_trace_shift): Add declaration.
424 (TRACE_SHIFT): New macro to trace shift instructions.
426 * misc.c (tic80_trace_alu2): Align spacing.
427 (tic80_trace_shift): New function to trace shifts.
429 * insns (lmo): Add missing 0b prefix to bits.
430 (do_shift): Use ~ (unsigned32)0, instead of -1. Use TRACE_SHIFT
431 instead of TRACE_ALU2.
432 (sl r): Use EndMask as is, instead of using Source+1 register.
433 (subu): Operands are unsigned, not signed.
434 (do_{ld,st}): Fix endian problems with ld.d/st.d.
436 Sat May 10 12:35:47 1997 Michael Meissner <meissner@cygnus.com>
438 * insns (and{.tt,.tf,.ft,.ff}): Immediate values are unsigned, not
441 Fri May 9 15:47:36 1997 Mike Meissner <meissner@cygnus.com>
443 * insns (cmp_vals,do_cmp): Produce the correct bits as specified
445 (xor): Fix xor immediate patterns to use the correct bits.
447 Fri May 9 09:55:33 1997 Andrew Cagney <cagney@b1.cygnus.com>
449 * alu.h (long_immediate): Adjust the CIA delay-pointer as well as
450 the NIA when a 64bit insn.
452 Thu May 8 11:57:47 1997 Michael Meissner <meissner@cygnus.com>
454 * insns (jsr,bsr): For non-allulled calls, set r31 so that the
455 return address does not reexecute the instruction in the delay
457 (bbo,bbz): Complement bit number to reverse the one's complement
458 that the assembler is required to do.
460 * misc.c (tic80_trace_*): Change format slightly to accomidate
461 real large decimal values.
463 Thu May 8 14:07:16 1997 Andrew Cagney <cagney@b1.cygnus.com>
465 * sim-calls.c (sim_do_command): Implement.
466 (sim_store_register): Fix typo T2H v H2T.
468 Wed May 7 11:48:55 1997 Andrew Cagney <cagney@b1.cygnus.com>
470 * cpu.h (TRACE_FPU2, TRACE_FPU3, TRACE_FPU2I): Add.
471 * insn: Clean up fpu tracing.
473 * sim-calls.c (sim_create_inferior): Start out with interrupts
476 * cpu.h (TRACE_SINK3), misc.c (tic80_trace_sink3): Three argument
479 * insns (rdcr, swcr, wrcr, brcr, rmo, lmo): Implement.
481 * insns (do_*): Remove MY_INDEX/indx argument from support functions,
482 igen now handles this.
484 * cpu.h (CR): New macro - access TIc80 control registers.
487 (tic80_cr2index): New function, map control register opcode index
488 into the internal CR enum.
491 (tic80_trace_{alu{2,3},nop,sink{1,2},{,u}cond_br,ldst}): Move from
495 * Makefile.in (SIM_OBJS): Add misc.o.
497 Tue May 6 15:22:58 1997 Mike Meissner <meissner@cygnus.com>
499 * cpu.h ({,v}{S,D}P_FPR): Delete unused macros that won't work on
501 (tic80_trace_{alu{2,3},nop,sink{1,2},{,u}cond_br,ldst}): Declare
503 (TRACE_{ALU{2,3},NOP,SINK{1,2},{,U}COND_BR,LD,ST}): New macros to
504 trace various instruction types.
506 * insns: Modify all instructions to support semantic tracing.
508 * interp.c (toplevel): Include itable.h.
509 (tic80_trace_{alu{2,3},nop,sink{1,2},{,u}cond_br,ldst}): New
510 functions to provide semantic level tracing information.
512 Mon May 5 11:50:43 1997 Andrew Cagney <cagney@b1.cygnus.com>
514 * alu.h: Update usage of core object to reflect recent changes in
516 * sim-calls.c (sim_open): Ditto.
518 Mon May 5 14:10:17 1997 Andrew Cagney <cagney@b1.cygnus.com>
520 * insn (cmnd): No-op cache flushes.
522 * insns (do_trap): Allow writes to STDERR.
524 * Makefile.in (SIM_OBJS): Link in sim-fpu.o.
525 (SIM_EXTRA_LIBS): Link in the math library.
527 * alu.h: Add support for floating point unit using sim-alu.
529 * insns (fadd, fsub, fmpy, fdiv, fcmp, frnd*): Implement.
531 Fri May 2 14:57:14 1997 Andrew Cagney <cagney@b1.cygnus.com>
533 * sim-calls.c: Include sim-utils.h and sim-options.h.
535 * sim-main.h (sim_state): Drop sim_events and sim_core members,
536 moved to simulator base type.
538 * alu.h (IMEM, MEM, STORE): Update track changes in common
541 * insns: Drop cia argument from functions, igen now handles this.
543 * interp.c (engine_init): Include string.h/strings.h to define
546 * sim-main.h (sim_cia): Delcare, tracking common dir changes.
548 * cpu.h (sim_cpu): Update instruction_address with sim_cia.
550 Wed Apr 30 11:26:56 1997 Andrew Cagney <cagney@b1.cygnus.com>
552 * sim-main.h (signal.h): Include so that SIG* available to all
555 * insns (do_shift): New function, implement shift operations.
556 (do_trap): Add handler for trap 73 - SIGTRAP.
558 Tue Apr 29 10:58:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
560 * alu.h (MEM, STORE): Force addresses to be correctly aligned.
562 * insns (do_jsr): Fix.
563 (do_st, do_ld): Handle 64bit transfers.
564 (do_trap): Match libgloss.
565 (rdcr): Implement nop - Dest == r0 - variant.
567 * sim-calls.c (sim_create_inferior): Initialize SP.
569 * Makefile.in (ENGINE_H): Everything now depends on sim-options.h.
570 (support.o): Depends on ENGINE_H.
572 * cpu.h: Four accumulators.
574 * Makefile.in (tmp-igen): Include line number information in
577 * insns (dld, dst): Fill in.
579 Mon Apr 28 13:02:26 1997 Andrew Cagney <cagney@b1.cygnus.com>
581 * insns (vld): Fix instruction format wrong.
583 Thu Apr 24 16:43:09 1997 Andrew Cagney <cagney@b1.cygnus.com>
585 * dc: Add additional rules so that minor opcode files are
587 * insns: Enable more instructions.
589 * sim-calls.c (sim_fetch_register,sim_store_register, sim_write):
592 Thu Apr 24 00:39:51 1997 Doug Evans <dje@canuck.cygnus.com>
594 * configure: Regenerated to track ../common/aclocal.m4 changes.
595 * Makefile.in (SIM_OBJS): Add sim-module.o, sim-profile.o.
596 * sim-calls.c (sim_open): Call sim_module_uninstall if argument
597 parsing fails. Call sim_post_argv_init.
598 (sim_close): Call sim_module_uninstall.
600 Wed Apr 23 20:05:33 1997 Andrew Cagney <cagney@b1.cygnus.com>
602 * insns (and, bbo, bcnd, bsr, dcache, jsr, or, xor, nor): Enable.
603 * ic: Add fields for enabled instructions.