1 Fri Apr 24 19:43:30 1998 Andrew Cagney <cagney@b1.cygnus.com>
3 * ic (rBase, rLink): Make the type a pointer.
5 Sat Apr 4 20:36:25 1998 Andrew Cagney <cagney@b1.cygnus.com>
7 * configure: Regenerated to track ../common/aclocal.m4 changes.
9 Fri Mar 27 16:15:52 1998 Andrew Cagney <cagney@b1.cygnus.com>
11 * configure: Regenerated to track ../common/aclocal.m4 changes.
13 Wed Mar 25 12:35:29 1998 Andrew Cagney <cagney@b1.cygnus.com>
15 * configure: Regenerated to track ../common/aclocal.m4 changes.
17 Wed Mar 18 12:38:12 1998 Andrew Cagney <cagney@b1.cygnus.com>
19 * configure: Regenerated to track ../common/aclocal.m4 changes.
21 Wed Mar 11 14:12:56 1998 Andrew Cagney <cagney@b1.cygnus.com>
23 * alu.h (IMEM32_IMMED, IMEM32, STORE, MEM): Replace sim_core_*_map
24 with read_map, write_map, exec_map resp.
26 Thu Feb 26 19:08:37 1998 Andrew Cagney <cagney@b1.cygnus.com>
28 * sim-calls.c (sim_info): Delete.
30 Tue Feb 17 14:35:05 1998 Michael Meissner <meissner@cygnus.com>
32 * misc.c (tic80_trace_cond_br): Take size/code arguments, and
33 decode bcond conditions and bbo/bbz comparison bits.
35 * cpu.h (tic80_trace_cond_br): Update prototype.
36 (TRACE_COND_PR): Take size/code additional arguments.
38 * insns: (bbo/bbz/bcnd): Update call to TRACE_COND_PR.
40 Tue Feb 17 12:50:27 1998 Andrew Cagney <cagney@b1.cygnus.com>
42 * sim-calls.c (sim_store_register, sim_fetch_register): Pass in
43 length parameter. Return -1.
45 Fri Feb 13 17:11:22 1998 Michael Meissner <meissner@cygnus.com>
47 * insns ({get,set}_fp_reg): Tic80 floating point is little endian,
50 * misc.c (tic80_trace_fpu*): Pass address of sim_fpu structure,
51 not the structure itself. Use %g consistantly to print floating
54 * cpu.h: (tic80_trace_fpu*): Update prototypes.
56 Tue Feb 3 16:25:47 1998 Andrew Cagney <cagney@b1.cygnus.com>
58 * alu.h (IMEM32, IMEM32_IMMED): Rename IMEM and IMEM_IMMED so that
59 in sync with recent igen change.
61 Sun Feb 1 16:47:51 1998 Andrew Cagney <cagney@b1.cygnus.com>
63 * configure: Regenerated to track ../common/aclocal.m4 changes.
65 Sat Jan 31 18:15:41 1998 Andrew Cagney <cagney@b1.cygnus.com>
67 * configure: Regenerated to track ../common/aclocal.m4 changes.
69 Fri Jan 30 11:47:50 1998 Andrew Cagney <cagney@b1.cygnus.com>
71 * cpu.h (CPU_CIA): Delete macro, replace with...
72 (CIA_SET, CIA_GET): Define.
74 Wed Jan 28 18:44:33 1998 Michael Meissner <meissner@cygnus.com>
76 * misc.c (tic80_trace_cmp_internal): New function to return
77 compare bits as a string.
78 (tic80_trace_{,fpu2}cmp): New functions for tracing cmp and fcmp.
80 * cpu.h (tic80_trace_{,fpu2}cmp): Add declaration.
81 (TRACE_{,FPU2}CMP): New macros for tracing compares.
83 * insns (do_{,f}cmp): Use compare specific tracing functions to
84 print out the flag bits.
86 Mon Jan 19 22:26:29 1998 Doug Evans <devans@seba>
88 * configure: Regenerated to track ../common/aclocal.m4 changes.
90 Mon Dec 15 23:17:11 1997 Andrew Cagney <cagney@b1.cygnus.com>
92 * configure: Regenerated to track ../common/aclocal.m4 changes.
95 Thu Dec 4 09:21:05 1997 Doug Evans <devans@canuck.cygnus.com>
97 * configure: Regenerated to track ../common/aclocal.m4 changes.
99 Mon Nov 24 14:57:58 1997 Doug Evans <devans@seba.cygnus.com>
101 * cpu.h (TRACE_COND_BR): Use TRACE_BRANCH_P, not TRACE_ALU_P.
103 Sat Nov 22 21:42:09 1997 Andrew Cagney <cagney@b1.cygnus.com>
105 * interp.c (engine_step): Replace SIGTRAP with SIM_SIGTRAP.
106 (engine_run_until_stop): Replace SIGINT with SIM_SIGINT.
108 * sim-main.h: Include sim-signal.h.
109 (SIGTRAP): Delete definition.
111 * interp.c, sim-calls.c: Do not include signal.h.
113 * insns (illegal): SIGILL -> SIM_SIGILL.
114 (fp_unavailable): SIGFPE -> SIM_SIGFPE.
115 (do_trap): SIGTRAP -> SIM_SIGTRAP.
117 Tue Nov 18 15:33:48 1997 Doug Evans <devans@canuck.cygnus.com>
119 * sim-main.h (CIA_ADDR): Define.
121 * Makefile.in (SIM_OBJS): Use $(SIM_NEW_COMMON_OBJS).
123 Fri Oct 17 17:26:36 1997 Andrew Cagney <cagney@b1.cygnus.com>
125 * alu.h (ALU32_END): Use ALU32_RESULT.
127 Mon Sep 29 12:49:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
129 * insns (get_fp_reg, set_fp_reg): Update to use changed sim_fpu
131 (do_fadd, do_fcmp, do_fdiv, do_fmpy, do_frnd, do_fsub): Ditto.
133 * misc.c (tic80_trace_fpu3, tic80_trace_fpu2, tic80_trace_fpu1,
134 tic80_trace_fpu2i) Update to use changed sim_fpu interface.
136 Fri Oct 3 09:28:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
138 * configure.in (SIM_AC_OPTIONS_BITSIZE): Define.
139 * configure: Regenerated to track ../common/aclocal.m4 changes.
141 Wed Sep 24 17:38:57 1997 Andrew Cagney <cagney@b1.cygnus.com>
143 * configure: Regenerated to track ../common/aclocal.m4 changes.
145 Tue Sep 23 11:04:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
147 * configure: Regenerated to track ../common/aclocal.m4 changes.
149 Tue Sep 23 10:19:51 1997 Andrew Cagney <cagney@b1.cygnus.com>
151 * Makefile.in (SIM_WARNINGS, SIM_ALIGNMENT, SIM_ENDIAN,
152 SIM_HOSTENDIAN, SIM_INLINE, SIM_RESERVED_BITS): Delete, moved to
154 (SIM_EXTRA_CFLAGS): Update.
156 Mon Sep 22 11:46:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
158 * configure: Regenerated to track ../common/aclocal.m4 changes.
160 Fri Sep 19 17:45:25 1997 Andrew Cagney <cagney@b1.cygnus.com>
162 * configure: Regenerated to track ../common/aclocal.m4 changes.
164 Tue Sep 16 23:10:03 1997 Felix Lee <flee@cygnus.com>
166 * sim-main.h (kill): macro was missing args.
167 (SIGTRAP): define for MSVC.
169 Mon Sep 15 17:36:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
171 * configure: Regenerated to track ../common/aclocal.m4 changes.
173 Mon Sep 8 20:10:43 1997 Andrew Cagney <cagney@b1.cygnus.com>
175 * cpu.h (CPU_CIA): Define.
177 * sim-main.h (struct sim_state): Delete halt_ok, path_to_halt,
178 restart_ok, path_to_restart members.
179 (struct sim_state): Delete reason, siggnal members.
181 Thu Sep 4 17:21:23 1997 Doug Evans <dje@seba>
183 * configure: Regenerated to track ../common/aclocal.m4 changes.
185 Thu Sep 4 17:45:14 1997 Andrew Cagney <cagney@b1.cygnus.com>
187 * sim-calls.c (sim_open): Add memory before parsing arguments.
188 (sim_read): Delete, replace with sim-hrw.
189 (sim_write): Delete, replace with sim-hrw.
191 Thu Sep 4 10:48:57 1997 Andrew Cagney <cagney@b1.cygnus.com>
193 * sim-calls.c (sim_open): Use sim_do_command to add memory, only
194 add memory if none already present.
195 (sim_open): Move init of registers from here.
196 (sim_create_inferior): To here. Init modules.
198 * Makefile.in (SIM_OBJS): Add sim-memopt.o module.
200 * sim-calls.c (sim_open): Add zero modulo arg to sim_core_attach.
202 Mon Sep 1 11:06:30 1997 Andrew Cagney <cagney@b1.cygnus.com>
204 * sim-calls.c (sim_open): Use sim_state_alloc
205 (simulation): Delete.
207 Sat Aug 30 09:40:47 1997 Andrew Cagney <cagney@b1.cygnus.com>
209 * insns (do_trap): Unsigned `i' for unsigned iterator.
210 (do_trap): Ditto for comparison with getpid.
212 Wed Aug 27 18:13:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
214 * configure: Regenerated to track ../common/aclocal.m4 changes.
217 Wed Aug 27 13:41:24 1997 Andrew Cagney <cagney@b1.cygnus.com>
219 * insns (do_st): Use U8_4 instead of V4_L8.
221 * sim-calls.c (sim_open): Add call to sim_analyze_program, update
224 * sim-calls.c (sim_kill): Delete.
225 (sim_create_inferior): Add ABFD argument. Initialize PC from ABFD
227 (sim_load): Delete, use sim-hload.c.
229 * Makefile.in (SIM_OBJS): Add sim-hload.o module.
231 Mon Aug 25 17:50:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
233 * configure: Regenerated to track ../common/aclocal.m4 changes.
236 Mon Aug 25 16:33:29 1997 Andrew Cagney <cagney@b1.cygnus.com>
238 * sim-calls.c (sim_open): Add ABFD argument.
239 (sim_open): Move sim_config call to just after argument
240 parsing. Check return status.
242 Fri Aug 8 21:52:27 1997 Mark Alexander <marka@cygnus.com>
244 * sim-calls.c (sim_store_register): Allow accumulators
245 other than A0 to be modified. Correct error message.
247 Thu May 29 14:02:40 1997 Andrew Cagney <cagney@b1.cygnus.com>
249 * misc.c (tic80_trace_fpu3, tic80_trace_fpu2, tic80_trace_fpu1,
250 tic80_trace_fpu2i): Pass in function prefix.
251 (tic80_trace_ldst): Rewrite so it calls print_one_insn directly.
253 * Makefile.in (SIM_OBJS): Include sim-watch.o module.
255 * sim-main.h (WITH_WATCHPOINTS): Enable watchpoints.
257 * ic (bitnum): Compute bitnum from BITNUM.
258 * insn (bbo, bbz): Use.
260 * insn: Convert long immediate instructions to igen long immediate
262 * insn: Add disasembler information.
264 Thu May 29 12:09:13 1997 Andrew Cagney <cagney@b2.cygnus.com>
266 * alu.h (IMEM_IMMED): New macro, fetch 32bit immediate operand N.
268 * insns (subu i): Immediate is signed not unsigned.
270 Tue May 27 13:22:13 1997 Andrew Cagney <cagney@b1.cygnus.com>
272 * sim-calls.c (sim_read): Pass NULL cpu to sim_core_read_buffer.
273 (sim_write): Ditto for write.
275 Tue May 20 09:33:31 1997 Andrew Cagney <cagney@b1.cygnus.com>
277 * sim-calls.c (sim_load): Set STATE_LOADED_P.
279 * sim-main.h: Include <unistd.h>.
281 * sim-calls.c (sim_set_callback): Delete.
282 (sim_open): Add/install callback argument.
285 Mon May 19 18:59:33 1997 Mike Meissner <meissner@cygnus.com>
287 * configure.in: Check for getpid, kill functions.
288 * config{.in,ure}: Regenerate.
290 * insns (do_trap): Add support for kill, getpid system calls.
292 * sim-main.h (errno.h): Include.
293 (getpid,kill): Define as NOPs if the host doesn't have them.
295 Mon May 19 14:58:47 1997 Andrew Cagney <cagney@b1.cygnus.com>
297 * sim-calls.c (sim_open): Set the simulator base magic number.
298 (sim_load): Delete prototype of sim_load_file.
299 (sim_open): Define sd to be &simulation.
301 Fri May 16 14:35:30 1997 Andrew Cagney <cagney@b1.cygnus.com>
303 * insns (illegal, fp_unavailable): Halt instead of abort the
306 * insns: Replace calls to engine_error with sim_engine_abort.
307 Ditto for engine_halt V sim_engine_halt.
309 Tue May 13 15:24:12 1997 Andrew Cagney <cagney@b2.cygnus.com>
311 * interp.c (engine_run_until_stop): Delete. Moved to common.
312 (engine_step): Ditto.
313 (engine_step): Ditto.
314 (engine_halt): Ditto.
315 (engine_restart): Ditto.
316 (engine_halt): Ditto.
317 (engine_error): Ditto.
319 * sim-calls.c (sim_stop): Delete. Moved to common.
320 (sim_stop_reason): Ditto.
323 * Makefile.in (SIM_OBJS): Link in generic sim-engine, sim-run,
324 sim-resume, sim-reason, sim-stop modules.
326 Fri May 16 11:57:49 1997 Andrew Cagney <cagney@b1.cygnus.com>
328 * ic (compute): Drop check for REG == 0, now always forced to
331 * cpu.h (GPR_SET): New macro update the gpr.
332 * insns (do_add): Use GPR_SET to update the GPR register.
334 * sim-calls.c (sim_fetch_register): Pretend that r0 is zero.
336 * Makefile.in (tmp-igen): Specify zero-r0 so that every
337 instruction clears r0.
339 * interp.c (engine_run_until_stop): Igen now generates code to
341 (engine_step): Ditto.
343 Thu May 15 11:45:37 1997 Andrew Cagney <cagney@b1.cygnus.com>
345 * insns (do_shift): When rot==0 and zero/sign merge treat it as
347 (set_fp_reg): For interger conversion, use sim-fpu fpu2i
349 (do_fmpy): Perform iii and uuu using integer arithmetic.
351 * Makefile.in (ENGINE_H): Assume everything depends on the fpu.
353 * insns (get_fp_reg): Use sim_fpu_u32to to perform unsigned
355 (do_fcmp): Update to use new fp compare functions. Make reg nr arg
356 instead of reg. Stops fp overflow.
357 (get_fp_reg): Assume val is valid when reg == 0.
358 (set_fp_reg): Fix double conversion.
360 * misc.c (tic80_trace_fpu1): New function, trace simple fp op.
362 * insns (do_frnd): Add tracing.
364 * cpu.h (TRACE_FPU1): Ditto.
366 * insns (do_trap): Printf formatting.
368 Wed May 14 18:05:50 1997 Mike Meissner <meissner@cygnus.com>
370 * misc.c (tic80_trace_fpu{3,2,2i}): Align columns with other
371 insns. Use %g to print floating point instead of %f in case the
372 numbers are real large.
374 Tue May 13 18:00:10 1997 Mike Meissner <meissner@cygnus.com>
376 * insns (do_trap): For system calls that are defined, but not
377 provided return EINVAL. Temporarily add traps 74-79 to just print
380 * interp.c (engine_{run_until_stop,step}): Before executing
381 instructions, make sure r0 == 0.
383 Tue May 13 16:39:37 1997 Andrew Cagney <cagney@b1.cygnus.com>
385 * alu.h (IMEM): Take full cia not just IP as argument.
387 * interp.c (engine_run_until_stop): Delete handling of annuled
389 (engine_step): Ditto.
391 * insn (do_branch): New function.
392 (do_bbo, do_bbz, do_bcnd, do_bsr, do_jsr): Use do_branch to handle
395 Mon May 12 17:15:52 1997 Mike Meissner <meissner@cygnus.com>
397 * insns (do_{ld,st}): Fix tracing for ld/st.
399 Mon May 12 11:12:24 1997 Andrew Cagney <cagney@b1.cygnus.com>
401 * sim-calls.c (sim_stop_reason): Restore keep_running after a
402 CNTRL-C, don't re-clear it.
404 * interp.c (engine_error): stop rather than signal with SIGABRT
407 * insns (do_ld): For 64bit loads, always store LSW in rDest, MSW in
408 rDest + 1. Also done by Michael Meissner <meissner@cygnus.com>
409 (do_st): Converse for store.
411 * misc.c (tic80_trace_fpu2i): Correct printf format for int type.
413 Sun May 11 11:02:57 1997 Andrew Cagney <cagney@b1.cygnus.com>
415 * sim-calls.c (sim_stop_reason): Return a SIGINT if keep_running
418 * interp.c (engine_step): New function. Single step the simulator
419 taking care of cntrl-c during a step.
421 * sim-calls.c (sim_resume): Differentiate between stepping and
422 running so that a cntrl-c during a step is reported.
424 Sun May 11 10:54:31 1997 Mark Alexander <marka@cygnus.com>
426 * sim-calls.c (sim_fetch_register): Use correct reg base.
427 (sim_store_register): Ditto.
429 Sun May 11 10:25:14 1997 Michael Meissner <meissner@cygnus.com>
431 * cpu.h (tic80_trace_shift): Add declaration.
432 (TRACE_SHIFT): New macro to trace shift instructions.
434 * misc.c (tic80_trace_alu2): Align spacing.
435 (tic80_trace_shift): New function to trace shifts.
437 * insns (lmo): Add missing 0b prefix to bits.
438 (do_shift): Use ~ (unsigned32)0, instead of -1. Use TRACE_SHIFT
439 instead of TRACE_ALU2.
440 (sl r): Use EndMask as is, instead of using Source+1 register.
441 (subu): Operands are unsigned, not signed.
442 (do_{ld,st}): Fix endian problems with ld.d/st.d.
444 Sat May 10 12:35:47 1997 Michael Meissner <meissner@cygnus.com>
446 * insns (and{.tt,.tf,.ft,.ff}): Immediate values are unsigned, not
449 Fri May 9 15:47:36 1997 Mike Meissner <meissner@cygnus.com>
451 * insns (cmp_vals,do_cmp): Produce the correct bits as specified
453 (xor): Fix xor immediate patterns to use the correct bits.
455 Fri May 9 09:55:33 1997 Andrew Cagney <cagney@b1.cygnus.com>
457 * alu.h (long_immediate): Adjust the CIA delay-pointer as well as
458 the NIA when a 64bit insn.
460 Thu May 8 11:57:47 1997 Michael Meissner <meissner@cygnus.com>
462 * insns (jsr,bsr): For non-allulled calls, set r31 so that the
463 return address does not reexecute the instruction in the delay
465 (bbo,bbz): Complement bit number to reverse the one's complement
466 that the assembler is required to do.
468 * misc.c (tic80_trace_*): Change format slightly to accomidate
469 real large decimal values.
471 Thu May 8 14:07:16 1997 Andrew Cagney <cagney@b1.cygnus.com>
473 * sim-calls.c (sim_do_command): Implement.
474 (sim_store_register): Fix typo T2H v H2T.
476 Wed May 7 11:48:55 1997 Andrew Cagney <cagney@b1.cygnus.com>
478 * cpu.h (TRACE_FPU2, TRACE_FPU3, TRACE_FPU2I): Add.
479 * insn: Clean up fpu tracing.
481 * sim-calls.c (sim_create_inferior): Start out with interrupts
484 * cpu.h (TRACE_SINK3), misc.c (tic80_trace_sink3): Three argument
487 * insns (rdcr, swcr, wrcr, brcr, rmo, lmo): Implement.
489 * insns (do_*): Remove MY_INDEX/indx argument from support functions,
490 igen now handles this.
492 * cpu.h (CR): New macro - access TIc80 control registers.
495 (tic80_cr2index): New function, map control register opcode index
496 into the internal CR enum.
499 (tic80_trace_{alu{2,3},nop,sink{1,2},{,u}cond_br,ldst}): Move from
503 * Makefile.in (SIM_OBJS): Add misc.o.
505 Tue May 6 15:22:58 1997 Mike Meissner <meissner@cygnus.com>
507 * cpu.h ({,v}{S,D}P_FPR): Delete unused macros that won't work on
509 (tic80_trace_{alu{2,3},nop,sink{1,2},{,u}cond_br,ldst}): Declare
511 (TRACE_{ALU{2,3},NOP,SINK{1,2},{,U}COND_BR,LD,ST}): New macros to
512 trace various instruction types.
514 * insns: Modify all instructions to support semantic tracing.
516 * interp.c (toplevel): Include itable.h.
517 (tic80_trace_{alu{2,3},nop,sink{1,2},{,u}cond_br,ldst}): New
518 functions to provide semantic level tracing information.
520 Mon May 5 11:50:43 1997 Andrew Cagney <cagney@b1.cygnus.com>
522 * alu.h: Update usage of core object to reflect recent changes in
524 * sim-calls.c (sim_open): Ditto.
526 Mon May 5 14:10:17 1997 Andrew Cagney <cagney@b1.cygnus.com>
528 * insn (cmnd): No-op cache flushes.
530 * insns (do_trap): Allow writes to STDERR.
532 * Makefile.in (SIM_OBJS): Link in sim-fpu.o.
533 (SIM_EXTRA_LIBS): Link in the math library.
535 * alu.h: Add support for floating point unit using sim-alu.
537 * insns (fadd, fsub, fmpy, fdiv, fcmp, frnd*): Implement.
539 Fri May 2 14:57:14 1997 Andrew Cagney <cagney@b1.cygnus.com>
541 * sim-calls.c: Include sim-utils.h and sim-options.h.
543 * sim-main.h (sim_state): Drop sim_events and sim_core members,
544 moved to simulator base type.
546 * alu.h (IMEM, MEM, STORE): Update track changes in common
549 * insns: Drop cia argument from functions, igen now handles this.
551 * interp.c (engine_init): Include string.h/strings.h to define
554 * sim-main.h (sim_cia): Delcare, tracking common dir changes.
556 * cpu.h (sim_cpu): Update instruction_address with sim_cia.
558 Wed Apr 30 11:26:56 1997 Andrew Cagney <cagney@b1.cygnus.com>
560 * sim-main.h (signal.h): Include so that SIG* available to all
563 * insns (do_shift): New function, implement shift operations.
564 (do_trap): Add handler for trap 73 - SIGTRAP.
566 Tue Apr 29 10:58:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
568 * alu.h (MEM, STORE): Force addresses to be correctly aligned.
570 * insns (do_jsr): Fix.
571 (do_st, do_ld): Handle 64bit transfers.
572 (do_trap): Match libgloss.
573 (rdcr): Implement nop - Dest == r0 - variant.
575 * sim-calls.c (sim_create_inferior): Initialize SP.
577 * Makefile.in (ENGINE_H): Everything now depends on sim-options.h.
578 (support.o): Depends on ENGINE_H.
580 * cpu.h: Four accumulators.
582 * Makefile.in (tmp-igen): Include line number information in
585 * insns (dld, dst): Fill in.
587 Mon Apr 28 13:02:26 1997 Andrew Cagney <cagney@b1.cygnus.com>
589 * insns (vld): Fix instruction format wrong.
591 Thu Apr 24 16:43:09 1997 Andrew Cagney <cagney@b1.cygnus.com>
593 * dc: Add additional rules so that minor opcode files are
595 * insns: Enable more instructions.
597 * sim-calls.c (sim_fetch_register,sim_store_register, sim_write):
600 Thu Apr 24 00:39:51 1997 Doug Evans <dje@canuck.cygnus.com>
602 * configure: Regenerated to track ../common/aclocal.m4 changes.
603 * Makefile.in (SIM_OBJS): Add sim-module.o, sim-profile.o.
604 * sim-calls.c (sim_open): Call sim_module_uninstall if argument
605 parsing fails. Call sim_post_argv_init.
606 (sim_close): Call sim_module_uninstall.
608 Wed Apr 23 20:05:33 1997 Andrew Cagney <cagney@b1.cygnus.com>
610 * insns (and, bbo, bcnd, bsr, dcache, jsr, or, xor, nor): Enable.
611 * ic: Add fields for enabled instructions.