1 2015-12-27 Mike Frysinger <vapier@gentoo.org>
3 * Makefile.in (SIM_OBJS): Delete sim-hload.o.
5 2015-12-26 Mike Frysinger <vapier@gentoo.org>
7 * config.in, configure: Regenerate.
9 2015-11-15 Mike Frysinger <vapier@gentoo.org>
11 * Makefile.in (SIM_OBJS): Delete sim-reason.o and sim-stop.o.
13 2015-11-14 Mike Frysinger <vapier@gentoo.org>
15 * interp.c (sim_close): Delete.
17 2015-10-11 Mike Frysinger <vapier@gentoo.org>
20 * interp.c (load_dtb): Close open file in error path.
22 2015-06-23 Mike Frysinger <vapier@gentoo.org>
24 * configure: Regenerate.
26 2015-06-12 Mike Frysinger <vapier@gentoo.org>
28 * configure: Regenerate.
30 2015-06-12 Mike Frysinger <vapier@gentoo.org>
32 * configure: Regenerate.
34 2015-06-12 Mike Frysinger <vapier@gentoo.org>
36 * interp.c (tracefile, tracing): Delete.
37 (MOXIE_TRACE_INSN): Call TRACE_INSN directly.
39 2015-06-12 Mike Frysinger <vapier@gentoo.org>
41 * interp.c (TRACE): Rename to ...
42 (MOXIE_TRACE_INSN): ... this.
43 (sim_engine_run): Change TRACE to MOXIE_TRACE_INSN.
45 2015-04-18 Mike Frysinger <vapier@gentoo.org>
47 * sim-main.h (SIM_CPU): Delete.
49 2015-04-18 Mike Frysinger <vapier@gentoo.org>
51 * sim-main.h (sim_cia): Delete.
53 2015-04-17 Mike Frysinger <vapier@gentoo.org>
55 * interp.c (wbat, wsat, wlat, rsat, rbat, rlat, sim_engine_run):
56 Change CIA_GET to CPU_PC_GET.
57 * sim-main.h (CIA_GET, CIA_SET): Delete.
59 2015-04-16 Mike Frysinger <vapier@gentoo.org>
61 * interp.c (moxie_pc_get, moxie_pc_set): New functions.
62 (sim_open): Declare new local var i. Call CPU_PC_FETCH &
63 CPU_PC_STORE for all cpus.
64 * sim-main.h (SIM_CPU): New typedef.
66 2015-04-15 Mike Frysinger <vapier@gentoo.org>
68 * Makefile.in (SIM_OBJS): Delete sim-cpu.o.
69 * sim-main.h (STATE_CPU): Delete.
71 2015-04-13 Mike Frysinger <vapier@gentoo.org>
73 * configure: Regenerate.
75 2015-04-06 Mike Frysinger <vapier@gentoo.org>
77 * Makefile.in (SIM_OBJS): Delete sim-engine.o and sim-hrw.o.
79 2015-04-05 Mike Frysinger <vapier@gentoo.org>
81 * Makefile.in (SIM_OBJS): Add sim-resume.o.
82 * interp.c (moxie_regset): Delete exception.
83 (sim_resume): Rename to ...
84 (sim_engine_run): ... this. Delete insts variable and references
85 to cpu.asregs.exception, and change most to sim_engine_halt. Move
86 trailing insts and PC_REGNO updates into the loop.
87 (load_dtb): Delete open warning. Change printf to sim_io_eprintf.
89 2015-04-01 Mike Frysinger <vapier@gentoo.org>
91 * sim-main.h (SIM_HAVE_BIENDIAN): Delete.
93 2015-03-31 Mike Frysinger <vapier@gentoo.org>
95 * config.in, configure: Regenerate.
97 2015-03-24 Mike Frysinger <vapier@gentoo.org>
99 * interp.c (moxie_extract_unsigned_integer): Mark static. Update
100 prototype. Change printf %d to %zu.
101 (moxie_store_unsigned_integer): Mark static. Update prototype.
102 (wbat, wsat, wlat, rsat, rbat, rlat): Move INLINE after static.
103 (convert_target_flags): Mark static.
104 (sim_resume): Update prototype. Move val decl above local code.
105 (sim_store_register, sim_fetch_register, sim_open, sim_close,
106 sim_create_inferior): Update prototype.
108 2015-03-24 Mike Frysinger <vapier@gentoo.org>
110 * configure: Regenerate.
111 * configure.ac: Call SIM_AC_OPTION_WARNINGS.
112 * interp.c: Delete gdb/callback.h include. Add sim-options.h include.
113 (callback, myname, sim_kind): Delete.
114 (tracefile, tracine, TRACE): Move code together and add a TODO.
115 (struct moxie_regset): Add a TODO.
117 (callback, issue_messages, sim_size, sim_write, sim_read, sim_trace,
118 sim_stop_reason, sim_stop, sim_info, sim_load, sim_set_callbacks):
120 (set_initial_gprs): Change prototype to (void).
121 (free_state): New function.
122 (sim_open): Call sim_cpu_alloc_all, sim_parse_args, and
123 sim_analyze_program. Move set_initial_gprs to the end. Set
124 STATE_WATCHPOINTS pc data. Delete callback, myname, and
125 issue_messages. Call free_state on error.
126 (sim_create_inferior): Delete references to issue_messages and
128 * Makefile.in (SIM_RUN_OBJS, SIM_EXTRA_CFLAGS): Delete.
129 (SIM_OBJS): Change to $(SIM_NEW_COMMON_OBJS).
130 * sim-main.h (struct sim_state): Change cpu to a pointer array.
131 (STATE_CPU): Drop the &.
133 2015-03-24 Mike Frysinger <vapier@gentoo.org>
135 * Makefile.in (SIM_OBJS): Add sim-command.o.
136 * interp.c (sim_do_command): Delete.
138 2015-03-16 Mike Frysinger <vapier@gentoo.org>
140 * config.in, configure: Regenerate.
142 2015-03-14 Mike Frysinger <vapier@gentoo.org>
144 * Makefile.in (SIM_EXTRA_CLEAN): Delete.
145 (all): Drop interp.o dependency.
146 (interp.o, mcore-clean): Delete rules.
148 2015-03-14 Mike Frysinger <vapier@gentoo.org>
150 * Makefile.in (SIM_EXTRA_CFLAGS): Set to
151 -DSIM_USE_DEPRECATED_RUN_FRONTEND.
152 (SIM_RUN_OBJS): Set to run.o.
154 2015-03-14 Mike Frysinger <vapier@gentoo.org>
156 * configure.ac (AC_CHECK_HEADERS): Delete.
157 * aclocal.m4, configure: Regenerate.
159 2015-02-20 Mike Frysinger <vapier@gentoo.org>
161 * interp.c: Delete sysdep.h and netinet/in.h includes.
162 Include string.h and unistd.h.
165 2015-02-19 Mike Frysinger <vapier@gentoo.org>
167 * interp.c (sim_kill): Delete unused func.
169 2014-12-27 Anthony Green <green@moxielogic.com>
171 * interp.c (EXTRACT_OFFSET): Define.
172 (sim_resume): ldo/sto instructions now use 16 bit offset instead
173 of 32. Also swap mul.x/umul.x opcodes (reversed by mistake).
175 2014-12-25 Anthony Green <green@moxielogic.com>
177 * interp.c (sim_resume): Whitespace changes to align with GDB
180 2014-12-24 Anthony Green <green@moxielogic.com>
182 * interp.c (sim_resume): Add mul.x and umul.x instructions.
184 2014-12-12 Anthony Green <green@moxielogic.com>
186 * interp.c (sim_resume): Add zex instructions.
188 2014-08-19 Alan Modra <amodra@gmail.com>
190 * configure: Regenerate.
192 2014-08-15 Roland McGrath <mcgrathr@google.com>
194 * configure: Regenerate.
195 * config.in: Regenerate.
197 2014-04-02 Anthony Green <green@moxielogic.com>
199 * interp.c (sim_resume): Add new sign-extend instructions.
201 2014-03-10 Mike Frysinger <vapier@gentoo.org>
203 * interp.c (sim_do_command): Add const to cmd.
205 2014-03-05 Mike Frysinger <vapier@gentoo.org>
207 * interp.c (sim_load): Add const to prog.
209 2014-02-17 Mike Frysinger <vapier@gentoo.org>
212 * interp.c (interrupt): Delete.
213 (sim_resume): Delete signal(SIGINT) handling.
215 2013-09-23 Alan Modra <amodra@gmail.com>
217 * configure: Regenerate.
219 2013-06-26 Tom Tromey <tromey@redhat.com>
221 * Makefile.in (dtbdir): Don't use gdb's version.in.
223 2013-06-03 Mike Frysinger <vapier@gentoo.org>
225 * aclocal.m4, configure: Regenerate.
227 2013-01-17 Anthony Green <green@moxielogic.com>
229 * interp.c (sim_open): Remove from debug output.
231 2012-09-07 Anthony Green <green@moxielogic.com>
233 * interp.c (sim_resume): Branches are now relative to the
234 address of the instruction following the branch.
236 2012-06-17 Mike Frysinger <vapier@gentoo.org>
238 * interp.c: Include config.h first. Also include fcntl.h directly.
240 2012-06-15 Joel Brobecker <brobecker@adacore.com>
242 * config.in, configure: Regenerate.
244 2012-03-24 Mike Frysinger <vapier@gentoo.org>
246 * aclocal.m4, config.in, configure: Regenerate.
248 2011-12-03 Mike Frysinger <vapier@gentoo.org>
250 * aclocal.m4: New file.
251 * configure: Regenerate.
253 2011-10-17 Mike Frysinger <vapier@gentoo.org>
255 * configure.ac: Change include to common/acinclude.m4.
257 2011-10-17 Mike Frysinger <vapier@gentoo.org>
259 * configure.ac: Change AC_PREREQ to 2.64. Delete AC_CONFIG_HEADER
260 call. Replace common.m4 include with SIM_AC_COMMON.
261 * configure: Regenerate.
263 2010-04-14 Mike Frysinger <vapier@gentoo.org>
265 * interp.c (sim_write): Add const to buffer arg.
267 2010-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
269 * interp.c (sim_create_inferior): Fix crashes on zero PROG_BFD or ARGV.
271 2010-02-03 Anthony Green <green@moxielogic.com>
273 * interp.c (sim_resume): nop is 0x0f, and 0x00 is an illegal
276 2010-01-13 Anthony Green <green@moxielogic.com>
278 * interp.c (sim_open): Add period to end of sentence in comment.
280 2010-01-13 Anthony Green <green@moxielogic.com>
282 * interp.c (sim_open): Initialize the SIM_DESC object properly
283 with sim_config() and sim_post_argv_init().
285 2010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
287 * configure: Regenerate.
289 2009-09-10 Anthony Green <green@moxielogic.com>
291 * Makefile.in (install-dtb): New target.
292 (moxie-gdb.dtb): New target.
293 (SIM_CFLAGS): Define DTB macro on command line.
294 (SIM_OBJS): Use common infrastructire.
295 (dtbdir): Define install location for dtb file.
297 * sim-main.h: New file.
298 * moxie-gdb.dts: New file.
299 * configure.ac: Check for dtc. Install dtb file. Remove some old
301 * configure: Regenerate.
302 * interp.c: Many changes to use common memory infrastructure.
303 (load_dtb): New function.
304 (sim_create_inferior): Call it.
306 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
308 * config.in: Regenerate.
309 * configure: Likewise.
311 * configure: Regenerate.
313 2009-07-31 Anthony Green <green@moxielogic.com>
315 * interp.c: Increase simulated memory to 16MB.
316 (sim_resume): Tweak swi system calls to support new ABI (up to 5
317 args in regs). Also simluate proper exception processing for
320 2009-07-30 Anthony Green <green@moxielogic.com>
322 * interp.c (sim_resume): Add system call software interrupt support.
324 2009-06-11 Anthony Green <green@moxielogic.com>
326 * interp.c (INST2OFFSET): Define.
327 (sim_resume): Support new PC relative branch instructions.
329 2009-05-09 Anthony Green <green@moxielogic.com>
331 * interp.c (sim_resume): Add missing breaks in switch.
333 2008-10-03 Anthony Green <green@moxielogic.com>
335 * interp.c (sim_resume): Add support for ldo.b, sto.b, ldo.s, sto.s.
337 2008-09-10 Anthony Green <green@moxielogic.com>
339 * interp.c (NUM_SPRO_SREGS): New.
340 (struct moxie_regset): Add sregs.
341 (set_initial_gprs): Initialize sregs.
342 (sim_resume): Add gsr and ssr support.
344 2008-09-04 Anthony Green <green@moxielogic.com>
346 * interp.c (sim_resume): Add inc and dec instructions.
348 2008-09-04 Anthony Green <green@moxielogic.com>
350 * interp.c (struct moxie_regset): Use an unsigned long long to keep
351 track of instruction trace counts.
352 * interp.c (sim_resume): Ditto.
355 2008-08-22 Anthony Green <green@moxielogic.com>
357 * interp.c (sim_resume): Remove debugging code.
359 2008-08-20 Anthony Green <green@moxielogic.com>
361 * interp.c (TRACE): Add new tracing infrastructure.
362 (sim_resume): Use it.
363 (reg_names): Add new registers.
364 (NUM_MOXIE_REGS): New registers.
365 (PC_REGNO): New registers.
366 (sim_resume): New instruction encodings.
368 2008-08-16 Anthony Green <green@moxielogic.com>
370 * interp.c (sim_resume): Add SYS_read, and fix SYS_open and SYS_write.
371 (convert_target_flags): New function.
373 2008-08-08 Anthony Green <green@moxielogic.com>
375 * interp.c (sim_resume): Add SYS_open and SYS_write system call support.
377 2008-08-04 Anthony Green <green@moxielogic.com>
379 * Makefile.in (SIM_EXTRA_LIBS): Add -lz.
381 2008-08-04 Anthony Green <green@moxielogic.com>
383 * interp.c (sim_create_inferior): Set argc & argv in the target.
385 2008-04-12 Anthony Green <green@moxielogic.com>
387 * interp.c (sim_resume): Add brk.
389 2008-04-10 Anthony Green <green@moxielogic.com>
391 * interp.c (sim_resume): Add static chain pointer to call frame.
393 2008-03-24 Anthony Green <green@moxielogic.com>
395 * interp.c (sim_resume): Add missing breaks.
396 (sim_resume): Fix neg implementation.
398 2008-03-23 Anthony Green <green@moxielogic.com>
400 * interp.c (sim_load): Don't require a .bss section.
402 2008-03-21 Anthony Green <green@moxielogic.com>
404 * interp.c (sim_resume): Add swi, and, lshr, ashl, sub.l, neg, or,
407 2008-03-20 Anthony Green <green@moxielogic.com>
409 * interp.c (struct moxie_regset): Add condition code, cc.
410 (CC_GT, CC_LT, CC_EQ, CC_GTU, CC_LTU): Define.
411 (sim_resume): Add jmpa, jsr, cmp, beq, bne, blt, bgt, bltu, bgtu,
412 bge, ble, bgeu, and bleu.
413 (rbat, rsat, wbat, wsat): New functions.
414 (sim_resume): Add ld.b, lda.b, ldi.b, ld.s, lda.s, ldi.s, st.b,
415 sta.b, st.s, sta.s, jmp.
417 2008-03-19 Anthony Green <green@moxielogic.com>
419 * interp.c (sim_resume): Add ld.l, st.l, lda.l, sta.l.
420 jsra should set $fp == $sp.
421 Fix jsra and ret semantics.
423 2008-03-18 Anthony Green <green@moxielogic.com>
425 * interp.c (sim_resume): Add push, pop and add.l.
427 2008-03-16 Anthony Green <green@moxielogic.com>
429 * interp.c (EXTRACT_WORD): Define.
430 (rlat): Use EXTRACT_WORD.
431 (sim_resume): Add jsra and ret.
433 2008-02-22 Anthony Green <green@moxielogic.com>
435 * interp.c (reg_names): Define.
436 (sim_resume): Use reg_names.
438 2008-02-21 Anthony Green <green@moxielogic.com>
440 * config.in, configure, configure.ac, interp.c, Makefile.in,