1 2017-09-06 John Baldwin <jhb@FreeBSD.org>
3 * configure: Regenerate.
5 2017-09-03 Anthony Green <green@moxielogic.com>
7 * interp.c (sim_engine_run): Always pass scpu into
8 sim_engine_halt. Process events within inner loop.
10 2016-01-10 Mike Frysinger <vapier@gentoo.org>
12 * config.in, configure: Regenerate.
14 2016-01-10 Mike Frysinger <vapier@gentoo.org>
16 * configure: Regenerate.
18 2016-01-10 Mike Frysinger <vapier@gentoo.org>
20 * configure.ac (SIM_AC_OPTION_ENVIRONMENT): Delete call.
21 * configure: Regenerate.
23 2016-01-10 Mike Frysinger <vapier@gentoo.org>
25 * configure: Regenerate.
27 2016-01-10 Mike Frysinger <vapier@gentoo.org>
29 * configure: Regenerate.
31 2016-01-10 Mike Frysinger <vapier@gentoo.org>
33 * configure.ac (SIM_AC_OPTION_INLINE): Delete call.
34 * configure: Regenerate.
36 2016-01-10 Mike Frysinger <vapier@gentoo.org>
38 * configure: Regenerate.
40 2016-01-10 Mike Frysinger <vapier@gentoo.org>
42 * configure: Regenerate.
43 * Makefile.in (SIM_CFLAGS): Rename to ...
44 (SIM_EXTRA_CFLAGS): ... this.
46 2016-01-09 Mike Frysinger <vapier@gentoo.org>
48 * config.in, configure: Regenerate.
50 2016-01-06 Mike Frysinger <vapier@gentoo.org>
52 * interp.c (sim_open): Mark argv const.
53 (sim_create_inferior): Mark argv and env const.
55 2016-01-04 Mike Frysinger <vapier@gentoo.org>
57 * configure: Regenerate.
59 2016-01-03 Mike Frysinger <vapier@gentoo.org>
61 * interp.c (sim_open): Update sim_parse_args comment.
63 2016-01-03 Mike Frysinger <vapier@gentoo.org>
65 * configure.ac (SIM_AC_OPTION_HOSTENDIAN): Delete.
66 * configure: Regenerate.
68 2016-01-02 Mike Frysinger <vapier@gentoo.org>
70 * configure.ac (SIM_AC_OPTION_ENDIAN): Change BIG_ENDIAN to BIG.
71 * configure: Regenerate.
73 2015-12-30 Mike Frysinger <vapier@gentoo.org>
75 * wrapper.c (sim_store_register): Rename to ...
76 (moxie_reg_store): ... this.
77 (sim_fetch_register): Rename to ...
78 (moxie_reg_fetch): ... this.
79 (sim_open): Call CPU_REG_FETCH/CPU_REG_STORE.
81 2015-12-27 Mike Frysinger <vapier@gentoo.org>
83 * Makefile.in (SIM_OBJS): Delete sim-hload.o.
85 2015-12-26 Mike Frysinger <vapier@gentoo.org>
87 * config.in, configure: Regenerate.
89 2015-11-15 Mike Frysinger <vapier@gentoo.org>
91 * Makefile.in (SIM_OBJS): Delete sim-reason.o and sim-stop.o.
93 2015-11-14 Mike Frysinger <vapier@gentoo.org>
95 * interp.c (sim_close): Delete.
97 2015-10-11 Mike Frysinger <vapier@gentoo.org>
100 * interp.c (load_dtb): Close open file in error path.
102 2015-06-23 Mike Frysinger <vapier@gentoo.org>
104 * configure: Regenerate.
106 2015-06-12 Mike Frysinger <vapier@gentoo.org>
108 * configure: Regenerate.
110 2015-06-12 Mike Frysinger <vapier@gentoo.org>
112 * configure: Regenerate.
114 2015-06-12 Mike Frysinger <vapier@gentoo.org>
116 * interp.c (tracefile, tracing): Delete.
117 (MOXIE_TRACE_INSN): Call TRACE_INSN directly.
119 2015-06-12 Mike Frysinger <vapier@gentoo.org>
121 * interp.c (TRACE): Rename to ...
122 (MOXIE_TRACE_INSN): ... this.
123 (sim_engine_run): Change TRACE to MOXIE_TRACE_INSN.
125 2015-04-18 Mike Frysinger <vapier@gentoo.org>
127 * sim-main.h (SIM_CPU): Delete.
129 2015-04-18 Mike Frysinger <vapier@gentoo.org>
131 * sim-main.h (sim_cia): Delete.
133 2015-04-17 Mike Frysinger <vapier@gentoo.org>
135 * interp.c (wbat, wsat, wlat, rsat, rbat, rlat, sim_engine_run):
136 Change CIA_GET to CPU_PC_GET.
137 * sim-main.h (CIA_GET, CIA_SET): Delete.
139 2015-04-16 Mike Frysinger <vapier@gentoo.org>
141 * interp.c (moxie_pc_get, moxie_pc_set): New functions.
142 (sim_open): Declare new local var i. Call CPU_PC_FETCH &
143 CPU_PC_STORE for all cpus.
144 * sim-main.h (SIM_CPU): New typedef.
146 2015-04-15 Mike Frysinger <vapier@gentoo.org>
148 * Makefile.in (SIM_OBJS): Delete sim-cpu.o.
149 * sim-main.h (STATE_CPU): Delete.
151 2015-04-13 Mike Frysinger <vapier@gentoo.org>
153 * configure: Regenerate.
155 2015-04-06 Mike Frysinger <vapier@gentoo.org>
157 * Makefile.in (SIM_OBJS): Delete sim-engine.o and sim-hrw.o.
159 2015-04-05 Mike Frysinger <vapier@gentoo.org>
161 * Makefile.in (SIM_OBJS): Add sim-resume.o.
162 * interp.c (moxie_regset): Delete exception.
163 (sim_resume): Rename to ...
164 (sim_engine_run): ... this. Delete insts variable and references
165 to cpu.asregs.exception, and change most to sim_engine_halt. Move
166 trailing insts and PC_REGNO updates into the loop.
167 (load_dtb): Delete open warning. Change printf to sim_io_eprintf.
169 2015-04-01 Mike Frysinger <vapier@gentoo.org>
171 * sim-main.h (SIM_HAVE_BIENDIAN): Delete.
173 2015-03-31 Mike Frysinger <vapier@gentoo.org>
175 * config.in, configure: Regenerate.
177 2015-03-24 Mike Frysinger <vapier@gentoo.org>
179 * interp.c (moxie_extract_unsigned_integer): Mark static. Update
180 prototype. Change printf %d to %zu.
181 (moxie_store_unsigned_integer): Mark static. Update prototype.
182 (wbat, wsat, wlat, rsat, rbat, rlat): Move INLINE after static.
183 (convert_target_flags): Mark static.
184 (sim_resume): Update prototype. Move val decl above local code.
185 (sim_store_register, sim_fetch_register, sim_open, sim_close,
186 sim_create_inferior): Update prototype.
188 2015-03-24 Mike Frysinger <vapier@gentoo.org>
190 * configure: Regenerate.
191 * configure.ac: Call SIM_AC_OPTION_WARNINGS.
192 * interp.c: Delete gdb/callback.h include. Add sim-options.h include.
193 (callback, myname, sim_kind): Delete.
194 (tracefile, tracine, TRACE): Move code together and add a TODO.
195 (struct moxie_regset): Add a TODO.
197 (callback, issue_messages, sim_size, sim_write, sim_read, sim_trace,
198 sim_stop_reason, sim_stop, sim_info, sim_load, sim_set_callbacks):
200 (set_initial_gprs): Change prototype to (void).
201 (free_state): New function.
202 (sim_open): Call sim_cpu_alloc_all, sim_parse_args, and
203 sim_analyze_program. Move set_initial_gprs to the end. Set
204 STATE_WATCHPOINTS pc data. Delete callback, myname, and
205 issue_messages. Call free_state on error.
206 (sim_create_inferior): Delete references to issue_messages and
208 * Makefile.in (SIM_RUN_OBJS, SIM_EXTRA_CFLAGS): Delete.
209 (SIM_OBJS): Change to $(SIM_NEW_COMMON_OBJS).
210 * sim-main.h (struct sim_state): Change cpu to a pointer array.
211 (STATE_CPU): Drop the &.
213 2015-03-24 Mike Frysinger <vapier@gentoo.org>
215 * Makefile.in (SIM_OBJS): Add sim-command.o.
216 * interp.c (sim_do_command): Delete.
218 2015-03-16 Mike Frysinger <vapier@gentoo.org>
220 * config.in, configure: Regenerate.
222 2015-03-14 Mike Frysinger <vapier@gentoo.org>
224 * Makefile.in (SIM_EXTRA_CLEAN): Delete.
225 (all): Drop interp.o dependency.
226 (interp.o, mcore-clean): Delete rules.
228 2015-03-14 Mike Frysinger <vapier@gentoo.org>
230 * Makefile.in (SIM_EXTRA_CFLAGS): Set to
231 -DSIM_USE_DEPRECATED_RUN_FRONTEND.
232 (SIM_RUN_OBJS): Set to run.o.
234 2015-03-14 Mike Frysinger <vapier@gentoo.org>
236 * configure.ac (AC_CHECK_HEADERS): Delete.
237 * aclocal.m4, configure: Regenerate.
239 2015-02-20 Mike Frysinger <vapier@gentoo.org>
241 * interp.c: Delete sysdep.h and netinet/in.h includes.
242 Include string.h and unistd.h.
245 2015-02-19 Mike Frysinger <vapier@gentoo.org>
247 * interp.c (sim_kill): Delete unused func.
249 2014-12-27 Anthony Green <green@moxielogic.com>
251 * interp.c (EXTRACT_OFFSET): Define.
252 (sim_resume): ldo/sto instructions now use 16 bit offset instead
253 of 32. Also swap mul.x/umul.x opcodes (reversed by mistake).
255 2014-12-25 Anthony Green <green@moxielogic.com>
257 * interp.c (sim_resume): Whitespace changes to align with GDB
260 2014-12-24 Anthony Green <green@moxielogic.com>
262 * interp.c (sim_resume): Add mul.x and umul.x instructions.
264 2014-12-12 Anthony Green <green@moxielogic.com>
266 * interp.c (sim_resume): Add zex instructions.
268 2014-08-19 Alan Modra <amodra@gmail.com>
270 * configure: Regenerate.
272 2014-08-15 Roland McGrath <mcgrathr@google.com>
274 * configure: Regenerate.
275 * config.in: Regenerate.
277 2014-04-02 Anthony Green <green@moxielogic.com>
279 * interp.c (sim_resume): Add new sign-extend instructions.
281 2014-03-10 Mike Frysinger <vapier@gentoo.org>
283 * interp.c (sim_do_command): Add const to cmd.
285 2014-03-05 Mike Frysinger <vapier@gentoo.org>
287 * interp.c (sim_load): Add const to prog.
289 2014-02-17 Mike Frysinger <vapier@gentoo.org>
292 * interp.c (interrupt): Delete.
293 (sim_resume): Delete signal(SIGINT) handling.
295 2013-09-23 Alan Modra <amodra@gmail.com>
297 * configure: Regenerate.
299 2013-06-26 Tom Tromey <tromey@redhat.com>
301 * Makefile.in (dtbdir): Don't use gdb's version.in.
303 2013-06-03 Mike Frysinger <vapier@gentoo.org>
305 * aclocal.m4, configure: Regenerate.
307 2013-01-17 Anthony Green <green@moxielogic.com>
309 * interp.c (sim_open): Remove from debug output.
311 2012-09-07 Anthony Green <green@moxielogic.com>
313 * interp.c (sim_resume): Branches are now relative to the
314 address of the instruction following the branch.
316 2012-06-17 Mike Frysinger <vapier@gentoo.org>
318 * interp.c: Include config.h first. Also include fcntl.h directly.
320 2012-06-15 Joel Brobecker <brobecker@adacore.com>
322 * config.in, configure: Regenerate.
324 2012-03-24 Mike Frysinger <vapier@gentoo.org>
326 * aclocal.m4, config.in, configure: Regenerate.
328 2011-12-03 Mike Frysinger <vapier@gentoo.org>
330 * aclocal.m4: New file.
331 * configure: Regenerate.
333 2011-10-17 Mike Frysinger <vapier@gentoo.org>
335 * configure.ac: Change include to common/acinclude.m4.
337 2011-10-17 Mike Frysinger <vapier@gentoo.org>
339 * configure.ac: Change AC_PREREQ to 2.64. Delete AC_CONFIG_HEADER
340 call. Replace common.m4 include with SIM_AC_COMMON.
341 * configure: Regenerate.
343 2010-04-14 Mike Frysinger <vapier@gentoo.org>
345 * interp.c (sim_write): Add const to buffer arg.
347 2010-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
349 * interp.c (sim_create_inferior): Fix crashes on zero PROG_BFD or ARGV.
351 2010-02-03 Anthony Green <green@moxielogic.com>
353 * interp.c (sim_resume): nop is 0x0f, and 0x00 is an illegal
356 2010-01-13 Anthony Green <green@moxielogic.com>
358 * interp.c (sim_open): Add period to end of sentence in comment.
360 2010-01-13 Anthony Green <green@moxielogic.com>
362 * interp.c (sim_open): Initialize the SIM_DESC object properly
363 with sim_config() and sim_post_argv_init().
365 2010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
367 * configure: Regenerate.
369 2009-09-10 Anthony Green <green@moxielogic.com>
371 * Makefile.in (install-dtb): New target.
372 (moxie-gdb.dtb): New target.
373 (SIM_CFLAGS): Define DTB macro on command line.
374 (SIM_OBJS): Use common infrastructire.
375 (dtbdir): Define install location for dtb file.
377 * sim-main.h: New file.
378 * moxie-gdb.dts: New file.
379 * configure.ac: Check for dtc. Install dtb file. Remove some old
381 * configure: Regenerate.
382 * interp.c: Many changes to use common memory infrastructure.
383 (load_dtb): New function.
384 (sim_create_inferior): Call it.
386 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
388 * config.in: Regenerate.
389 * configure: Likewise.
391 * configure: Regenerate.
393 2009-07-31 Anthony Green <green@moxielogic.com>
395 * interp.c: Increase simulated memory to 16MB.
396 (sim_resume): Tweak swi system calls to support new ABI (up to 5
397 args in regs). Also simluate proper exception processing for
400 2009-07-30 Anthony Green <green@moxielogic.com>
402 * interp.c (sim_resume): Add system call software interrupt support.
404 2009-06-11 Anthony Green <green@moxielogic.com>
406 * interp.c (INST2OFFSET): Define.
407 (sim_resume): Support new PC relative branch instructions.
409 2009-05-09 Anthony Green <green@moxielogic.com>
411 * interp.c (sim_resume): Add missing breaks in switch.
413 2008-10-03 Anthony Green <green@moxielogic.com>
415 * interp.c (sim_resume): Add support for ldo.b, sto.b, ldo.s, sto.s.
417 2008-09-10 Anthony Green <green@moxielogic.com>
419 * interp.c (NUM_SPRO_SREGS): New.
420 (struct moxie_regset): Add sregs.
421 (set_initial_gprs): Initialize sregs.
422 (sim_resume): Add gsr and ssr support.
424 2008-09-04 Anthony Green <green@moxielogic.com>
426 * interp.c (sim_resume): Add inc and dec instructions.
428 2008-09-04 Anthony Green <green@moxielogic.com>
430 * interp.c (struct moxie_regset): Use an unsigned long long to keep
431 track of instruction trace counts.
432 * interp.c (sim_resume): Ditto.
435 2008-08-22 Anthony Green <green@moxielogic.com>
437 * interp.c (sim_resume): Remove debugging code.
439 2008-08-20 Anthony Green <green@moxielogic.com>
441 * interp.c (TRACE): Add new tracing infrastructure.
442 (sim_resume): Use it.
443 (reg_names): Add new registers.
444 (NUM_MOXIE_REGS): New registers.
445 (PC_REGNO): New registers.
446 (sim_resume): New instruction encodings.
448 2008-08-16 Anthony Green <green@moxielogic.com>
450 * interp.c (sim_resume): Add SYS_read, and fix SYS_open and SYS_write.
451 (convert_target_flags): New function.
453 2008-08-08 Anthony Green <green@moxielogic.com>
455 * interp.c (sim_resume): Add SYS_open and SYS_write system call support.
457 2008-08-04 Anthony Green <green@moxielogic.com>
459 * Makefile.in (SIM_EXTRA_LIBS): Add -lz.
461 2008-08-04 Anthony Green <green@moxielogic.com>
463 * interp.c (sim_create_inferior): Set argc & argv in the target.
465 2008-04-12 Anthony Green <green@moxielogic.com>
467 * interp.c (sim_resume): Add brk.
469 2008-04-10 Anthony Green <green@moxielogic.com>
471 * interp.c (sim_resume): Add static chain pointer to call frame.
473 2008-03-24 Anthony Green <green@moxielogic.com>
475 * interp.c (sim_resume): Add missing breaks.
476 (sim_resume): Fix neg implementation.
478 2008-03-23 Anthony Green <green@moxielogic.com>
480 * interp.c (sim_load): Don't require a .bss section.
482 2008-03-21 Anthony Green <green@moxielogic.com>
484 * interp.c (sim_resume): Add swi, and, lshr, ashl, sub.l, neg, or,
487 2008-03-20 Anthony Green <green@moxielogic.com>
489 * interp.c (struct moxie_regset): Add condition code, cc.
490 (CC_GT, CC_LT, CC_EQ, CC_GTU, CC_LTU): Define.
491 (sim_resume): Add jmpa, jsr, cmp, beq, bne, blt, bgt, bltu, bgtu,
492 bge, ble, bgeu, and bleu.
493 (rbat, rsat, wbat, wsat): New functions.
494 (sim_resume): Add ld.b, lda.b, ldi.b, ld.s, lda.s, ldi.s, st.b,
495 sta.b, st.s, sta.s, jmp.
497 2008-03-19 Anthony Green <green@moxielogic.com>
499 * interp.c (sim_resume): Add ld.l, st.l, lda.l, sta.l.
500 jsra should set $fp == $sp.
501 Fix jsra and ret semantics.
503 2008-03-18 Anthony Green <green@moxielogic.com>
505 * interp.c (sim_resume): Add push, pop and add.l.
507 2008-03-16 Anthony Green <green@moxielogic.com>
509 * interp.c (EXTRACT_WORD): Define.
510 (rlat): Use EXTRACT_WORD.
511 (sim_resume): Add jsra and ret.
513 2008-02-22 Anthony Green <green@moxielogic.com>
515 * interp.c (reg_names): Define.
516 (sim_resume): Use reg_names.
518 2008-02-21 Anthony Green <green@moxielogic.com>
520 * config.in, configure, configure.ac, interp.c, Makefile.in,