1 Fri Feb 13 17:11:22 1998 Michael Meissner <meissner@cygnus.com>
3 * misc.c (tic80_trace_fpu*): Pass address of sim_fpu structure,
4 not the structure itself. Use %g consistantly to print floating
7 * cpu.h: (tic80_trace_fpu*): Update prototypes.
9 Tue Feb 3 16:25:47 1998 Andrew Cagney <cagney@b1.cygnus.com>
11 * alu.h (IMEM32, IMEM32_IMMED): Rename IMEM and IMEM_IMMED so that
12 in sync with recent igen change.
14 Sun Feb 1 16:47:51 1998 Andrew Cagney <cagney@b1.cygnus.com>
16 * configure: Regenerated to track ../common/aclocal.m4 changes.
18 Sat Jan 31 18:15:41 1998 Andrew Cagney <cagney@b1.cygnus.com>
20 * configure: Regenerated to track ../common/aclocal.m4 changes.
22 Fri Jan 30 11:47:50 1998 Andrew Cagney <cagney@b1.cygnus.com>
24 * cpu.h (CPU_CIA): Delete macro, replace with...
25 (CIA_SET, CIA_GET): Define.
27 Wed Jan 28 18:44:33 1998 Michael Meissner <meissner@cygnus.com>
29 * misc.c (tic80_trace_cmp_internal): New function to return
30 compare bits as a string.
31 (tic80_trace_{,fpu2}cmp): New functions for tracing cmp and fcmp.
33 * cpu.h (tic80_trace_{,fpu2}cmp): Add declaration.
34 (TRACE_{,FPU2}CMP): New macros for tracing compares.
36 * insns (do_{,f}cmp): Use compare specific tracing functions to
37 print out the flag bits.
39 Mon Jan 19 22:26:29 1998 Doug Evans <devans@seba>
41 * configure: Regenerated to track ../common/aclocal.m4 changes.
43 Mon Dec 15 23:17:11 1997 Andrew Cagney <cagney@b1.cygnus.com>
45 * configure: Regenerated to track ../common/aclocal.m4 changes.
48 Thu Dec 4 09:21:05 1997 Doug Evans <devans@canuck.cygnus.com>
50 * configure: Regenerated to track ../common/aclocal.m4 changes.
52 Mon Nov 24 14:57:58 1997 Doug Evans <devans@seba.cygnus.com>
54 * cpu.h (TRACE_COND_BR): Use TRACE_BRANCH_P, not TRACE_ALU_P.
56 Sat Nov 22 21:42:09 1997 Andrew Cagney <cagney@b1.cygnus.com>
58 * interp.c (engine_step): Replace SIGTRAP with SIM_SIGTRAP.
59 (engine_run_until_stop): Replace SIGINT with SIM_SIGINT.
61 * sim-main.h: Include sim-signal.h.
62 (SIGTRAP): Delete definition.
64 * interp.c, sim-calls.c: Do not include signal.h.
66 * insns (illegal): SIGILL -> SIM_SIGILL.
67 (fp_unavailable): SIGFPE -> SIM_SIGFPE.
68 (do_trap): SIGTRAP -> SIM_SIGTRAP.
70 Tue Nov 18 15:33:48 1997 Doug Evans <devans@canuck.cygnus.com>
72 * sim-main.h (CIA_ADDR): Define.
74 * Makefile.in (SIM_OBJS): Use $(SIM_NEW_COMMON_OBJS).
76 Fri Oct 17 17:26:36 1997 Andrew Cagney <cagney@b1.cygnus.com>
78 * alu.h (ALU32_END): Use ALU32_RESULT.
80 Mon Sep 29 12:49:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
82 * insns (get_fp_reg, set_fp_reg): Update to use changed sim_fpu
84 (do_fadd, do_fcmp, do_fdiv, do_fmpy, do_frnd, do_fsub): Ditto.
86 * misc.c (tic80_trace_fpu3, tic80_trace_fpu2, tic80_trace_fpu1,
87 tic80_trace_fpu2i) Update to use changed sim_fpu interface.
89 Fri Oct 3 09:28:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
91 * configure.in (SIM_AC_OPTIONS_BITSIZE): Define.
92 * configure: Regenerated to track ../common/aclocal.m4 changes.
94 Wed Sep 24 17:38:57 1997 Andrew Cagney <cagney@b1.cygnus.com>
96 * configure: Regenerated to track ../common/aclocal.m4 changes.
98 Tue Sep 23 11:04:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
100 * configure: Regenerated to track ../common/aclocal.m4 changes.
102 Tue Sep 23 10:19:51 1997 Andrew Cagney <cagney@b1.cygnus.com>
104 * Makefile.in (SIM_WARNINGS, SIM_ALIGNMENT, SIM_ENDIAN,
105 SIM_HOSTENDIAN, SIM_INLINE, SIM_RESERVED_BITS): Delete, moved to
107 (SIM_EXTRA_CFLAGS): Update.
109 Mon Sep 22 11:46:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
111 * configure: Regenerated to track ../common/aclocal.m4 changes.
113 Fri Sep 19 17:45:25 1997 Andrew Cagney <cagney@b1.cygnus.com>
115 * configure: Regenerated to track ../common/aclocal.m4 changes.
117 Tue Sep 16 23:10:03 1997 Felix Lee <flee@cygnus.com>
119 * sim-main.h (kill): macro was missing args.
120 (SIGTRAP): define for MSVC.
122 Mon Sep 15 17:36:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
124 * configure: Regenerated to track ../common/aclocal.m4 changes.
126 Mon Sep 8 20:10:43 1997 Andrew Cagney <cagney@b1.cygnus.com>
128 * cpu.h (CPU_CIA): Define.
130 * sim-main.h (struct sim_state): Delete halt_ok, path_to_halt,
131 restart_ok, path_to_restart members.
132 (struct sim_state): Delete reason, siggnal members.
134 Thu Sep 4 17:21:23 1997 Doug Evans <dje@seba>
136 * configure: Regenerated to track ../common/aclocal.m4 changes.
138 Thu Sep 4 17:45:14 1997 Andrew Cagney <cagney@b1.cygnus.com>
140 * sim-calls.c (sim_open): Add memory before parsing arguments.
141 (sim_read): Delete, replace with sim-hrw.
142 (sim_write): Delete, replace with sim-hrw.
144 Thu Sep 4 10:48:57 1997 Andrew Cagney <cagney@b1.cygnus.com>
146 * sim-calls.c (sim_open): Use sim_do_command to add memory, only
147 add memory if none already present.
148 (sim_open): Move init of registers from here.
149 (sim_create_inferior): To here. Init modules.
151 * Makefile.in (SIM_OBJS): Add sim-memopt.o module.
153 * sim-calls.c (sim_open): Add zero modulo arg to sim_core_attach.
155 Mon Sep 1 11:06:30 1997 Andrew Cagney <cagney@b1.cygnus.com>
157 * sim-calls.c (sim_open): Use sim_state_alloc
158 (simulation): Delete.
160 Sat Aug 30 09:40:47 1997 Andrew Cagney <cagney@b1.cygnus.com>
162 * insns (do_trap): Unsigned `i' for unsigned iterator.
163 (do_trap): Ditto for comparison with getpid.
165 Wed Aug 27 18:13:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
167 * configure: Regenerated to track ../common/aclocal.m4 changes.
170 Wed Aug 27 13:41:24 1997 Andrew Cagney <cagney@b1.cygnus.com>
172 * insns (do_st): Use U8_4 instead of V4_L8.
174 * sim-calls.c (sim_open): Add call to sim_analyze_program, update
177 * sim-calls.c (sim_kill): Delete.
178 (sim_create_inferior): Add ABFD argument. Initialize PC from ABFD
180 (sim_load): Delete, use sim-hload.c.
182 * Makefile.in (SIM_OBJS): Add sim-hload.o module.
184 Mon Aug 25 17:50:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
186 * configure: Regenerated to track ../common/aclocal.m4 changes.
189 Mon Aug 25 16:33:29 1997 Andrew Cagney <cagney@b1.cygnus.com>
191 * sim-calls.c (sim_open): Add ABFD argument.
192 (sim_open): Move sim_config call to just after argument
193 parsing. Check return status.
195 Fri Aug 8 21:52:27 1997 Mark Alexander <marka@cygnus.com>
197 * sim-calls.c (sim_store_register): Allow accumulators
198 other than A0 to be modified. Correct error message.
200 Thu May 29 14:02:40 1997 Andrew Cagney <cagney@b1.cygnus.com>
202 * misc.c (tic80_trace_fpu3, tic80_trace_fpu2, tic80_trace_fpu1,
203 tic80_trace_fpu2i): Pass in function prefix.
204 (tic80_trace_ldst): Rewrite so it calls print_one_insn directly.
206 * Makefile.in (SIM_OBJS): Include sim-watch.o module.
208 * sim-main.h (WITH_WATCHPOINTS): Enable watchpoints.
210 * ic (bitnum): Compute bitnum from BITNUM.
211 * insn (bbo, bbz): Use.
213 * insn: Convert long immediate instructions to igen long immediate
215 * insn: Add disasembler information.
217 Thu May 29 12:09:13 1997 Andrew Cagney <cagney@b2.cygnus.com>
219 * alu.h (IMEM_IMMED): New macro, fetch 32bit immediate operand N.
221 * insns (subu i): Immediate is signed not unsigned.
223 Tue May 27 13:22:13 1997 Andrew Cagney <cagney@b1.cygnus.com>
225 * sim-calls.c (sim_read): Pass NULL cpu to sim_core_read_buffer.
226 (sim_write): Ditto for write.
228 Tue May 20 09:33:31 1997 Andrew Cagney <cagney@b1.cygnus.com>
230 * sim-calls.c (sim_load): Set STATE_LOADED_P.
232 * sim-main.h: Include <unistd.h>.
234 * sim-calls.c (sim_set_callback): Delete.
235 (sim_open): Add/install callback argument.
238 Mon May 19 18:59:33 1997 Mike Meissner <meissner@cygnus.com>
240 * configure.in: Check for getpid, kill functions.
241 * config{.in,ure}: Regenerate.
243 * insns (do_trap): Add support for kill, getpid system calls.
245 * sim-main.h (errno.h): Include.
246 (getpid,kill): Define as NOPs if the host doesn't have them.
248 Mon May 19 14:58:47 1997 Andrew Cagney <cagney@b1.cygnus.com>
250 * sim-calls.c (sim_open): Set the simulator base magic number.
251 (sim_load): Delete prototype of sim_load_file.
252 (sim_open): Define sd to be &simulation.
254 Fri May 16 14:35:30 1997 Andrew Cagney <cagney@b1.cygnus.com>
256 * insns (illegal, fp_unavailable): Halt instead of abort the
259 * insns: Replace calls to engine_error with sim_engine_abort.
260 Ditto for engine_halt V sim_engine_halt.
262 Tue May 13 15:24:12 1997 Andrew Cagney <cagney@b2.cygnus.com>
264 * interp.c (engine_run_until_stop): Delete. Moved to common.
265 (engine_step): Ditto.
266 (engine_step): Ditto.
267 (engine_halt): Ditto.
268 (engine_restart): Ditto.
269 (engine_halt): Ditto.
270 (engine_error): Ditto.
272 * sim-calls.c (sim_stop): Delete. Moved to common.
273 (sim_stop_reason): Ditto.
276 * Makefile.in (SIM_OBJS): Link in generic sim-engine, sim-run,
277 sim-resume, sim-reason, sim-stop modules.
279 Fri May 16 11:57:49 1997 Andrew Cagney <cagney@b1.cygnus.com>
281 * ic (compute): Drop check for REG == 0, now always forced to
284 * cpu.h (GPR_SET): New macro update the gpr.
285 * insns (do_add): Use GPR_SET to update the GPR register.
287 * sim-calls.c (sim_fetch_register): Pretend that r0 is zero.
289 * Makefile.in (tmp-igen): Specify zero-r0 so that every
290 instruction clears r0.
292 * interp.c (engine_run_until_stop): Igen now generates code to
294 (engine_step): Ditto.
296 Thu May 15 11:45:37 1997 Andrew Cagney <cagney@b1.cygnus.com>
298 * insns (do_shift): When rot==0 and zero/sign merge treat it as
300 (set_fp_reg): For interger conversion, use sim-fpu fpu2i
302 (do_fmpy): Perform iii and uuu using integer arithmetic.
304 * Makefile.in (ENGINE_H): Assume everything depends on the fpu.
306 * insns (get_fp_reg): Use sim_fpu_u32to to perform unsigned
308 (do_fcmp): Update to use new fp compare functions. Make reg nr arg
309 instead of reg. Stops fp overflow.
310 (get_fp_reg): Assume val is valid when reg == 0.
311 (set_fp_reg): Fix double conversion.
313 * misc.c (tic80_trace_fpu1): New function, trace simple fp op.
315 * insns (do_frnd): Add tracing.
317 * cpu.h (TRACE_FPU1): Ditto.
319 * insns (do_trap): Printf formatting.
321 Wed May 14 18:05:50 1997 Mike Meissner <meissner@cygnus.com>
323 * misc.c (tic80_trace_fpu{3,2,2i}): Align columns with other
324 insns. Use %g to print floating point instead of %f in case the
325 numbers are real large.
327 Tue May 13 18:00:10 1997 Mike Meissner <meissner@cygnus.com>
329 * insns (do_trap): For system calls that are defined, but not
330 provided return EINVAL. Temporarily add traps 74-79 to just print
333 * interp.c (engine_{run_until_stop,step}): Before executing
334 instructions, make sure r0 == 0.
336 Tue May 13 16:39:37 1997 Andrew Cagney <cagney@b1.cygnus.com>
338 * alu.h (IMEM): Take full cia not just IP as argument.
340 * interp.c (engine_run_until_stop): Delete handling of annuled
342 (engine_step): Ditto.
344 * insn (do_branch): New function.
345 (do_bbo, do_bbz, do_bcnd, do_bsr, do_jsr): Use do_branch to handle
348 Mon May 12 17:15:52 1997 Mike Meissner <meissner@cygnus.com>
350 * insns (do_{ld,st}): Fix tracing for ld/st.
352 Mon May 12 11:12:24 1997 Andrew Cagney <cagney@b1.cygnus.com>
354 * sim-calls.c (sim_stop_reason): Restore keep_running after a
355 CNTRL-C, don't re-clear it.
357 * interp.c (engine_error): stop rather than signal with SIGABRT
360 * insns (do_ld): For 64bit loads, always store LSW in rDest, MSW in
361 rDest + 1. Also done by Michael Meissner <meissner@cygnus.com>
362 (do_st): Converse for store.
364 * misc.c (tic80_trace_fpu2i): Correct printf format for int type.
366 Sun May 11 11:02:57 1997 Andrew Cagney <cagney@b1.cygnus.com>
368 * sim-calls.c (sim_stop_reason): Return a SIGINT if keep_running
371 * interp.c (engine_step): New function. Single step the simulator
372 taking care of cntrl-c during a step.
374 * sim-calls.c (sim_resume): Differentiate between stepping and
375 running so that a cntrl-c during a step is reported.
377 Sun May 11 10:54:31 1997 Mark Alexander <marka@cygnus.com>
379 * sim-calls.c (sim_fetch_register): Use correct reg base.
380 (sim_store_register): Ditto.
382 Sun May 11 10:25:14 1997 Michael Meissner <meissner@cygnus.com>
384 * cpu.h (tic80_trace_shift): Add declaration.
385 (TRACE_SHIFT): New macro to trace shift instructions.
387 * misc.c (tic80_trace_alu2): Align spacing.
388 (tic80_trace_shift): New function to trace shifts.
390 * insns (lmo): Add missing 0b prefix to bits.
391 (do_shift): Use ~ (unsigned32)0, instead of -1. Use TRACE_SHIFT
392 instead of TRACE_ALU2.
393 (sl r): Use EndMask as is, instead of using Source+1 register.
394 (subu): Operands are unsigned, not signed.
395 (do_{ld,st}): Fix endian problems with ld.d/st.d.
397 Sat May 10 12:35:47 1997 Michael Meissner <meissner@cygnus.com>
399 * insns (and{.tt,.tf,.ft,.ff}): Immediate values are unsigned, not
402 Fri May 9 15:47:36 1997 Mike Meissner <meissner@cygnus.com>
404 * insns (cmp_vals,do_cmp): Produce the correct bits as specified
406 (xor): Fix xor immediate patterns to use the correct bits.
408 Fri May 9 09:55:33 1997 Andrew Cagney <cagney@b1.cygnus.com>
410 * alu.h (long_immediate): Adjust the CIA delay-pointer as well as
411 the NIA when a 64bit insn.
413 Thu May 8 11:57:47 1997 Michael Meissner <meissner@cygnus.com>
415 * insns (jsr,bsr): For non-allulled calls, set r31 so that the
416 return address does not reexecute the instruction in the delay
418 (bbo,bbz): Complement bit number to reverse the one's complement
419 that the assembler is required to do.
421 * misc.c (tic80_trace_*): Change format slightly to accomidate
422 real large decimal values.
424 Thu May 8 14:07:16 1997 Andrew Cagney <cagney@b1.cygnus.com>
426 * sim-calls.c (sim_do_command): Implement.
427 (sim_store_register): Fix typo T2H v H2T.
429 Wed May 7 11:48:55 1997 Andrew Cagney <cagney@b1.cygnus.com>
431 * cpu.h (TRACE_FPU2, TRACE_FPU3, TRACE_FPU2I): Add.
432 * insn: Clean up fpu tracing.
434 * sim-calls.c (sim_create_inferior): Start out with interrupts
437 * cpu.h (TRACE_SINK3), misc.c (tic80_trace_sink3): Three argument
440 * insns (rdcr, swcr, wrcr, brcr, rmo, lmo): Implement.
442 * insns (do_*): Remove MY_INDEX/indx argument from support functions,
443 igen now handles this.
445 * cpu.h (CR): New macro - access TIc80 control registers.
448 (tic80_cr2index): New function, map control register opcode index
449 into the internal CR enum.
452 (tic80_trace_{alu{2,3},nop,sink{1,2},{,u}cond_br,ldst}): Move from
456 * Makefile.in (SIM_OBJS): Add misc.o.
458 Tue May 6 15:22:58 1997 Mike Meissner <meissner@cygnus.com>
460 * cpu.h ({,v}{S,D}P_FPR): Delete unused macros that won't work on
462 (tic80_trace_{alu{2,3},nop,sink{1,2},{,u}cond_br,ldst}): Declare
464 (TRACE_{ALU{2,3},NOP,SINK{1,2},{,U}COND_BR,LD,ST}): New macros to
465 trace various instruction types.
467 * insns: Modify all instructions to support semantic tracing.
469 * interp.c (toplevel): Include itable.h.
470 (tic80_trace_{alu{2,3},nop,sink{1,2},{,u}cond_br,ldst}): New
471 functions to provide semantic level tracing information.
473 Mon May 5 11:50:43 1997 Andrew Cagney <cagney@b1.cygnus.com>
475 * alu.h: Update usage of core object to reflect recent changes in
477 * sim-calls.c (sim_open): Ditto.
479 Mon May 5 14:10:17 1997 Andrew Cagney <cagney@b1.cygnus.com>
481 * insn (cmnd): No-op cache flushes.
483 * insns (do_trap): Allow writes to STDERR.
485 * Makefile.in (SIM_OBJS): Link in sim-fpu.o.
486 (SIM_EXTRA_LIBS): Link in the math library.
488 * alu.h: Add support for floating point unit using sim-alu.
490 * insns (fadd, fsub, fmpy, fdiv, fcmp, frnd*): Implement.
492 Fri May 2 14:57:14 1997 Andrew Cagney <cagney@b1.cygnus.com>
494 * sim-calls.c: Include sim-utils.h and sim-options.h.
496 * sim-main.h (sim_state): Drop sim_events and sim_core members,
497 moved to simulator base type.
499 * alu.h (IMEM, MEM, STORE): Update track changes in common
502 * insns: Drop cia argument from functions, igen now handles this.
504 * interp.c (engine_init): Include string.h/strings.h to define
507 * sim-main.h (sim_cia): Delcare, tracking common dir changes.
509 * cpu.h (sim_cpu): Update instruction_address with sim_cia.
511 Wed Apr 30 11:26:56 1997 Andrew Cagney <cagney@b1.cygnus.com>
513 * sim-main.h (signal.h): Include so that SIG* available to all
516 * insns (do_shift): New function, implement shift operations.
517 (do_trap): Add handler for trap 73 - SIGTRAP.
519 Tue Apr 29 10:58:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
521 * alu.h (MEM, STORE): Force addresses to be correctly aligned.
523 * insns (do_jsr): Fix.
524 (do_st, do_ld): Handle 64bit transfers.
525 (do_trap): Match libgloss.
526 (rdcr): Implement nop - Dest == r0 - variant.
528 * sim-calls.c (sim_create_inferior): Initialize SP.
530 * Makefile.in (ENGINE_H): Everything now depends on sim-options.h.
531 (support.o): Depends on ENGINE_H.
533 * cpu.h: Four accumulators.
535 * Makefile.in (tmp-igen): Include line number information in
538 * insns (dld, dst): Fill in.
540 Mon Apr 28 13:02:26 1997 Andrew Cagney <cagney@b1.cygnus.com>
542 * insns (vld): Fix instruction format wrong.
544 Thu Apr 24 16:43:09 1997 Andrew Cagney <cagney@b1.cygnus.com>
546 * dc: Add additional rules so that minor opcode files are
548 * insns: Enable more instructions.
550 * sim-calls.c (sim_fetch_register,sim_store_register, sim_write):
553 Thu Apr 24 00:39:51 1997 Doug Evans <dje@canuck.cygnus.com>
555 * configure: Regenerated to track ../common/aclocal.m4 changes.
556 * Makefile.in (SIM_OBJS): Add sim-module.o, sim-profile.o.
557 * sim-calls.c (sim_open): Call sim_module_uninstall if argument
558 parsing fails. Call sim_post_argv_init.
559 (sim_close): Call sim_module_uninstall.
561 Wed Apr 23 20:05:33 1997 Andrew Cagney <cagney@b1.cygnus.com>
563 * insns (and, bbo, bcnd, bsr, dcache, jsr, or, xor, nor): Enable.
564 * ic: Add fields for enabled instructions.