1 Fri Jan 30 11:47:50 1998 Andrew Cagney <cagney@b1.cygnus.com>
3 * cpu.h (CPU_CIA): Delete macro, replace with...
4 (CIA_SET, CIA_GET): Define.
6 Wed Jan 28 18:44:33 1998 Michael Meissner <meissner@cygnus.com>
8 * misc.c (tic80_trace_cmp_internal): New function to return
9 compare bits as a string.
10 (tic80_trace_{,fpu2}cmp): New functions for tracing cmp and fcmp.
12 * cpu.h (tic80_trace_{,fpu2}cmp): Add declaration.
13 (TRACE_{,FPU2}CMP): New macros for tracing compares.
15 * insns (do_{,f}cmp): Use compare specific tracing functions to
16 print out the flag bits.
18 Mon Jan 19 22:26:29 1998 Doug Evans <devans@seba>
20 * configure: Regenerated to track ../common/aclocal.m4 changes.
22 Mon Dec 15 23:17:11 1997 Andrew Cagney <cagney@b1.cygnus.com>
24 * configure: Regenerated to track ../common/aclocal.m4 changes.
27 Thu Dec 4 09:21:05 1997 Doug Evans <devans@canuck.cygnus.com>
29 * configure: Regenerated to track ../common/aclocal.m4 changes.
31 Mon Nov 24 14:57:58 1997 Doug Evans <devans@seba.cygnus.com>
33 * cpu.h (TRACE_COND_BR): Use TRACE_BRANCH_P, not TRACE_ALU_P.
35 Sat Nov 22 21:42:09 1997 Andrew Cagney <cagney@b1.cygnus.com>
37 * interp.c (engine_step): Replace SIGTRAP with SIM_SIGTRAP.
38 (engine_run_until_stop): Replace SIGINT with SIM_SIGINT.
40 * sim-main.h: Include sim-signal.h.
41 (SIGTRAP): Delete definition.
43 * interp.c, sim-calls.c: Do not include signal.h.
45 * insns (illegal): SIGILL -> SIM_SIGILL.
46 (fp_unavailable): SIGFPE -> SIM_SIGFPE.
47 (do_trap): SIGTRAP -> SIM_SIGTRAP.
49 Tue Nov 18 15:33:48 1997 Doug Evans <devans@canuck.cygnus.com>
51 * sim-main.h (CIA_ADDR): Define.
53 * Makefile.in (SIM_OBJS): Use $(SIM_NEW_COMMON_OBJS).
55 Fri Oct 17 17:26:36 1997 Andrew Cagney <cagney@b1.cygnus.com>
57 * alu.h (ALU32_END): Use ALU32_RESULT.
59 Mon Sep 29 12:49:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
61 * insns (get_fp_reg, set_fp_reg): Update to use changed sim_fpu
63 (do_fadd, do_fcmp, do_fdiv, do_fmpy, do_frnd, do_fsub): Ditto.
65 * misc.c (tic80_trace_fpu3, tic80_trace_fpu2, tic80_trace_fpu1,
66 tic80_trace_fpu2i) Update to use changed sim_fpu interface.
68 Fri Oct 3 09:28:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
70 * configure.in (SIM_AC_OPTIONS_BITSIZE): Define.
71 * configure: Regenerated to track ../common/aclocal.m4 changes.
73 Wed Sep 24 17:38:57 1997 Andrew Cagney <cagney@b1.cygnus.com>
75 * configure: Regenerated to track ../common/aclocal.m4 changes.
77 Tue Sep 23 11:04:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
79 * configure: Regenerated to track ../common/aclocal.m4 changes.
81 Tue Sep 23 10:19:51 1997 Andrew Cagney <cagney@b1.cygnus.com>
83 * Makefile.in (SIM_WARNINGS, SIM_ALIGNMENT, SIM_ENDIAN,
84 SIM_HOSTENDIAN, SIM_INLINE, SIM_RESERVED_BITS): Delete, moved to
86 (SIM_EXTRA_CFLAGS): Update.
88 Mon Sep 22 11:46:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
90 * configure: Regenerated to track ../common/aclocal.m4 changes.
92 Fri Sep 19 17:45:25 1997 Andrew Cagney <cagney@b1.cygnus.com>
94 * configure: Regenerated to track ../common/aclocal.m4 changes.
96 Tue Sep 16 23:10:03 1997 Felix Lee <flee@cygnus.com>
98 * sim-main.h (kill): macro was missing args.
99 (SIGTRAP): define for MSVC.
101 Mon Sep 15 17:36:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
103 * configure: Regenerated to track ../common/aclocal.m4 changes.
105 Mon Sep 8 20:10:43 1997 Andrew Cagney <cagney@b1.cygnus.com>
107 * cpu.h (CPU_CIA): Define.
109 * sim-main.h (struct sim_state): Delete halt_ok, path_to_halt,
110 restart_ok, path_to_restart members.
111 (struct sim_state): Delete reason, siggnal members.
113 Thu Sep 4 17:21:23 1997 Doug Evans <dje@seba>
115 * configure: Regenerated to track ../common/aclocal.m4 changes.
117 Thu Sep 4 17:45:14 1997 Andrew Cagney <cagney@b1.cygnus.com>
119 * sim-calls.c (sim_open): Add memory before parsing arguments.
120 (sim_read): Delete, replace with sim-hrw.
121 (sim_write): Delete, replace with sim-hrw.
123 Thu Sep 4 10:48:57 1997 Andrew Cagney <cagney@b1.cygnus.com>
125 * sim-calls.c (sim_open): Use sim_do_command to add memory, only
126 add memory if none already present.
127 (sim_open): Move init of registers from here.
128 (sim_create_inferior): To here. Init modules.
130 * Makefile.in (SIM_OBJS): Add sim-memopt.o module.
132 * sim-calls.c (sim_open): Add zero modulo arg to sim_core_attach.
134 Mon Sep 1 11:06:30 1997 Andrew Cagney <cagney@b1.cygnus.com>
136 * sim-calls.c (sim_open): Use sim_state_alloc
137 (simulation): Delete.
139 Sat Aug 30 09:40:47 1997 Andrew Cagney <cagney@b1.cygnus.com>
141 * insns (do_trap): Unsigned `i' for unsigned iterator.
142 (do_trap): Ditto for comparison with getpid.
144 Wed Aug 27 18:13:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
146 * configure: Regenerated to track ../common/aclocal.m4 changes.
149 Wed Aug 27 13:41:24 1997 Andrew Cagney <cagney@b1.cygnus.com>
151 * insns (do_st): Use U8_4 instead of V4_L8.
153 * sim-calls.c (sim_open): Add call to sim_analyze_program, update
156 * sim-calls.c (sim_kill): Delete.
157 (sim_create_inferior): Add ABFD argument. Initialize PC from ABFD
159 (sim_load): Delete, use sim-hload.c.
161 * Makefile.in (SIM_OBJS): Add sim-hload.o module.
163 Mon Aug 25 17:50:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
165 * configure: Regenerated to track ../common/aclocal.m4 changes.
168 Mon Aug 25 16:33:29 1997 Andrew Cagney <cagney@b1.cygnus.com>
170 * sim-calls.c (sim_open): Add ABFD argument.
171 (sim_open): Move sim_config call to just after argument
172 parsing. Check return status.
174 Fri Aug 8 21:52:27 1997 Mark Alexander <marka@cygnus.com>
176 * sim-calls.c (sim_store_register): Allow accumulators
177 other than A0 to be modified. Correct error message.
179 Thu May 29 14:02:40 1997 Andrew Cagney <cagney@b1.cygnus.com>
181 * misc.c (tic80_trace_fpu3, tic80_trace_fpu2, tic80_trace_fpu1,
182 tic80_trace_fpu2i): Pass in function prefix.
183 (tic80_trace_ldst): Rewrite so it calls print_one_insn directly.
185 * Makefile.in (SIM_OBJS): Include sim-watch.o module.
187 * sim-main.h (WITH_WATCHPOINTS): Enable watchpoints.
189 * ic (bitnum): Compute bitnum from BITNUM.
190 * insn (bbo, bbz): Use.
192 * insn: Convert long immediate instructions to igen long immediate
194 * insn: Add disasembler information.
196 Thu May 29 12:09:13 1997 Andrew Cagney <cagney@b2.cygnus.com>
198 * alu.h (IMEM_IMMED): New macro, fetch 32bit immediate operand N.
200 * insns (subu i): Immediate is signed not unsigned.
202 Tue May 27 13:22:13 1997 Andrew Cagney <cagney@b1.cygnus.com>
204 * sim-calls.c (sim_read): Pass NULL cpu to sim_core_read_buffer.
205 (sim_write): Ditto for write.
207 Tue May 20 09:33:31 1997 Andrew Cagney <cagney@b1.cygnus.com>
209 * sim-calls.c (sim_load): Set STATE_LOADED_P.
211 * sim-main.h: Include <unistd.h>.
213 * sim-calls.c (sim_set_callback): Delete.
214 (sim_open): Add/install callback argument.
217 Mon May 19 18:59:33 1997 Mike Meissner <meissner@cygnus.com>
219 * configure.in: Check for getpid, kill functions.
220 * config{.in,ure}: Regenerate.
222 * insns (do_trap): Add support for kill, getpid system calls.
224 * sim-main.h (errno.h): Include.
225 (getpid,kill): Define as NOPs if the host doesn't have them.
227 Mon May 19 14:58:47 1997 Andrew Cagney <cagney@b1.cygnus.com>
229 * sim-calls.c (sim_open): Set the simulator base magic number.
230 (sim_load): Delete prototype of sim_load_file.
231 (sim_open): Define sd to be &simulation.
233 Fri May 16 14:35:30 1997 Andrew Cagney <cagney@b1.cygnus.com>
235 * insns (illegal, fp_unavailable): Halt instead of abort the
238 * insns: Replace calls to engine_error with sim_engine_abort.
239 Ditto for engine_halt V sim_engine_halt.
241 Tue May 13 15:24:12 1997 Andrew Cagney <cagney@b2.cygnus.com>
243 * interp.c (engine_run_until_stop): Delete. Moved to common.
244 (engine_step): Ditto.
245 (engine_step): Ditto.
246 (engine_halt): Ditto.
247 (engine_restart): Ditto.
248 (engine_halt): Ditto.
249 (engine_error): Ditto.
251 * sim-calls.c (sim_stop): Delete. Moved to common.
252 (sim_stop_reason): Ditto.
255 * Makefile.in (SIM_OBJS): Link in generic sim-engine, sim-run,
256 sim-resume, sim-reason, sim-stop modules.
258 Fri May 16 11:57:49 1997 Andrew Cagney <cagney@b1.cygnus.com>
260 * ic (compute): Drop check for REG == 0, now always forced to
263 * cpu.h (GPR_SET): New macro update the gpr.
264 * insns (do_add): Use GPR_SET to update the GPR register.
266 * sim-calls.c (sim_fetch_register): Pretend that r0 is zero.
268 * Makefile.in (tmp-igen): Specify zero-r0 so that every
269 instruction clears r0.
271 * interp.c (engine_run_until_stop): Igen now generates code to
273 (engine_step): Ditto.
275 Thu May 15 11:45:37 1997 Andrew Cagney <cagney@b1.cygnus.com>
277 * insns (do_shift): When rot==0 and zero/sign merge treat it as
279 (set_fp_reg): For interger conversion, use sim-fpu fpu2i
281 (do_fmpy): Perform iii and uuu using integer arithmetic.
283 * Makefile.in (ENGINE_H): Assume everything depends on the fpu.
285 * insns (get_fp_reg): Use sim_fpu_u32to to perform unsigned
287 (do_fcmp): Update to use new fp compare functions. Make reg nr arg
288 instead of reg. Stops fp overflow.
289 (get_fp_reg): Assume val is valid when reg == 0.
290 (set_fp_reg): Fix double conversion.
292 * misc.c (tic80_trace_fpu1): New function, trace simple fp op.
294 * insns (do_frnd): Add tracing.
296 * cpu.h (TRACE_FPU1): Ditto.
298 * insns (do_trap): Printf formatting.
300 Wed May 14 18:05:50 1997 Mike Meissner <meissner@cygnus.com>
302 * misc.c (tic80_trace_fpu{3,2,2i}): Align columns with other
303 insns. Use %g to print floating point instead of %f in case the
304 numbers are real large.
306 Tue May 13 18:00:10 1997 Mike Meissner <meissner@cygnus.com>
308 * insns (do_trap): For system calls that are defined, but not
309 provided return EINVAL. Temporarily add traps 74-79 to just print
312 * interp.c (engine_{run_until_stop,step}): Before executing
313 instructions, make sure r0 == 0.
315 Tue May 13 16:39:37 1997 Andrew Cagney <cagney@b1.cygnus.com>
317 * alu.h (IMEM): Take full cia not just IP as argument.
319 * interp.c (engine_run_until_stop): Delete handling of annuled
321 (engine_step): Ditto.
323 * insn (do_branch): New function.
324 (do_bbo, do_bbz, do_bcnd, do_bsr, do_jsr): Use do_branch to handle
327 Mon May 12 17:15:52 1997 Mike Meissner <meissner@cygnus.com>
329 * insns (do_{ld,st}): Fix tracing for ld/st.
331 Mon May 12 11:12:24 1997 Andrew Cagney <cagney@b1.cygnus.com>
333 * sim-calls.c (sim_stop_reason): Restore keep_running after a
334 CNTRL-C, don't re-clear it.
336 * interp.c (engine_error): stop rather than signal with SIGABRT
339 * insns (do_ld): For 64bit loads, always store LSW in rDest, MSW in
340 rDest + 1. Also done by Michael Meissner <meissner@cygnus.com>
341 (do_st): Converse for store.
343 * misc.c (tic80_trace_fpu2i): Correct printf format for int type.
345 Sun May 11 11:02:57 1997 Andrew Cagney <cagney@b1.cygnus.com>
347 * sim-calls.c (sim_stop_reason): Return a SIGINT if keep_running
350 * interp.c (engine_step): New function. Single step the simulator
351 taking care of cntrl-c during a step.
353 * sim-calls.c (sim_resume): Differentiate between stepping and
354 running so that a cntrl-c during a step is reported.
356 Sun May 11 10:54:31 1997 Mark Alexander <marka@cygnus.com>
358 * sim-calls.c (sim_fetch_register): Use correct reg base.
359 (sim_store_register): Ditto.
361 Sun May 11 10:25:14 1997 Michael Meissner <meissner@cygnus.com>
363 * cpu.h (tic80_trace_shift): Add declaration.
364 (TRACE_SHIFT): New macro to trace shift instructions.
366 * misc.c (tic80_trace_alu2): Align spacing.
367 (tic80_trace_shift): New function to trace shifts.
369 * insns (lmo): Add missing 0b prefix to bits.
370 (do_shift): Use ~ (unsigned32)0, instead of -1. Use TRACE_SHIFT
371 instead of TRACE_ALU2.
372 (sl r): Use EndMask as is, instead of using Source+1 register.
373 (subu): Operands are unsigned, not signed.
374 (do_{ld,st}): Fix endian problems with ld.d/st.d.
376 Sat May 10 12:35:47 1997 Michael Meissner <meissner@cygnus.com>
378 * insns (and{.tt,.tf,.ft,.ff}): Immediate values are unsigned, not
381 Fri May 9 15:47:36 1997 Mike Meissner <meissner@cygnus.com>
383 * insns (cmp_vals,do_cmp): Produce the correct bits as specified
385 (xor): Fix xor immediate patterns to use the correct bits.
387 Fri May 9 09:55:33 1997 Andrew Cagney <cagney@b1.cygnus.com>
389 * alu.h (long_immediate): Adjust the CIA delay-pointer as well as
390 the NIA when a 64bit insn.
392 Thu May 8 11:57:47 1997 Michael Meissner <meissner@cygnus.com>
394 * insns (jsr,bsr): For non-allulled calls, set r31 so that the
395 return address does not reexecute the instruction in the delay
397 (bbo,bbz): Complement bit number to reverse the one's complement
398 that the assembler is required to do.
400 * misc.c (tic80_trace_*): Change format slightly to accomidate
401 real large decimal values.
403 Thu May 8 14:07:16 1997 Andrew Cagney <cagney@b1.cygnus.com>
405 * sim-calls.c (sim_do_command): Implement.
406 (sim_store_register): Fix typo T2H v H2T.
408 Wed May 7 11:48:55 1997 Andrew Cagney <cagney@b1.cygnus.com>
410 * cpu.h (TRACE_FPU2, TRACE_FPU3, TRACE_FPU2I): Add.
411 * insn: Clean up fpu tracing.
413 * sim-calls.c (sim_create_inferior): Start out with interrupts
416 * cpu.h (TRACE_SINK3), misc.c (tic80_trace_sink3): Three argument
419 * insns (rdcr, swcr, wrcr, brcr, rmo, lmo): Implement.
421 * insns (do_*): Remove MY_INDEX/indx argument from support functions,
422 igen now handles this.
424 * cpu.h (CR): New macro - access TIc80 control registers.
427 (tic80_cr2index): New function, map control register opcode index
428 into the internal CR enum.
431 (tic80_trace_{alu{2,3},nop,sink{1,2},{,u}cond_br,ldst}): Move from
435 * Makefile.in (SIM_OBJS): Add misc.o.
437 Tue May 6 15:22:58 1997 Mike Meissner <meissner@cygnus.com>
439 * cpu.h ({,v}{S,D}P_FPR): Delete unused macros that won't work on
441 (tic80_trace_{alu{2,3},nop,sink{1,2},{,u}cond_br,ldst}): Declare
443 (TRACE_{ALU{2,3},NOP,SINK{1,2},{,U}COND_BR,LD,ST}): New macros to
444 trace various instruction types.
446 * insns: Modify all instructions to support semantic tracing.
448 * interp.c (toplevel): Include itable.h.
449 (tic80_trace_{alu{2,3},nop,sink{1,2},{,u}cond_br,ldst}): New
450 functions to provide semantic level tracing information.
452 Mon May 5 11:50:43 1997 Andrew Cagney <cagney@b1.cygnus.com>
454 * alu.h: Update usage of core object to reflect recent changes in
456 * sim-calls.c (sim_open): Ditto.
458 Mon May 5 14:10:17 1997 Andrew Cagney <cagney@b1.cygnus.com>
460 * insn (cmnd): No-op cache flushes.
462 * insns (do_trap): Allow writes to STDERR.
464 * Makefile.in (SIM_OBJS): Link in sim-fpu.o.
465 (SIM_EXTRA_LIBS): Link in the math library.
467 * alu.h: Add support for floating point unit using sim-alu.
469 * insns (fadd, fsub, fmpy, fdiv, fcmp, frnd*): Implement.
471 Fri May 2 14:57:14 1997 Andrew Cagney <cagney@b1.cygnus.com>
473 * sim-calls.c: Include sim-utils.h and sim-options.h.
475 * sim-main.h (sim_state): Drop sim_events and sim_core members,
476 moved to simulator base type.
478 * alu.h (IMEM, MEM, STORE): Update track changes in common
481 * insns: Drop cia argument from functions, igen now handles this.
483 * interp.c (engine_init): Include string.h/strings.h to define
486 * sim-main.h (sim_cia): Delcare, tracking common dir changes.
488 * cpu.h (sim_cpu): Update instruction_address with sim_cia.
490 Wed Apr 30 11:26:56 1997 Andrew Cagney <cagney@b1.cygnus.com>
492 * sim-main.h (signal.h): Include so that SIG* available to all
495 * insns (do_shift): New function, implement shift operations.
496 (do_trap): Add handler for trap 73 - SIGTRAP.
498 Tue Apr 29 10:58:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
500 * alu.h (MEM, STORE): Force addresses to be correctly aligned.
502 * insns (do_jsr): Fix.
503 (do_st, do_ld): Handle 64bit transfers.
504 (do_trap): Match libgloss.
505 (rdcr): Implement nop - Dest == r0 - variant.
507 * sim-calls.c (sim_create_inferior): Initialize SP.
509 * Makefile.in (ENGINE_H): Everything now depends on sim-options.h.
510 (support.o): Depends on ENGINE_H.
512 * cpu.h: Four accumulators.
514 * Makefile.in (tmp-igen): Include line number information in
517 * insns (dld, dst): Fill in.
519 Mon Apr 28 13:02:26 1997 Andrew Cagney <cagney@b1.cygnus.com>
521 * insns (vld): Fix instruction format wrong.
523 Thu Apr 24 16:43:09 1997 Andrew Cagney <cagney@b1.cygnus.com>
525 * dc: Add additional rules so that minor opcode files are
527 * insns: Enable more instructions.
529 * sim-calls.c (sim_fetch_register,sim_store_register, sim_write):
532 Thu Apr 24 00:39:51 1997 Doug Evans <dje@canuck.cygnus.com>
534 * configure: Regenerated to track ../common/aclocal.m4 changes.
535 * Makefile.in (SIM_OBJS): Add sim-module.o, sim-profile.o.
536 * sim-calls.c (sim_open): Call sim_module_uninstall if argument
537 parsing fails. Call sim_post_argv_init.
538 (sim_close): Call sim_module_uninstall.
540 Wed Apr 23 20:05:33 1997 Andrew Cagney <cagney@b1.cygnus.com>
542 * insns (and, bbo, bcnd, bsr, dcache, jsr, or, xor, nor): Enable.
543 * ic: Add fields for enabled instructions.