1 2015-11-15 Mike Frysinger <vapier@gentoo.org>
3 * interp.c (mcore_regset, LAST_VALID_CREG, NUM_MCORE_REGS: Move
6 (gr, cr): Change from asregs to cpu.
7 (sr, vbr, esr, fsr, epc, fpc, ss0, ss1, ss2, ss3, ss4, gcr, gsr):
8 Change from asregs to cr.
9 (C_ON, C_VALUE, C_OFF, SET_C, CLR_C, NEW_C, SR_AF): Change from
11 (set_active_regs): Define.
12 (set_initial_gprs): Rename scpu to cpu. Change cpu.sr to sr and
13 cpu.gr to gr. Replace for loop with memset. Replace SR_AF with
15 (handle_trap1): Add cpu arg.
16 (process_stub): Likewise. Change cpu.gr to gr.
17 (util): Rename scpu to cpu. Change cpu.gr to gr.
18 (rbat, rhat, rlat, wbat, what, wlat, ILLEGAL, sim_engine_run,
19 mcore_reg_store, mcore_reg_fetch, sim_create_inferior): Rename scpu
21 (step_once): Likewise. Replace SR_AF with set_active_regs. Adjust
23 (mcore_pc_get, mcore_pc_set): Adjust cpu->pc to cpu->regs.pc.
24 * sim-main.h (mcore_regset, LAST_VALID_CREG, NUM_MCORE_REGS: Move
26 (_sim_cpu): Add regs, asints, active_gregs, ticks, stalls, cycles,
29 2015-11-15 Mike Frysinger <vapier@gentoo.org>
31 * Makefile.in (SIM_OBJS): Add sim-reg.o.
32 * interp.c (sim_store_register): Rename to ...
33 (mcore_reg_store): ... this. Change SIM_DESC to SIM_CPU.
34 (sim_fetch_register): Rename to ...
35 (mcore_reg_fetch): ... this. Change SIM_DESC to SIM_CPU.
36 (sim_open): Call CPU_REG_FETCH and CPU_REG_STORE.
38 2015-11-15 Mike Frysinger <vapier@gentoo.org>
40 * Makefile.in (SIM_OBJS): Add sim-reason.o and sim-resume.o.
41 * interp.c (struct mcore_regset): Delete exception.
42 (util): Add SIM_DESC and SIM_CPU args. Call sim_engine_halt instead
43 of setting cpu.asregs.exception.
45 (sim_resume): Rename to ...
46 (step_once): ... this. Delete cpu.asregs.exception initialization.
47 Delete do/while statements while keeping the body. Replace SIGTRAP
48 usage with sim_engine_halt(SIM_SIGTRAP). Replace SIGILL usage with
49 ILLEGAL. Pass sd and cpu down to util.
50 (sim_engine_run): Define.
51 (sim_stop_reason): Delete.
53 2015-11-14 Mike Frysinger <vapier@gentoo.org>
55 * interp.c (sim_close): Delete.
57 2015-06-23 Mike Frysinger <vapier@gentoo.org>
59 * configure: Regenerate.
61 2015-06-17 Mike Frysinger <vapier@gentoo.org>
63 * interp.c (handle_trap1): Replace call to cb_syscall with
66 2015-06-17 Mike Frysinger <vapier@gentoo.org>
68 * interp.c: Include sim-syscall.h.
69 (syscall_read_mem, syscall_write_mem): Delete.
70 (m32r_trap): Change syscall_read_mem/syscall_write_mem
71 to sim_syscall_read_mem/sim_syscall_write_mem.
73 2015-06-12 Mike Frysinger <vapier@gentoo.org>
75 * configure: Regenerate.
77 2015-06-12 Mike Frysinger <vapier@gentoo.org>
79 * configure: Regenerate.
81 2015-04-21 Mike Frysinger <vapier@gentoo.org>
83 * interp.c (sim_resume): Change %x to %lx for all cpu registers.
85 2015-04-21 Mike Frysinger <vapier@gentoo.org>
87 * interp.c (mcore_regset): Delete msize & memory.
88 (issue_messages, mem, wbat, what, wlat, rbat, what, wlat,
89 sim_memory_size, MEM_SIZE_FLOOR, sim_size, init_pointers): Delete.
90 (DEFAULT_MEMORY_SIZE): Define.
91 (set_initial_gprs): Delete memsize handling and call to init_pointers.
92 Change cpu.asregs.msize to DEFAULT_MEMORY_SIZE.
93 (syscall_read_mem): Change memcpy to sim_core_read_buffer.
94 (syscall_write_mem): Change memcpy to sim_core_write_buffer.
95 (process_stub): Change issue_messages to STATE_VERBOSE_P.
96 (util): Turn printf into a stub. Change issue_messages to
98 (rbat, rhat, rlat, wbat, what, wlat): Define to sim core funcs.
99 (sim_resume): Change issue_messages to STATE_VERBOSE_P.
100 Delete cpu.asregs.msize range checks.
101 (sim_write, sim_read): Delete.
102 (sim_store_register, sim_fetch_register): Delete call to
104 (sim_open): Delete osize, call to sim_size, and issue_messages. Call
105 sim_do_commandf to setup memory.
106 (sim_create_inferior): Delete issue_messages handling. Change
107 cpu.asregs.msize to DEFAULT_MEMORY_SIZE. Change strcpy to
108 sim_core_write_buffer.
110 2015-04-21 Mike Frysinger <vapier@gentoo.org>
112 * interp.c (WATCHFUNCTIONS): Undef it.
113 (sim_resume): Move WLhash behind WATCHFUNCTIONS.
114 (sim_do_command): Delete.
116 2015-04-21 Mike Frysinger <vapier@gentoo.org>
118 * Makefile.in (NL_TARGET): Define.
119 * interp.c (NUM_ELEM, opened, log_open, log_close, is_opened): Delete.
120 (syscall_read_mem, syscall_write_mem): New functions.
121 (handle_trap1): Delete entire body. Replace with call to cb_syscall.
123 2015-04-18 Mike Frysinger <vapier@gentoo.org>
125 * sim-main.h (SIM_CPU): Delete.
127 2015-04-18 Mike Frysinger <vapier@gentoo.org>
129 * sim-main.h (sim_cia): Delete.
131 2015-04-17 Mike Frysinger <vapier@gentoo.org>
133 * interp.c (set_initial_gprs): Change CIA_SET to CPU_PC_SET.
134 (sim_resume): Change CIA_GET to CPU_PC_GET and CIA_SET to
136 (sim_create_inferior): Change CIA_SET to CPU_PC_SET.
137 * sim-main.h (CIA_GET, CIA_SET): Delete.
139 2015-04-16 Mike Frysinger <vapier@gentoo.org>
141 * interp.c (mcore_pc_get, mcore_pc_set): New functions.
142 (sim_open): Call CPU_PC_FETCH & CPU_PC_STORE for all cpus.
144 2015-04-15 Mike Frysinger <vapier@gentoo.org>
146 * Makefile.in (SIM_OBJS): Delete sim-cpu.o.
147 * sim-main.h (STATE_CPU): Delete.
149 2015-04-13 Mike Frysinger <vapier@gentoo.org>
151 * configure: Regenerate.
153 2015-04-06 Mike Frysinger <vapier@gentoo.org>
155 * Makefile.in (SIM_OBJS): Delete sim-engine.o.
157 2015-03-31 Mike Frysinger <vapier@gentoo.org>
159 * config.in, configure: Regenerate.
161 2015-03-29 Mike Frysinger <vapier@gentoo.org>
163 * interp.c (struct aout, LONG, SHORT): Delete.
165 2015-03-29 Mike Frysinger <vapier@gentoo.org>
167 * Makefile.in (SIM_RUN_OBJS, SIM_EXTRA_CFLAGS, SIM_EXTRA_LIBS): Delete.
168 (SIM_OBJS): Change to $(SIM_NEW_COMMON_OBJS).
169 * interp.c: Include sim-main.h, sim-base.h, and sim-options.h.
170 (word, uword): Move to sim-main.h.
171 (callback, sim_kind, myname): Delete.
172 (struct mcore_regset): Move pc to sim_cpu.
173 (memcycles, sim_size): Mark static.
174 (set_initial_gprs): Take a sim_cpu arg. Set pc via CIA_SET.
175 (handle_trap1): Take a SIM_DESC arg. Get callback from it.
176 (process_stub): Take a SIM_DESC arg. Pass it to handle_trap1
177 (util): Take a SIM_DESC arg. Pass it to process_stub.
178 (sim_resume): Get/set pc via CIA_GET/CIA_SET. Pass sd to handle_trap1
180 (sim_trace, sim_stop, sim_load, sim_set_callbacks): Delete.
181 (sim_info): Get callback from SIM_DESC.
182 (free_state): New cleanup function.
183 (sim_open): Rewrite to use new common logic.
184 (sim_create_inferior): Get sim_cpu from sd. Pass to set_initial_gprs
185 and set pc via CIA_SET.
186 * sim-main.h: New file.
188 2015-03-29 Mike Frysinger <vapier@gentoo.org>
190 * configure.ac: Call SIM_AC_OPTION_ENDIAN, SIM_AC_OPTION_ALIGNMENT,
191 SIM_AC_OPTION_HOSTENDIAN, SIM_AC_OPTION_ENVIRONMENT, and
192 SIM_AC_OPTION_INLINE.
193 * config.in, configure: Regenerate.
195 2015-03-29 Mike Frysinger <vapier@gentoo.org>
197 * interp.c (heap_ptr, int_sbrk): Delete.
198 (handle_trap1): Change case 69 (sbrk) to always return -1.
199 (sim_load): Delete bss checks and heap_ptr setup.
201 2015-03-16 Mike Frysinger <vapier@gentoo.org>
203 * interp.c: Strip trailing whitespace.
205 2015-03-16 Mike Frysinger <vapier@gentoo.org>
207 * configure.ac: Call SIM_AC_OPTION_WARNINGS.
208 * confingure: Regenerate.
209 * interp.c (mcore_extract_unsigned_integer): Make static and update
210 prototype. Fix up printf string.
211 (mcore_store_unsigned_integer): Make static and update prototype.
212 (int_sbrk): Likewise.
213 (wbat, wlat, what, rbat, rlat, rhat): Delete INLINE and update
215 (SEXTB, SEXTW, IOMEM): Delete.
216 (sim_size): Update prototype. Fix up printf string.
217 (init_pointers): Update prototype.
218 (set_initial_gprs): Update prototype. Fix up printf string.
219 (log_open, log_close, is_opened, handle_trap1, process_stub, util,
220 iu_carry): Update prototype.
221 (sim_resume): Update prototype. Change addr to a word.
222 (sim_write, sim_read, sim_store_register, sim_fetch_register,
223 sim_trace, sim_stop_reason, sim_stop, sim_info, sim_open,
224 sim_close, sim_load, sim_create_inferior, sim_do_command,
225 sim_set_callbacks): Update prototype.
227 2015-03-16 Mike Frysinger <vapier@gentoo.org>
229 * config.in, configure: Regenerate.
231 2015-03-14 Mike Frysinger <vapier@gentoo.org>
233 * Makefile.in (SIM_EXTRA_CLEAN): Delete.
234 (interp.o, mcore-clean): Delete rules.
236 2015-03-14 Mike Frysinger <vapier@gentoo.org>
238 * Makefile.in (SIM_EXTRA_CFLAGS): Set to
239 -DSIM_USE_DEPRECATED_RUN_FRONTEND.
240 (SIM_RUN_OBJS): Set to run.o.
242 2015-03-14 Mike Frysinger <vapier@gentoo.org>
244 * configure.ac (AC_CHECK_HEADERS): Delete.
245 * aclocal.m4, configure: Regenerate.
247 2015-02-20 Mike Frysinger <vapier@gentoo.org>
249 * interp.c: Delete sysdep.h and netinet/in.h includes.
250 Include stdlib.h and string.h.
253 2015-02-19 Mike Frysinger <vapier@gentoo.org>
255 * interp.c (sim_kill): Delete unused func.
257 2015-02-11 Chen Gang <gang.chen.5i5j@gmail.com>
259 * interp.c: Include "unistd.h".
261 2015-02-02 Chen Gang <gang.chen.5i5j@gmail.com>
263 * interp.c (sim_do_command): Call freeargv() before return.
265 2014-08-19 Alan Modra <amodra@gmail.com>
267 * configure: Regenerate.
269 2014-08-15 Roland McGrath <mcgrathr@google.com>
271 * configure: Regenerate.
272 * config.in: Regenerate.
274 2014-03-10 Mike Frysinger <vapier@gentoo.org>
276 * interp.c (sim_do_command): Add const to cmd.
278 2014-03-05 Mike Frysinger <vapier@gentoo.org>
280 * interp.c (sim_load): Add const to prog.
282 2014-02-17 Mike Frysinger <vapier@gentoo.org>
285 * interp.c (interrupt): Delete.
286 (sim_resume): Delete signal(SIGINT) handling.
288 2013-09-23 Alan Modra <amodra@gmail.com>
290 * configure: Regenerate.
292 2013-06-03 Mike Frysinger <vapier@gentoo.org>
294 * aclocal.m4, configure: Regenerate.
296 2012-06-15 Joel Brobecker <brobecker@adacore.com>
298 * config.in, configure: Regenerate.
300 2012-05-20 Hans-Peter Nilsson <hp@axis.com>
303 * interp.c: Include config.h before system header files.
305 2012-03-24 Mike Frysinger <vapier@gentoo.org>
307 * aclocal.m4, config.in, configure: Regenerate.
309 2011-12-03 Mike Frysinger <vapier@gentoo.org>
311 * aclocal.m4: New file.
312 * configure: Regenerate.
314 2011-10-17 Mike Frysinger <vapier@gentoo.org>
316 * configure.ac: Change include to common/acinclude.m4.
318 2011-10-17 Mike Frysinger <vapier@gentoo.org>
320 * configure.ac: Change AC_PREREQ to 2.64. Delete AC_CONFIG_HEADER
321 call. Replace common.m4 include with SIM_AC_COMMON.
322 * configure: Regenerate.
324 2010-04-14 Mike Frysinger <vapier@gentoo.org>
326 * interp.c (sim_write): Add const to buffer arg.
328 2010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
330 * configure: Regenerate.
332 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
334 * config.in: Regenerate.
335 * configure: Likewise.
337 * configure: Regenerate.
339 2008-07-11 Hans-Peter Nilsson <hp@axis.com>
341 * configure: Regenerate to track ../common/common.m4 changes.
344 2008-06-06 Vladimir Prus <vladimir@codesourcery.com>
345 Daniel Jacobowitz <dan@codesourcery.com>
346 Joseph Myers <joseph@codesourcery.com>
348 * configure: Regenerate.
350 2006-12-21 Hans-Peter Nilsson <hp@axis.com>
352 * config.in: Regenerate.
354 2006-06-13 Richard Earnshaw <rearnsha@arm.com>
356 * configure: Regenerated.
358 2006-06-05 Daniel Jacobowitz <dan@codesourcery.com>
360 * configure: Regenerated.
362 2006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
364 * configure: Regenerated.
366 2005-03-23 Mark Kettenis <kettenis@gnu.org>
368 * configure: Regenerate.
370 2005-01-14 Andrew Cagney <cagney@gnu.org>
372 * configure.ac: Sinclude aclocal.m4 before common.m4. Add
373 explicit call to AC_CONFIG_HEADER.
374 * configure: Regenerate.
376 2005-01-12 Andrew Cagney <cagney@gnu.org>
378 * configure.ac: Update to use ../common/common.m4.
379 * configure: Re-generate.
381 2005-01-11 Andrew Cagney <cagney@localhost.localdomain>
383 * configure: Regenerated to track ../common/aclocal.m4 changes.
385 2005-01-07 Andrew Cagney <cagney@gnu.org>
387 * configure.ac: Rename configure.in, require autoconf 2.59.
388 * configure: Re-generate.
390 2004-12-08 Hans-Peter Nilsson <hp@axis.com>
392 * configure: Regenerate for ../common/aclocal.m4 update.
394 2003-10-11 Alan Modra <amodra@bigpond.net.au>
396 * interp.c (sim_load): Don't refer directly to _cooked_size and vma;
397 Use bfd_section_size and bfd_get_section_vma.
399 2003-02-27 Andrew Cagney <cagney@redhat.com>
401 * interp.c (sim_open, sim_create_inferior): Rename _bfd to bfd.
403 2002-06-16 Andrew Cagney <ac131313@redhat.com>
405 * configure: Regenerated to track ../common/aclocal.m4 changes.
407 2002-06-08 Andrew Cagney <cagney@redhat.com>
409 * interp.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
411 Tue May 23 21:39:23 2000 Andrew Cagney <cagney@b1.cygnus.com>
413 * configure: Regenerated to track ../common/aclocal.m4 changes.
415 2000-02-14 Nick Clifton <nickc@cygnus.com>
417 * interp.c (handle_trap1): Fix handling of fclose system call.
418 Patch submitted by <drew.sarkisian@motorola.com>.
420 2000-02-10 Nick Clifton <nickc@cygnus.com>
422 * interp.c (target_big_endian): New variable.
423 (mcore_extract_unsigned_integer, mcore_store_unsigned_integer,
424 wlat, rlat, sim_resume, sim_load): Add supprot for little
427 2000-01-13 Nick Clifton <nickc@cygnus.com>
429 * interp.c (sim_resume): Do not rely upon host semantics of shift
430 operators to implement M*Core semantics.
432 Thu Sep 2 18:15:53 1999 Andrew Cagney <cagney@b1.cygnus.com>
434 * configure: Regenerated to track ../common/aclocal.m4 changes.
436 1999-06-23 Nick Clifton <nickc@cygnus.com>
438 * sysdep.h: Do not define prototypes for memcpy and strchr if they
441 1999-05-21 Nick Clifton <nickc@cygnus.com>
443 * interp.c (sim_resume): Add more tracing output.
445 1999-05-17 Keith Seitz <keiths@cygnus.com>
447 * interp.c (NUM_MCORE_REGS): Increase by one to allow access to PC.
448 (sim_resume): Correct off by one instruction error when a breakpoint
451 1999-05-08 Felix Lee <flee@cygnus.com>
453 * configure: Regenerated to track ../common/aclocal.m4 changes.
455 1999-05-10 Nick Clifton <nickc@cygnus.com>
457 * interp.c (sim_resume): Record PC in case it is needed for error
458 messages and the original has been corrupted.
460 1999-05-07 Nick Clifton <nickc@cygnus.com>
462 * interp.c (sim_resume): Fix typo 'oze' -> 'doze'.
463 (util): Handle 0x50FF stubs properly.
466 1999-04-29 Nick Clifton <nickc@cygnus.com>
468 * interp.c (set_initial_gprs): Only display memory range if
469 verbose option has been set.
471 1999-04-22 Nick Clifton <nickc@cygnus.com>
473 * interp.c: Add tracing and verbose options.
474 Fixed trap and syscall emulations.
476 1999-04-08 Nick Clifton <nickc@cygnus.com>
478 * interp.c: New file: Simulator for MCore.
479 * sysdep.h: New file: Systems definitions for MCore simulator.
480 * configure.in: New file: Configure script for MCore simulator.
481 * configure: New file: Genreated.
482 * config,in: New file: Config support.
483 * Makefile.in: New file: Meta makefile for MCore simulator.