1 Tue Feb 17 12:50:27 1998 Andrew Cagney <cagney@b1.cygnus.com>
3 * sim-calls.c (sim_store_register, sim_fetch_register): Pass in
4 length parameter. Return -1.
6 Fri Feb 13 17:11:22 1998 Michael Meissner <meissner@cygnus.com>
8 * insns ({get,set}_fp_reg): Tic80 floating point is little endian,
11 * misc.c (tic80_trace_fpu*): Pass address of sim_fpu structure,
12 not the structure itself. Use %g consistantly to print floating
15 * cpu.h: (tic80_trace_fpu*): Update prototypes.
17 Tue Feb 3 16:25:47 1998 Andrew Cagney <cagney@b1.cygnus.com>
19 * alu.h (IMEM32, IMEM32_IMMED): Rename IMEM and IMEM_IMMED so that
20 in sync with recent igen change.
22 Sun Feb 1 16:47:51 1998 Andrew Cagney <cagney@b1.cygnus.com>
24 * configure: Regenerated to track ../common/aclocal.m4 changes.
26 Sat Jan 31 18:15:41 1998 Andrew Cagney <cagney@b1.cygnus.com>
28 * configure: Regenerated to track ../common/aclocal.m4 changes.
30 Fri Jan 30 11:47:50 1998 Andrew Cagney <cagney@b1.cygnus.com>
32 * cpu.h (CPU_CIA): Delete macro, replace with...
33 (CIA_SET, CIA_GET): Define.
35 Wed Jan 28 18:44:33 1998 Michael Meissner <meissner@cygnus.com>
37 * misc.c (tic80_trace_cmp_internal): New function to return
38 compare bits as a string.
39 (tic80_trace_{,fpu2}cmp): New functions for tracing cmp and fcmp.
41 * cpu.h (tic80_trace_{,fpu2}cmp): Add declaration.
42 (TRACE_{,FPU2}CMP): New macros for tracing compares.
44 * insns (do_{,f}cmp): Use compare specific tracing functions to
45 print out the flag bits.
47 Mon Jan 19 22:26:29 1998 Doug Evans <devans@seba>
49 * configure: Regenerated to track ../common/aclocal.m4 changes.
51 Mon Dec 15 23:17:11 1997 Andrew Cagney <cagney@b1.cygnus.com>
53 * configure: Regenerated to track ../common/aclocal.m4 changes.
56 Thu Dec 4 09:21:05 1997 Doug Evans <devans@canuck.cygnus.com>
58 * configure: Regenerated to track ../common/aclocal.m4 changes.
60 Mon Nov 24 14:57:58 1997 Doug Evans <devans@seba.cygnus.com>
62 * cpu.h (TRACE_COND_BR): Use TRACE_BRANCH_P, not TRACE_ALU_P.
64 Sat Nov 22 21:42:09 1997 Andrew Cagney <cagney@b1.cygnus.com>
66 * interp.c (engine_step): Replace SIGTRAP with SIM_SIGTRAP.
67 (engine_run_until_stop): Replace SIGINT with SIM_SIGINT.
69 * sim-main.h: Include sim-signal.h.
70 (SIGTRAP): Delete definition.
72 * interp.c, sim-calls.c: Do not include signal.h.
74 * insns (illegal): SIGILL -> SIM_SIGILL.
75 (fp_unavailable): SIGFPE -> SIM_SIGFPE.
76 (do_trap): SIGTRAP -> SIM_SIGTRAP.
78 Tue Nov 18 15:33:48 1997 Doug Evans <devans@canuck.cygnus.com>
80 * sim-main.h (CIA_ADDR): Define.
82 * Makefile.in (SIM_OBJS): Use $(SIM_NEW_COMMON_OBJS).
84 Fri Oct 17 17:26:36 1997 Andrew Cagney <cagney@b1.cygnus.com>
86 * alu.h (ALU32_END): Use ALU32_RESULT.
88 Mon Sep 29 12:49:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
90 * insns (get_fp_reg, set_fp_reg): Update to use changed sim_fpu
92 (do_fadd, do_fcmp, do_fdiv, do_fmpy, do_frnd, do_fsub): Ditto.
94 * misc.c (tic80_trace_fpu3, tic80_trace_fpu2, tic80_trace_fpu1,
95 tic80_trace_fpu2i) Update to use changed sim_fpu interface.
97 Fri Oct 3 09:28:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
99 * configure.in (SIM_AC_OPTIONS_BITSIZE): Define.
100 * configure: Regenerated to track ../common/aclocal.m4 changes.
102 Wed Sep 24 17:38:57 1997 Andrew Cagney <cagney@b1.cygnus.com>
104 * configure: Regenerated to track ../common/aclocal.m4 changes.
106 Tue Sep 23 11:04:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
108 * configure: Regenerated to track ../common/aclocal.m4 changes.
110 Tue Sep 23 10:19:51 1997 Andrew Cagney <cagney@b1.cygnus.com>
112 * Makefile.in (SIM_WARNINGS, SIM_ALIGNMENT, SIM_ENDIAN,
113 SIM_HOSTENDIAN, SIM_INLINE, SIM_RESERVED_BITS): Delete, moved to
115 (SIM_EXTRA_CFLAGS): Update.
117 Mon Sep 22 11:46:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
119 * configure: Regenerated to track ../common/aclocal.m4 changes.
121 Fri Sep 19 17:45:25 1997 Andrew Cagney <cagney@b1.cygnus.com>
123 * configure: Regenerated to track ../common/aclocal.m4 changes.
125 Tue Sep 16 23:10:03 1997 Felix Lee <flee@cygnus.com>
127 * sim-main.h (kill): macro was missing args.
128 (SIGTRAP): define for MSVC.
130 Mon Sep 15 17:36:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
132 * configure: Regenerated to track ../common/aclocal.m4 changes.
134 Mon Sep 8 20:10:43 1997 Andrew Cagney <cagney@b1.cygnus.com>
136 * cpu.h (CPU_CIA): Define.
138 * sim-main.h (struct sim_state): Delete halt_ok, path_to_halt,
139 restart_ok, path_to_restart members.
140 (struct sim_state): Delete reason, siggnal members.
142 Thu Sep 4 17:21:23 1997 Doug Evans <dje@seba>
144 * configure: Regenerated to track ../common/aclocal.m4 changes.
146 Thu Sep 4 17:45:14 1997 Andrew Cagney <cagney@b1.cygnus.com>
148 * sim-calls.c (sim_open): Add memory before parsing arguments.
149 (sim_read): Delete, replace with sim-hrw.
150 (sim_write): Delete, replace with sim-hrw.
152 Thu Sep 4 10:48:57 1997 Andrew Cagney <cagney@b1.cygnus.com>
154 * sim-calls.c (sim_open): Use sim_do_command to add memory, only
155 add memory if none already present.
156 (sim_open): Move init of registers from here.
157 (sim_create_inferior): To here. Init modules.
159 * Makefile.in (SIM_OBJS): Add sim-memopt.o module.
161 * sim-calls.c (sim_open): Add zero modulo arg to sim_core_attach.
163 Mon Sep 1 11:06:30 1997 Andrew Cagney <cagney@b1.cygnus.com>
165 * sim-calls.c (sim_open): Use sim_state_alloc
166 (simulation): Delete.
168 Sat Aug 30 09:40:47 1997 Andrew Cagney <cagney@b1.cygnus.com>
170 * insns (do_trap): Unsigned `i' for unsigned iterator.
171 (do_trap): Ditto for comparison with getpid.
173 Wed Aug 27 18:13:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
175 * configure: Regenerated to track ../common/aclocal.m4 changes.
178 Wed Aug 27 13:41:24 1997 Andrew Cagney <cagney@b1.cygnus.com>
180 * insns (do_st): Use U8_4 instead of V4_L8.
182 * sim-calls.c (sim_open): Add call to sim_analyze_program, update
185 * sim-calls.c (sim_kill): Delete.
186 (sim_create_inferior): Add ABFD argument. Initialize PC from ABFD
188 (sim_load): Delete, use sim-hload.c.
190 * Makefile.in (SIM_OBJS): Add sim-hload.o module.
192 Mon Aug 25 17:50:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
194 * configure: Regenerated to track ../common/aclocal.m4 changes.
197 Mon Aug 25 16:33:29 1997 Andrew Cagney <cagney@b1.cygnus.com>
199 * sim-calls.c (sim_open): Add ABFD argument.
200 (sim_open): Move sim_config call to just after argument
201 parsing. Check return status.
203 Fri Aug 8 21:52:27 1997 Mark Alexander <marka@cygnus.com>
205 * sim-calls.c (sim_store_register): Allow accumulators
206 other than A0 to be modified. Correct error message.
208 Thu May 29 14:02:40 1997 Andrew Cagney <cagney@b1.cygnus.com>
210 * misc.c (tic80_trace_fpu3, tic80_trace_fpu2, tic80_trace_fpu1,
211 tic80_trace_fpu2i): Pass in function prefix.
212 (tic80_trace_ldst): Rewrite so it calls print_one_insn directly.
214 * Makefile.in (SIM_OBJS): Include sim-watch.o module.
216 * sim-main.h (WITH_WATCHPOINTS): Enable watchpoints.
218 * ic (bitnum): Compute bitnum from BITNUM.
219 * insn (bbo, bbz): Use.
221 * insn: Convert long immediate instructions to igen long immediate
223 * insn: Add disasembler information.
225 Thu May 29 12:09:13 1997 Andrew Cagney <cagney@b2.cygnus.com>
227 * alu.h (IMEM_IMMED): New macro, fetch 32bit immediate operand N.
229 * insns (subu i): Immediate is signed not unsigned.
231 Tue May 27 13:22:13 1997 Andrew Cagney <cagney@b1.cygnus.com>
233 * sim-calls.c (sim_read): Pass NULL cpu to sim_core_read_buffer.
234 (sim_write): Ditto for write.
236 Tue May 20 09:33:31 1997 Andrew Cagney <cagney@b1.cygnus.com>
238 * sim-calls.c (sim_load): Set STATE_LOADED_P.
240 * sim-main.h: Include <unistd.h>.
242 * sim-calls.c (sim_set_callback): Delete.
243 (sim_open): Add/install callback argument.
246 Mon May 19 18:59:33 1997 Mike Meissner <meissner@cygnus.com>
248 * configure.in: Check for getpid, kill functions.
249 * config{.in,ure}: Regenerate.
251 * insns (do_trap): Add support for kill, getpid system calls.
253 * sim-main.h (errno.h): Include.
254 (getpid,kill): Define as NOPs if the host doesn't have them.
256 Mon May 19 14:58:47 1997 Andrew Cagney <cagney@b1.cygnus.com>
258 * sim-calls.c (sim_open): Set the simulator base magic number.
259 (sim_load): Delete prototype of sim_load_file.
260 (sim_open): Define sd to be &simulation.
262 Fri May 16 14:35:30 1997 Andrew Cagney <cagney@b1.cygnus.com>
264 * insns (illegal, fp_unavailable): Halt instead of abort the
267 * insns: Replace calls to engine_error with sim_engine_abort.
268 Ditto for engine_halt V sim_engine_halt.
270 Tue May 13 15:24:12 1997 Andrew Cagney <cagney@b2.cygnus.com>
272 * interp.c (engine_run_until_stop): Delete. Moved to common.
273 (engine_step): Ditto.
274 (engine_step): Ditto.
275 (engine_halt): Ditto.
276 (engine_restart): Ditto.
277 (engine_halt): Ditto.
278 (engine_error): Ditto.
280 * sim-calls.c (sim_stop): Delete. Moved to common.
281 (sim_stop_reason): Ditto.
284 * Makefile.in (SIM_OBJS): Link in generic sim-engine, sim-run,
285 sim-resume, sim-reason, sim-stop modules.
287 Fri May 16 11:57:49 1997 Andrew Cagney <cagney@b1.cygnus.com>
289 * ic (compute): Drop check for REG == 0, now always forced to
292 * cpu.h (GPR_SET): New macro update the gpr.
293 * insns (do_add): Use GPR_SET to update the GPR register.
295 * sim-calls.c (sim_fetch_register): Pretend that r0 is zero.
297 * Makefile.in (tmp-igen): Specify zero-r0 so that every
298 instruction clears r0.
300 * interp.c (engine_run_until_stop): Igen now generates code to
302 (engine_step): Ditto.
304 Thu May 15 11:45:37 1997 Andrew Cagney <cagney@b1.cygnus.com>
306 * insns (do_shift): When rot==0 and zero/sign merge treat it as
308 (set_fp_reg): For interger conversion, use sim-fpu fpu2i
310 (do_fmpy): Perform iii and uuu using integer arithmetic.
312 * Makefile.in (ENGINE_H): Assume everything depends on the fpu.
314 * insns (get_fp_reg): Use sim_fpu_u32to to perform unsigned
316 (do_fcmp): Update to use new fp compare functions. Make reg nr arg
317 instead of reg. Stops fp overflow.
318 (get_fp_reg): Assume val is valid when reg == 0.
319 (set_fp_reg): Fix double conversion.
321 * misc.c (tic80_trace_fpu1): New function, trace simple fp op.
323 * insns (do_frnd): Add tracing.
325 * cpu.h (TRACE_FPU1): Ditto.
327 * insns (do_trap): Printf formatting.
329 Wed May 14 18:05:50 1997 Mike Meissner <meissner@cygnus.com>
331 * misc.c (tic80_trace_fpu{3,2,2i}): Align columns with other
332 insns. Use %g to print floating point instead of %f in case the
333 numbers are real large.
335 Tue May 13 18:00:10 1997 Mike Meissner <meissner@cygnus.com>
337 * insns (do_trap): For system calls that are defined, but not
338 provided return EINVAL. Temporarily add traps 74-79 to just print
341 * interp.c (engine_{run_until_stop,step}): Before executing
342 instructions, make sure r0 == 0.
344 Tue May 13 16:39:37 1997 Andrew Cagney <cagney@b1.cygnus.com>
346 * alu.h (IMEM): Take full cia not just IP as argument.
348 * interp.c (engine_run_until_stop): Delete handling of annuled
350 (engine_step): Ditto.
352 * insn (do_branch): New function.
353 (do_bbo, do_bbz, do_bcnd, do_bsr, do_jsr): Use do_branch to handle
356 Mon May 12 17:15:52 1997 Mike Meissner <meissner@cygnus.com>
358 * insns (do_{ld,st}): Fix tracing for ld/st.
360 Mon May 12 11:12:24 1997 Andrew Cagney <cagney@b1.cygnus.com>
362 * sim-calls.c (sim_stop_reason): Restore keep_running after a
363 CNTRL-C, don't re-clear it.
365 * interp.c (engine_error): stop rather than signal with SIGABRT
368 * insns (do_ld): For 64bit loads, always store LSW in rDest, MSW in
369 rDest + 1. Also done by Michael Meissner <meissner@cygnus.com>
370 (do_st): Converse for store.
372 * misc.c (tic80_trace_fpu2i): Correct printf format for int type.
374 Sun May 11 11:02:57 1997 Andrew Cagney <cagney@b1.cygnus.com>
376 * sim-calls.c (sim_stop_reason): Return a SIGINT if keep_running
379 * interp.c (engine_step): New function. Single step the simulator
380 taking care of cntrl-c during a step.
382 * sim-calls.c (sim_resume): Differentiate between stepping and
383 running so that a cntrl-c during a step is reported.
385 Sun May 11 10:54:31 1997 Mark Alexander <marka@cygnus.com>
387 * sim-calls.c (sim_fetch_register): Use correct reg base.
388 (sim_store_register): Ditto.
390 Sun May 11 10:25:14 1997 Michael Meissner <meissner@cygnus.com>
392 * cpu.h (tic80_trace_shift): Add declaration.
393 (TRACE_SHIFT): New macro to trace shift instructions.
395 * misc.c (tic80_trace_alu2): Align spacing.
396 (tic80_trace_shift): New function to trace shifts.
398 * insns (lmo): Add missing 0b prefix to bits.
399 (do_shift): Use ~ (unsigned32)0, instead of -1. Use TRACE_SHIFT
400 instead of TRACE_ALU2.
401 (sl r): Use EndMask as is, instead of using Source+1 register.
402 (subu): Operands are unsigned, not signed.
403 (do_{ld,st}): Fix endian problems with ld.d/st.d.
405 Sat May 10 12:35:47 1997 Michael Meissner <meissner@cygnus.com>
407 * insns (and{.tt,.tf,.ft,.ff}): Immediate values are unsigned, not
410 Fri May 9 15:47:36 1997 Mike Meissner <meissner@cygnus.com>
412 * insns (cmp_vals,do_cmp): Produce the correct bits as specified
414 (xor): Fix xor immediate patterns to use the correct bits.
416 Fri May 9 09:55:33 1997 Andrew Cagney <cagney@b1.cygnus.com>
418 * alu.h (long_immediate): Adjust the CIA delay-pointer as well as
419 the NIA when a 64bit insn.
421 Thu May 8 11:57:47 1997 Michael Meissner <meissner@cygnus.com>
423 * insns (jsr,bsr): For non-allulled calls, set r31 so that the
424 return address does not reexecute the instruction in the delay
426 (bbo,bbz): Complement bit number to reverse the one's complement
427 that the assembler is required to do.
429 * misc.c (tic80_trace_*): Change format slightly to accomidate
430 real large decimal values.
432 Thu May 8 14:07:16 1997 Andrew Cagney <cagney@b1.cygnus.com>
434 * sim-calls.c (sim_do_command): Implement.
435 (sim_store_register): Fix typo T2H v H2T.
437 Wed May 7 11:48:55 1997 Andrew Cagney <cagney@b1.cygnus.com>
439 * cpu.h (TRACE_FPU2, TRACE_FPU3, TRACE_FPU2I): Add.
440 * insn: Clean up fpu tracing.
442 * sim-calls.c (sim_create_inferior): Start out with interrupts
445 * cpu.h (TRACE_SINK3), misc.c (tic80_trace_sink3): Three argument
448 * insns (rdcr, swcr, wrcr, brcr, rmo, lmo): Implement.
450 * insns (do_*): Remove MY_INDEX/indx argument from support functions,
451 igen now handles this.
453 * cpu.h (CR): New macro - access TIc80 control registers.
456 (tic80_cr2index): New function, map control register opcode index
457 into the internal CR enum.
460 (tic80_trace_{alu{2,3},nop,sink{1,2},{,u}cond_br,ldst}): Move from
464 * Makefile.in (SIM_OBJS): Add misc.o.
466 Tue May 6 15:22:58 1997 Mike Meissner <meissner@cygnus.com>
468 * cpu.h ({,v}{S,D}P_FPR): Delete unused macros that won't work on
470 (tic80_trace_{alu{2,3},nop,sink{1,2},{,u}cond_br,ldst}): Declare
472 (TRACE_{ALU{2,3},NOP,SINK{1,2},{,U}COND_BR,LD,ST}): New macros to
473 trace various instruction types.
475 * insns: Modify all instructions to support semantic tracing.
477 * interp.c (toplevel): Include itable.h.
478 (tic80_trace_{alu{2,3},nop,sink{1,2},{,u}cond_br,ldst}): New
479 functions to provide semantic level tracing information.
481 Mon May 5 11:50:43 1997 Andrew Cagney <cagney@b1.cygnus.com>
483 * alu.h: Update usage of core object to reflect recent changes in
485 * sim-calls.c (sim_open): Ditto.
487 Mon May 5 14:10:17 1997 Andrew Cagney <cagney@b1.cygnus.com>
489 * insn (cmnd): No-op cache flushes.
491 * insns (do_trap): Allow writes to STDERR.
493 * Makefile.in (SIM_OBJS): Link in sim-fpu.o.
494 (SIM_EXTRA_LIBS): Link in the math library.
496 * alu.h: Add support for floating point unit using sim-alu.
498 * insns (fadd, fsub, fmpy, fdiv, fcmp, frnd*): Implement.
500 Fri May 2 14:57:14 1997 Andrew Cagney <cagney@b1.cygnus.com>
502 * sim-calls.c: Include sim-utils.h and sim-options.h.
504 * sim-main.h (sim_state): Drop sim_events and sim_core members,
505 moved to simulator base type.
507 * alu.h (IMEM, MEM, STORE): Update track changes in common
510 * insns: Drop cia argument from functions, igen now handles this.
512 * interp.c (engine_init): Include string.h/strings.h to define
515 * sim-main.h (sim_cia): Delcare, tracking common dir changes.
517 * cpu.h (sim_cpu): Update instruction_address with sim_cia.
519 Wed Apr 30 11:26:56 1997 Andrew Cagney <cagney@b1.cygnus.com>
521 * sim-main.h (signal.h): Include so that SIG* available to all
524 * insns (do_shift): New function, implement shift operations.
525 (do_trap): Add handler for trap 73 - SIGTRAP.
527 Tue Apr 29 10:58:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
529 * alu.h (MEM, STORE): Force addresses to be correctly aligned.
531 * insns (do_jsr): Fix.
532 (do_st, do_ld): Handle 64bit transfers.
533 (do_trap): Match libgloss.
534 (rdcr): Implement nop - Dest == r0 - variant.
536 * sim-calls.c (sim_create_inferior): Initialize SP.
538 * Makefile.in (ENGINE_H): Everything now depends on sim-options.h.
539 (support.o): Depends on ENGINE_H.
541 * cpu.h: Four accumulators.
543 * Makefile.in (tmp-igen): Include line number information in
546 * insns (dld, dst): Fill in.
548 Mon Apr 28 13:02:26 1997 Andrew Cagney <cagney@b1.cygnus.com>
550 * insns (vld): Fix instruction format wrong.
552 Thu Apr 24 16:43:09 1997 Andrew Cagney <cagney@b1.cygnus.com>
554 * dc: Add additional rules so that minor opcode files are
556 * insns: Enable more instructions.
558 * sim-calls.c (sim_fetch_register,sim_store_register, sim_write):
561 Thu Apr 24 00:39:51 1997 Doug Evans <dje@canuck.cygnus.com>
563 * configure: Regenerated to track ../common/aclocal.m4 changes.
564 * Makefile.in (SIM_OBJS): Add sim-module.o, sim-profile.o.
565 * sim-calls.c (sim_open): Call sim_module_uninstall if argument
566 parsing fails. Call sim_post_argv_init.
567 (sim_close): Call sim_module_uninstall.
569 Wed Apr 23 20:05:33 1997 Andrew Cagney <cagney@b1.cygnus.com>
571 * insns (and, bbo, bcnd, bsr, dcache, jsr, or, xor, nor): Enable.
572 * ic: Add fields for enabled instructions.