3 * sim-main.h (SIM_CPU): Delete.
7 * sim-main.h (sim_cia): Delete.
11 * interp.c (set_initial_gprs): Change CIA_SET to CPU_PC_SET.
12 (sim_resume): Change CIA_GET to CPU_PC_GET and CIA_SET to
14 (sim_create_inferior): Change CIA_SET to CPU_PC_SET.
15 * sim-main.h (CIA_GET, CIA_SET): Delete.
19 * interp.c (mcore_pc_get, mcore_pc_set): New functions.
20 (sim_open): Call CPU_PC_FETCH & CPU_PC_STORE for all cpus.
24 * Makefile.in (SIM_OBJS): Delete sim-cpu.o.
25 * sim-main.h (STATE_CPU): Delete.
29 * configure: Regenerate.
33 * Makefile.in (SIM_OBJS): Delete sim-engine.o.
37 * config.in, configure: Regenerate.
41 * interp.c (struct aout, LONG, SHORT): Delete.
45 * Makefile.in (SIM_RUN_OBJS, SIM_EXTRA_CFLAGS, SIM_EXTRA_LIBS): Delete.
46 (SIM_OBJS): Change to $(SIM_NEW_COMMON_OBJS).
47 * interp.c: Include sim-main.h, sim-base.h, and sim-options.h.
48 (word, uword): Move to sim-main.h.
49 (callback, sim_kind, myname): Delete.
50 (struct mcore_regset): Move pc to sim_cpu.
51 (memcycles, sim_size): Mark static.
52 (set_initial_gprs): Take a sim_cpu arg. Set pc via CIA_SET.
53 (handle_trap1): Take a SIM_DESC arg. Get callback from it.
54 (process_stub): Take a SIM_DESC arg. Pass it to handle_trap1
55 (util): Take a SIM_DESC arg. Pass it to process_stub.
56 (sim_resume): Get/set pc via CIA_GET/CIA_SET. Pass sd to handle_trap1
58 (sim_trace, sim_stop, sim_load, sim_set_callbacks): Delete.
59 (sim_info): Get callback from SIM_DESC.
60 (free_state): New cleanup function.
61 (sim_open): Rewrite to use new common logic.
62 (sim_create_inferior): Get sim_cpu from sd. Pass to set_initial_gprs
63 and set pc via CIA_SET.
64 * sim-main.h: New file.
68 * configure.ac: Call SIM_AC_OPTION_ENDIAN, SIM_AC_OPTION_ALIGNMENT,
69 SIM_AC_OPTION_HOSTENDIAN, SIM_AC_OPTION_ENVIRONMENT, and
71 * config.in, configure: Regenerate.
75 * interp.c (heap_ptr, int_sbrk): Delete.
76 (handle_trap1): Change case 69 (sbrk) to always return -1.
77 (sim_load): Delete bss checks and heap_ptr setup.
81 * interp.c: Strip trailing whitespace.
85 * configure.ac: Call SIM_AC_OPTION_WARNINGS.
86 * confingure: Regenerate.
87 * interp.c (mcore_extract_unsigned_integer): Make static and update
88 prototype. Fix up printf string.
89 (mcore_store_unsigned_integer): Make static and update prototype.
91 (wbat, wlat, what, rbat, rlat, rhat): Delete INLINE and update
93 (SEXTB, SEXTW, IOMEM): Delete.
94 (sim_size): Update prototype. Fix up printf string.
95 (init_pointers): Update prototype.
96 (set_initial_gprs): Update prototype. Fix up printf string.
97 (log_open, log_close, is_opened, handle_trap1, process_stub, util,
98 iu_carry): Update prototype.
99 (sim_resume): Update prototype. Change addr to a word.
100 (sim_write, sim_read, sim_store_register, sim_fetch_register,
101 sim_trace, sim_stop_reason, sim_stop, sim_info, sim_open,
102 sim_close, sim_load, sim_create_inferior, sim_do_command,
103 sim_set_callbacks): Update prototype.
107 * config.in, configure: Regenerate.
111 * Makefile.in (SIM_EXTRA_CLEAN): Delete.
112 (interp.o, mcore-clean): Delete rules.
116 * Makefile.in (SIM_EXTRA_CFLAGS): Set to
117 -DSIM_USE_DEPRECATED_RUN_FRONTEND.
118 (SIM_RUN_OBJS): Set to run.o.
122 * configure.ac (AC_CHECK_HEADERS): Delete.
123 * aclocal.m4, configure: Regenerate.
127 * interp.c: Delete sysdep.h and netinet/in.h includes.
128 Include stdlib.h and string.h.
133 * interp.c (sim_kill): Delete unused func.
137 * interp.c: Include "unistd.h".
141 * interp.c (sim_do_command): Call freeargv() before return.
145 * configure: Regenerate.
149 * configure: Regenerate.
150 * config.in: Regenerate.
154 * interp.c (sim_do_command): Add const to cmd.
158 * interp.c (sim_load): Add const to prog.
163 * interp.c (interrupt): Delete.
164 (sim_resume): Delete signal(SIGINT) handling.
168 * configure: Regenerate.
172 * aclocal.m4, configure: Regenerate.
176 * config.in, configure: Regenerate.
181 * interp.c: Include config.h before system header files.
185 * aclocal.m4, config.in, configure: Regenerate.
189 * aclocal.m4: New file.
190 * configure: Regenerate.
194 * configure.ac: Change include to common/acinclude.m4.
198 * configure.ac: Change AC_PREREQ to 2.64. Delete AC_CONFIG_HEADER
199 call. Replace common.m4 include with SIM_AC_COMMON.
200 * configure: Regenerate.
204 * interp.c (sim_write): Add const to buffer arg.
208 * configure: Regenerate.
212 * config.in: Regenerate.
213 * configure: Likewise.
215 * configure: Regenerate.
219 * configure: Regenerate to track ../common/common.m4 changes.
226 * configure: Regenerate.
230 * config.in: Regenerate.
234 * configure: Regenerated.
238 * configure: Regenerated.
242 * configure: Regenerated.
246 * configure: Regenerate.
250 * configure.ac: Sinclude aclocal.m4 before common.m4. Add
251 explicit call to AC_CONFIG_HEADER.
252 * configure: Regenerate.
256 * configure.ac: Update to use ../common/common.m4.
257 * configure: Re-generate.
261 * configure: Regenerated to track ../common/aclocal.m4 changes.
265 * configure.ac: Rename configure.in, require autoconf 2.59.
266 * configure: Re-generate.
270 * configure: Regenerate for ../common/aclocal.m4 update.
274 * interp.c (sim_load): Don't refer directly to _cooked_size and vma;
275 Use bfd_section_size and bfd_get_section_vma.
279 * interp.c (sim_open, sim_create_inferior): Rename _bfd to bfd.
283 * configure: Regenerated to track ../common/aclocal.m4 changes.
287 * interp.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
291 * configure: Regenerated to track ../common/aclocal.m4 changes.
295 * interp.c (handle_trap1): Fix handling of fclose system call.
300 * interp.c (target_big_endian): New variable.
301 (mcore_extract_unsigned_integer, mcore_store_unsigned_integer,
302 wlat, rlat, sim_resume, sim_load): Add supprot for little
307 * interp.c (sim_resume): Do not rely upon host semantics of shift
308 operators to implement M*Core semantics.
312 * configure: Regenerated to track ../common/aclocal.m4 changes.
316 * sysdep.h: Do not define prototypes for memcpy and strchr if they
321 * interp.c (sim_resume): Add more tracing output.
325 * interp.c (NUM_MCORE_REGS): Increase by one to allow access to PC.
326 (sim_resume): Correct off by one instruction error when a breakpoint
331 * configure: Regenerated to track ../common/aclocal.m4 changes.
335 * interp.c (sim_resume): Record PC in case it is needed for error
336 messages and the original has been corrupted.
340 * interp.c (sim_resume): Fix typo 'oze' -> 'doze'.
341 (util): Handle 0x50FF stubs properly.
346 * interp.c (set_initial_gprs): Only display memory range if
347 verbose option has been set.
351 * interp.c: Add tracing and verbose options.
352 Fixed trap and syscall emulations.
356 * interp.c: New file: Simulator for MCore.
357 * sysdep.h: New file: Systems definitions for MCore simulator.
358 * configure.in: New file: Configure script for MCore simulator.
359 * configure: New file: Genreated.
360 * config,in: New file: Config support.
361 * Makefile.in: New file: Meta makefile for MCore simulator.