]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - sim/m32r/ChangeLog
Watchpoint interface.
[thirdparty/binutils-gdb.git] / sim / m32r / ChangeLog
1 Tue May 20 10:18:25 1997 Andrew Cagney <cagney@b1.cygnus.com>
2
3 * sim-if.c (sim_open): Add callback argument.
4 (sim_set_callbacks, sim_callback): Delete.
5 (sim_load): Set STATE_LOADED_P.
6
7 Mon May 19 12:55:42 1997 Andrew Cagney <cagney@b1.cygnus.com>
8
9 * Makefile.in (SIM_OBJS): Link in sim-abort.o as a stub for
10 sim_engine_abort.
11
12 Mon May 5 12:45:28 1997 Andrew Cagney <cagney@b1.cygnus.com>
13
14 * sim-if.c (sim_open): Update to reflect changes to core in
15 ../common/.
16 * mem-ops.h (GETMEMQI, GETMEMHI, GETMEMSI, GETMEMDI, GETMEMUQI,
17 GETMEMUHI, GETMEMUSI, GETMEMUDI, SETMEMQI, SETMEMHI, SETMEMSI,
18 SETMEMDI, SETMEMUQI, SETMEMUHI, SETMEMUSI, SETMEMUDI): Ditto.
19
20 Sat May 3 08:38:55 1997 Doug Evans <dje@seba.cygnus.com>
21
22 * decode.c (decode): Add computed goto support.
23
24 Fri May 2 16:30:26 1997 Andrew Cagney <cagney@b1.cygnus.com>
25
26 * mem-ops.h: Stub additional core read/write arguments.
27
28 * sim-main.h: Declare sim_cia - type SI.
29 (struct _sim_cpu): Move base type to end per common.
30 (struct _sim_state): Ditto.
31
32 Thu May 1 11:15:34 1997 Doug Evans <dje@canuck.cygnus.com>
33
34 Merge from branch into devo. CGEN generic files moved to common
35 directory. K&R C support is no longer provided.
36
37 Thu Apr 24 00:39:51 1997 Doug Evans <dje@canuck.cygnus.com>
38
39 * configure: Regenerated to track ../common/aclocal.m4 changes.
40
41 Sat Apr 12 12:57:33 1997 Felix Lee <flee@yin.cygnus.com>
42
43 * Makefile.in, seman-cache.c: new file, for wingdb build.
44 * sim-alloca.h: fixed for wingdb.
45
46 Mon Apr 7 13:33:29 1997 Doug Evans <dje@seba.cygnus.com>
47
48 * decode.c (*): m32r_cgen_insn_table renamed to ..._entries.
49 * mainloop.in: Use CGEN_INSN_INDEX instead of CGEN_INSN_TYPE.
50 * simdefs.h (INSN_NAME): m32r_cgen_insn_table renamed to ..._entries.
51
52 Fri Apr 4 19:23:12 1997 Doug Evans <dje@canuck.cygnus.com>
53
54 * cgen-utils.in (ex_illegal): Fill in abuf->length, abuf->addr.
55 (exc_illegal): Likewise.
56 * decode.c (decode_vars): Add decode_illegal.
57 * genmloop.sh: #include "cpu-opc.h".
58 * sem-switch.c (case_INSN_ILLEGAL): Declare.
59 (labels): Add case_INSN_ILLEGAL.
60 (SWITCH): Add INSN_ILLEGAL case.
61
62 Wed Mar 26 12:34:00 1997 Doug Evans <dje@canuck.cygnus.com>
63
64 * model.c (model_module): Use 0 not NULL.
65
66 * genmloop.sh (sim_main_loop): Handle k&r c.
67
68 * sem-switch.c: Regenerate to get k&r c support.
69 * semantics.c: Likewise.
70
71 * m32r.c (ADD_{OV,CA}_SI,SUB_{OV,CA}_SI): Renamed to {ADD,SUB}[OC]FSI.
72 (ADDCSI,SUBCSI): New functions.
73 * sem-switch.c (addv,addv3,addx,subv,subx): Fix carry bit handling.
74 * semantics.c (addv,addv3,addx,subv,subx): Fix carry bit handling.
75
76 * simcache.c (simcache_{install,init,uninstall}): Use
77 DECLARE_MODULE_INSTALL_HANDLER.
78 (simcache_option_handler): Use DECLARE_OPTION_HANDLER.
79
80 * utils.c: #include "semops.h".
81
82 Tue Mar 11 14:30:26 1997 Doug Evans <dje@seba.cygnus.com>
83
84 * profile.c (profile_print_simcache): Fix thinko in printf text.
85
86 * simdefs.h (struct argbuf): Add member to fmt_20 so it's not empty.
87
88 Mon Mar 10 11:06:29 1997 Doug Evans <dje@seba.cygnus.com>
89
90 * m32r.c (h_cr_get): Rewrite.
91 (h_cr_set): Rewrite.
92 * sem-switch.c (rte): bcarry renamed to bcond.
93 * semantics.c (rte): Likewise.
94 * simdefs.h (CPU_STATE): Likewise.
95
96 * config.in (HAVE_SYS_TIME_H): Add.
97 * configure.in: Check for sys/time.h.
98 * configure: Regenerated.
99 * utils.c: Include sys/time.h if present.
100
101 * common.c (sim_parse_args): Account for NULL terminating entry
102 in long_options table.
103
104 * genmloop.sh (RUN_FAST_P): Don't run fast if tracing.
105 Always use cache if configured in.
106 * mainloop.in (do_extract_insn{16,32}): New functions.
107 (normal,fast): Call them. Handle starting in left slot.
108 * simcache.c (simcache_option_handler): Disallow -c0.
109 * sem-switch.c (TRACE_RESULT): Redefine so no tracing.
110
111 * profile.c (profile_print_simcache): Fix percentage calc.
112
113 * Makefile.in (INCLUDE_DEPS): Delete simcommon.h.
114
115 Sun Mar 9 20:42:17 1997 Doug Evans <dje@seba.cygnus.com>
116
117 * Makefile.in (COMMON_{PRE,POST}_CONFIG_FRAG): Add delimiters for.
118 (M32R_INCLUDE_DEPS): Use cpu-sim.h instead of m32r-sim.h.
119 Add mod-list.h.
120 (mrun.o): Don't depend on M32R_INCLUDE_DEPS.
121 (sim-if.o,m32r.o,utils.o): Likewise.
122 (common.o): Don't explicitly depend on mod-list.h.
123 (mainloop.c): Pass CPU to genmloop.sh.
124 (stamp-modules): Depend on configure.
125 (decode.o): Depend on decode,h, memops.h, semops.h, cpu-opc.h.
126 (extract.o): Depend on decode.h, memops.h, semops.h.
127 (semantics.o,seman-cache.o): Likewise.
128 (model.o,ops.o): Depend on memops.h.
129 (extr-cache.o): Disable building for the moment.
130
131 * simcommon.h: Delete, move contents into cgen-sim.h.
132 * cgen-sim.h: Don't include ansidecl.h,bfd.h,simfns.h.
133 (UINT,CGEN_CAT3): Define.
134 ({extract,semantic}_fn_t): Renamed to {EXTRACT,SEMANTIC}_FN.
135 (decode_t): Renamed to DECODE.
136
137 * simfns.h: Delete, contents moved to memops.h,semops.h.
138 * memops.h: New file.
139 * semops.h: New file.
140 * decode.h: Renamed from semantics.h.
141
142 * sim-argv.h: New file.
143 * Makefile.in (memory.o,trace.o,profile.o,simcache.o,common): Add
144 dependency of sim-argv.h.
145
146 * sim-alloca.h: New file.
147 * common.c: Include it.
148 * Makefile.in (common.o): Add dependency.
149
150 * config.in (HAVE_TIME_H,HAVE_SYS_RESOURCE_H): Add.
151 (HAVE_GETRUSAGE,HAVE_TIME): Add.
152 * configure.in: sinclude ../common/aclocal.m4.
153 Check for headers time.h, sys/resource.h.
154 Check for functions time, getrusage.
155 (sim_link_{files,links}): Add link cpu-opc.h.
156 (sim_profile): Add simcache.
157 (SIM_AC_PROFILE): Add simcache, profile.o.
158 (simcache module): Delete extr-cache.o for now.
159 (--enable-sim-cache): Allow specification of default cache size.
160 * configure: Regenerated.
161
162 * decode.c: #include cgen-sim.h,memops.h,semops.h,decode.h,
163 cpu-sim.h,cpu-opc.h. Don't include m32r-sim.h.
164 Regenerate.
165
166 * extract.c: #include cgen-sim.h,decode.h,cpu-sim.h.
167 Don't include m32r-sim.h.
168 (*): Define/Undef FLD macro. Use it to reference ARGBUF.
169 Simplify profiling test with PROFILE_MODEL_P.
170 (mvfc,mvtc): Fix access of control registers.
171 * semantic.c: #include cgen-sim.h,memops.h,semops.h,decode.h,cpu-sim.h.
172 Don't include m32r-sim.h.
173 (*): Define/Undef FLD macro. Use it to reference ARGBUF.
174 Simplify profiling test with PROFILE_MODEL_P.
175 (mvfc,mvtc): Fix access of control registers.
176
177 * sem-switch.c: New file, for GCC computed goto support.
178
179 * genmloop.sh: Add #include's of bfd.h,callback.h,cgen-sim.h,
180 memops.h,semops.h,trace.h,cpu-sim.h.
181 (RUN_FAST_P): Change default to run fast if cache size > 0
182 and not profiling.
183 (sim_main_loop): Record execution time.
184 Record instruction count even in fast mode.
185 (init): Allow cpu to provide init code in mainloop.in.
186 (FAST): Define as 0 or 1 depending on fast mode.
187 * mainloop.in (normal): Combine with fast case.
188 Add support for GCC computed gotos. Count simcache hits/misses.
189 (init): Initialize "switch" labels if GNUC.
190
191 * cgen-utils.in: Don't include opcode/cgen.h.
192 Include cgen-sim.h, cpu-opc.h.
193 * common.c: Don't include simcommon.h,mod-list.h. Include cgen-sim.h.
194 * m32r-sim.h: Don't include mod-list.h
195 (RUN_FAST_P): Delete.
196 * m32r.c: Don't include profile.h. #include ansidecl.h,cgen-sim.h,
197 semops.h,memory.h,trace.h
198 (h_cr_get,h_cr_set): New functions.
199 * memory.c: #include cgen-sim.h,callback.h.
200 * ops.c: Don't include profile.h,m32r-sim.h.
201 Include cgen-sim.h,memops.h,cpu-sim.h.
202 (MEMOPS_DEFINE_INLINE): Renamed from SIMFNS_DEFINE_INLINE.
203 * trace.c: Include cgen-sim.h,cpu-opc.h.
204 * trace.h (trace_insn_{init,fini}): Declare.
205
206 * model.c: Don't include signal.h,stdlib.h,m32r-sim.h.
207 Include cgen-sim.h,cpu-sim.h,cpu-opc.h.
208 Regenerate to get new insn aliases.
209
210 * mrun.c: #include "ansidecl.h".
211 (STATE): Use struct sim_state instead.
212
213 * profile.c: Surround #include <stdlib.h> with HAVE_STDLIB_H.
214 Don't include simcommon.h. Include cgen-sim.h,cpu-opc.h.
215 (PROFILE_{READ,WRITE}_MASK): Replace with PROFILE_MEMORY_MASK.
216 (profile_print_simcache): New function.
217 (profile_print): Call it. Print simulator speed stats.
218 * profile.h (PROFILE_{READ,WRITE}_MASK): Replace with
219 PROFILE_MEMORY_MASK.
220 (MODULE_PROFILE_SIMCACHE_P): Define.
221 (PROFILE_SIMCACHE_MASK): Define.
222 (PROFILE_COUNT): New members total_insn_count,exec_time.
223 New members simcache_hits,simcache_misses.
224 (PROFILE_SIMCACHE_{HITS,MISSES}): Define.
225 (PROFILE_MODEL_P): New macro.
226 (PROFILE_COUNT_SIMCACHE_{HIT,MISS}): New macros.
227
228 * sim-if.c: Surround #include <stdlib.h> with HAVE_STDLIB_H.
229 Don't include simcommon.h,m32r-sim.h. Include cgen-sim.h,cpu-sim.h.
230 (sim_resume): Use USING_SIMCACHE_P instead of RUN_FAST_P.
231 (sim_info): Pass verbose to profile_print.
232
233 * simcache.c: Include cgen-sim.h,callback.h.
234 (USING_SIMCACHE_P): Replace with SIMCACHE_P.
235 (simcache_option_handler): Ensure cache size at least 2.
236 Allow config time specification of default cache size.
237 * simcache.h (struct simcache): Support GCC computed gotos.
238 (SIMCACHE_DEFAULT_CACHE_SIZE): USe CONFIG_SIM_CACHE_SIZE if defined.
239 (USING_SIMCACHE_P): New macro.
240
241 * simdefs.h: Don't include m32r-opc.h.
242 (CGEN_MAX_SIM_INSNS): Define.
243 (CPU_STATE): Regenerate.
244 (ARGBUF): Regenerate.
245 (extract,semantic handler decls): Delete, moved to decode.h.
246
247 * tconfig.in: Don't include cgen-sim.h,m32r-sim.h.
248 (USE_SEM_SWITCH): Define.
249
250 * utils.c: Include bfd.h,time.h,sys/resource.h.
251 (sim_time_get,sim_time_elapsed): New functions.
252 * cgen-sim.h (SIM_TIME,sim_time_get,sim_time_elapsed): Declare.
253
254 Fri Jan 31 20:25:06 1997 Doug Evans <dje@canuck.cygnus.com>
255
256 * configure.in (AC_CHECK_HEADERS): Handle i386-windows.
257 * configure: Regenerated.
258 * model.c: #include <stdlib.h>.
259 * simcache.c: #include "libiberty.h".
260 * simcommon.h (alloca): Handle i386-windows.
261
262 * common.c: #include libiberty.h.
263 (sim_signal_to_host): Return 5 if wingdb.
264
265 Mon Jan 27 15:22:49 1997 Doug Evans <dje@seba.cygnus.com>
266
267 * configure.in (sim_cache): Enabled by default now, pass default
268 cache size to --enable-sim-cache.
269 * simcache.c (simcache_option_handler): Allow -c 0.
270
271 * simdefs.h,simfns.h: Regenerate
272 * decode.c,extract.c,model.c,ops.c,semantics.c: Regenerate.
273
274 Tue Jan 21 16:21:01 1997 Doug Evans <dje@seba.cygnus.com>
275
276 Add model profiling support.
277 * configure.in: Handle --enable-sim-model.
278 (sim_profile): Add model.
279 * Makefile.in (model.o): Add rule.
280 * cgen-sim.h (UNIT,INSN_TIMING,MACH,MODEL): New types.
281 * extract.c (*): Add model profiling support.
282 * m32r.c (model_mark_{get,set}_h_gr): New functions.
283 (model_mark_{busy,unbusy}_reg): New functions.
284 * profile.c (profile_option_handler): Recognize --profile model.
285 (profile_print_model): New function.
286 (profile_print): Call it.
287 * profile.h (MODULE_profile_model,MODULE_PROFILE_MODEL_P): Define.
288 (PROFILE_MODEL_MASK,PROFILE_LABEL_WIDTH): Define.
289 (PROFILE_COUNT): New members cycle_count,cti_stall_count,
290 load_stall_count,taken_count,untaken_count.
291 * semantics.c (*): Add model profiling support.
292 * simcommon.h (struct sim_state): New members mach,model.
293 * simdefs.h (CPU_PROFILE,MODEL_TYPE,UNIT_TYPE): New type.
294 (MAX_MODELS,MAX_UNITS): Define.
295 * tconfig.in (STATE_EXTRA_MEMBERS): Add cpu_profile.
296
297 * Makefile.in (INCLUDE_DEPS): Add $(SIM_MODULES_HDRS).
298 (stamp-modules): Depend on genmodlist.sh.
299 * common.c (standard_options): Add --max-insns.
300 (copy_argv): New function.
301 * tconfig.in (SIM_HAVE_MAX_INSNS): Define.
302 * genmloop.sh: Allow mainloop.in to contain support code.
303 * mainloop.in: Move do_insn16,do_insn32 here.
304 * m32r.c (do_trap): Handle SYS_argvlen,SYS_argv,SYS_read.
305 * sim-if.c (sim_open): Don't set max insn count.
306 (sim_create_inferior): Save argv,envp.
307 * simcommon.h (struct sim_state): New members argv,envp.
308 * simdefs.h ([GS]ETTWI,[GS]ETTUWI,[GS]ETTAI): Define.
309 ([GS]ETMEMWI,[GS]ETMEMUWI,[GS]ETMEMAI): Define.
310 (ARGBUF): New members h_gr_get, h_gr_set.
311 * trace.c (trace_insn_init,trace_insn_fini): New functions.
312 (trace_printf): Print to buffer, output later by trace_insn_fini.
313 * trace.h (TRACE_INSN_{INIT,FINI}): Define.
314
315 Thu Dec 19 16:01:59 1996 Doug Evans <dje@canuck.cygnus.com>
316
317 * configure.in (AC_FUNC_ALLOCA): Call.
318 * configure: Regenerate.
319 * config.h (HAVE_ALLOCA_H): Add.
320 * simcommon.h: Add alloca support.
321 (DECLARE_MODULE_INSTALL_HANDLER): Define.
322 (DECLARE_OPTION_HANDLER): Define.
323 (MEM_FN): Declare using PARAMS.
324 (DECLARE_MEM_FN): Define.
325 * trace.c (trace_result): Tweak for !STDC.
326 * cgen-sim.h (UDI_FN_SUPPORT): Define if ! HAVE_LONGLONG.
327 * cgen-utils.in (disasm_sprintf): Fix va_arg call in !STDC case.
328 * common.c (sim_print_help_fn): Use PARAMS.
329 (standard_option_handler): Fix decl for !STDC systems.
330 * memory.c: #include <stdio.h>
331 (mem_flat_{install,init,uninstall}): Fix decl for !STDC systems.
332 (mem_flat_{read,write},mem_flat_option_handler): Likewise.
333 * profile.c (profile_install): Likewise.
334 (profile_option_handler): Likewise.
335
336 Thu Dec 19 11:06:19 1996 Doug Evans <dje@seba.cygnus.com>
337
338 * semantics.c (*): Don't suffix big unsigned numbers with "U".
339 Prefix them with 0x instead.
340
341 * cgen-sim.h (DI_FN_SUPPORT): Define if ! HAVE_LONGLONG.
342 (SLADI,SRADI,CONVSIDI,CONVDISI): Delete, moved to simfns.h.
343 * semantics.c (machi,maclo,macwhi,macwlo,mulhi,mullo): Implement.
344 (mulwhi,mulwlo,mvtachi,mvtaclo,rac,rach): Implement.
345 * simfns.h: Add decls for functional DI,UDI,SF,DF,XF,TF support.
346 Add support for boolean and/or.
347 * utils.c: Redo naming of DI functional support.
348 (ANDDI,ORDI,ADDDI,MULDI,GEDI,LEDI,CONVHIDI): New functions.
349
350 Tue Dec 17 12:57:48 1996 Doug Evans <dje@seba.cygnus.com>
351
352 * Directory created.