]>
Commit | Line | Data |
---|---|---|
2e723678 DE |
1 | start-sanitize-m32rx |
2 | Fri Feb 27 10:14:29 1998 Doug Evans <devans@canuck.cygnus.com> | |
3 | ||
4 | * mloopx.in: Fix handling of branch in parallel with another insn. | |
5 | * semx.c: Regenerate. | |
6 | ||
7 | end-sanitize-m32rx | |
02310b01 DE |
8 | Mon Feb 23 13:30:46 1998 Doug Evans <devans@seba.cygnus.com> |
9 | ||
10 | * sim-main.h: #include symcat.h. | |
11 | * m32r-sim.h (BRANCH_NEW_PC): Delete current_cpu arg. | |
12 | (NEW_PC_{BASE,SKIP,2,4,BRANCH_P}): New macros. | |
13 | * cpu.[ch],decode.[ch],extract.c,model.c: Regenerate. | |
14 | * sem.c,sem-switch.c: Regenerate. | |
15 | start-sanitize-m32rx | |
16 | * m32r-sim.h (SEM_NEXT_PC): Modify to handle parallel exec. | |
17 | * mloopx.in: Rewrite. | |
18 | * cpux.[ch],decodex.[ch],readx.c,semx.c: Regenerate. | |
19 | end-sanitize-m32rx | |
20 | ||
677c3439 NC |
21 | Mon Feb 23 12:27:52 1998 Nick Clifton <nickc@cygnus.com> |
22 | ||
23 | * m32r.c (m32r_h_cr_set, m32r_h_cr_get): Shadow control register 6 | |
24 | in the backup PC register. | |
25 | start-sanitize-m32rx | |
26 | * m32rx.c (m32r_h_cr_set, m32r_h_cr_get): Shadow control register 6 | |
27 | in the backup PC register. | |
28 | end-sanitize-m32rx | |
02310b01 | 29 | |
cab58155 DE |
30 | Thu Feb 19 16:39:35 1998 Doug Evans <devans@canuck.cygnus.com> |
31 | ||
32 | * m32r.c (do_lock,do_unlock): Delete. | |
33 | * cpu.[ch],decode.[ch],extract.c,model.c: Regenerate. | |
34 | * sem.c,sem-switch.c: Regenerate. | |
35 | start-sanitize-m32rx | |
36 | * cpux.[ch],decodex.[ch],readx.c,semx.c: Regenerate. | |
37 | end-sanitize-m32rx | |
38 | ||
39 | Tue Feb 17 18:18:10 1998 Doug Evans <devans@seba.cygnus.com> | |
40 | ||
41 | * Makefile.in (M32R_OBJS): Add cpu.o. | |
42 | (cpu.o): Add rule for. | |
43 | (NL_TARGET): Define. | |
44 | * configure.in: Add AC_CHECK_PROG(SCHEME). | |
45 | * cpu.c: New file. | |
46 | * cpuall.h,cpu.h,decode.c,decode.h,extract.c,model.c: Regenerate. | |
47 | * sem-switch.c,sem.c: Regenerate. | |
48 | * mloop.in (execute): Update call to semantic fn. | |
49 | start-sanitize-m32rx | |
50 | (M32RX_OBJS): Add cpux.o. | |
51 | (cpux.o): Add rule for. | |
52 | cpux.c: New file. | |
53 | * cpux.h,decodex.c,decodex.h,modelx.c,readx.c,semx.c: Regenerate. | |
54 | * m32rx.c (m32rx_h_accums_{get,set}): Rewrite. | |
55 | (m32rx_h_cr_{get,set}): New functions. | |
56 | (m32rx_h_accums_{get,set}): New functions. | |
57 | * mloopx.in: Rewrite main loop. | |
58 | end-sanitize-m32rx | |
59 | ||
60 | * m32r.c (do_trap): Move from here. | |
61 | * sim-if.c (do_trap): To here, and rewrite to use CB_SYSCALL support. | |
62 | (sim_create_inferior): Use h_pc_set. | |
63 | (h_pc_{get,set}): New functions. | |
64 | (h_gr_{get,set}): New functions. | |
65 | (syscall_{read,write}_mem): New functions. | |
66 | * sim-main.h (h_{gr,pc}_{get,set}): Declare. | |
67 | ||
fbb8b6b9 AC |
68 | Tue Feb 17 12:44:38 1998 Andrew Cagney <cagney@b1.cygnus.com> |
69 | ||
70 | * sim-if.c (sim_store_register, sim_fetch_register): Pass in | |
71 | length parameter. Return -1. | |
72 | (sim_create_inferior): Pass 4 sim_store_register. | |
73 | ||
02e565a2 DE |
74 | Wed Feb 11 19:53:48 1998 Doug Evans <devans@canuck.cygnus.com> |
75 | ||
76 | * sim-main.h (CIA_GET,CIA_SET): Provide dummy definitions for now. | |
e0bd6e18 DE |
77 | |
78 | * decode.c, decode.h, sem.c, sem-switch.c, model.c: Regenerate. | |
79 | start-sanitize-m32rx | |
80 | * cpux.c, decodex.c, decodex.h, readx.c, semx.c, modelx.c: Regenerate. | |
81 | end-sanitize-m32rx | |
82 | ||
83 | Mon Feb 9 19:41:54 1998 Doug Evans <devans@canuck.cygnus.com> | |
84 | ||
85 | * decode.c, sem.c: Regenerate. | |
86 | start-sanitize-m32rx | |
87 | * cpux.h, decodex.c, readx.c, semx.c: Regenerate. | |
88 | * m32rx.c (m32rx_h_accums_set): New function. | |
89 | (m32rx_model_mark_[gs]et_h_gr): New function. | |
90 | * mloopx.in: Rewrite. | |
91 | * Makefile.in (mloopx.o): Build with -parallel. | |
92 | * sim-main.h (_sim_cpu): Delete member `par_exec'. | |
93 | * tconfig.in (WITH_SEM_SWITCH_FULL): Define as 0 for m32rx. | |
94 | end-sanitize-m32rx | |
95 | ||
b8a9943d DE |
96 | Thu Feb 5 12:44:31 1998 Doug Evans <devans@seba.cygnus.com> |
97 | ||
98 | * Makefile.in (m32r.o): Depend on cpu.h | |
99 | (extract.o): Pass -DSCACHE_P. | |
100 | * mloop.in (extract{16,32}): Update call to m32r_decode. | |
101 | * arch.h,cpu.h,cpuall.h,decode.[ch]: Regenerate. | |
102 | * extract.c,model.c,sem-switch.c,sem.c: Regenerate. | |
103 | * sim-main.h: #include "ansidecl.h". | |
104 | Don't include cpu-opc.h, done by arch.h. | |
105 | start-sanitize-m32rx | |
106 | * Makefile.in (M32RX_OBJS): Build m32rx support now. | |
107 | (m32rx.o): New rule. | |
108 | * m32r-sim.h (m32rx_h_cr_[gs]et): Define. | |
109 | * m32rx.c (m32rx_{fetch,store}_register): Update {get,set} of PC. | |
110 | (m32rx_h_accums_get): New function. | |
111 | * mloopx.in: Update call to m32rx_decode. Rewrite exec loop. | |
112 | * cpux.h,decodex.[ch],modelx.c,readx.c,semx.c: Regenerate. | |
113 | end-sanitize-m32rx | |
114 | ||
115 | Sun Feb 1 16:47:51 1998 Andrew Cagney <cagney@b1.cygnus.com> | |
116 | ||
117 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
118 | ||
412c4e94 AC |
119 | Sat Jan 31 18:15:41 1998 Andrew Cagney <cagney@b1.cygnus.com> |
120 | ||
121 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
122 | ||
d0340027 DE |
123 | start-sanitize-m32rx |
124 | Thu Jan 29 11:22:00 1998 Doug Evans <devans@canuck.cygnus.com> | |
125 | ||
126 | * Makefile.in (M32RX_OBJS): Comment out until m32rx port working. | |
127 | * arch.h (HAVE_CPU_M32R{,X}): Delete, moved to m32r-opc.h. | |
128 | * arch.c (machs): Check ifdef HAVE_CPU_FOO for each entry. | |
129 | ||
130 | end-sanitize-m32rx | |
34a3df1d NC |
131 | Tue Jan 20 14:16:02 1998 Nick Clifton <nickc@cygnus.com> |
132 | ||
133 | * cpux.h: Fix duplicate definition of h_accums field for | |
134 | fmt_53_sadd structure. | |
135 | ||
d0340027 | 136 | start-sanitize-m32rx |
8e420152 DE |
137 | Tue Jan 20 01:42:17 1998 Doug Evans <devans@seba.cygnus.com> |
138 | ||
8e420152 DE |
139 | * Makefile.in: Add m32rx objs, and rules to build them. |
140 | * cpux.h, decodex.h, decodex.c, readx.c, semx.c, modelx.c: New files. | |
141 | * m32rx.c, mloopx.in: New files. | |
8e420152 | 142 | |
d0340027 | 143 | end-sanitize-m32rx |
462cfbc4 DE |
144 | Mon Jan 19 22:26:29 1998 Doug Evans <devans@seba> |
145 | ||
146 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
147 | ||
369fba30 DE |
148 | Mon Jan 19 14:13:40 1998 Doug Evans <devans@seba.cygnus.com> |
149 | ||
150 | * arch.c, arch.h, cpuall.h: New files. | |
151 | * arch-defs.h: Deleted. | |
152 | * mloop.in: Renamed from mainloop.in. | |
153 | * Makefile.in: Update. | |
154 | * sem-ops.h: Deleted. | |
155 | * mem-ops.h: Deleted. | |
156 | start-sanitize-cygnus | |
157 | Add cgen support for generating files. | |
158 | end-sanitize-cygnus | |
159 | (arch): Renamed from CPU. | |
47d57be1 | 160 | * cpu.h: New file. |
369fba30 DE |
161 | * decode.c: Redone. |
162 | * decode.h: Redone. | |
163 | * extract.c: Redone. | |
164 | * model.c: Redone. | |
165 | * sem-switch.c: Redone. | |
166 | * sem.c: Renamed from semantics.c, and redone. | |
167 | * m32r-sim.h (PROFILE_COUNT_FILLNOPS): Update. | |
168 | (GETTWI,SETTWI,BRANCH_NEW_PC): Define. | |
169 | * m32r.c (WANT_CPU,WANT_CPU_M32R): Define. | |
170 | (m32r_{fetch,store}_register): New functions. | |
171 | (model_mark_{get,set}_h_gr): Prefix with m32r_. | |
172 | (m32r_model_mark_{busy,unbusy}_reg): Prefix with m32r_. | |
173 | (h_cr_{get,set}): Prefix with m32r_. | |
174 | (do_trap): Fetch state from current_cpu, not current_state. | |
175 | Call sim_engine_halt instead of engine_halt. | |
176 | * sim-if.c (alloc_cpu): New function. | |
177 | (free_state): New function. | |
178 | (sim_open): Call sim_state_alloc, and malloc space for selected cpu | |
179 | type. Call sim_analyze_program. | |
180 | (sim_create_inferior): Handle selected cpu type when setting PC. | |
181 | start-sanitize-m32rx | |
182 | (sim_resume): Handle m32rx. | |
183 | end-sanitize-m32rx | |
184 | (sim_stop_reason): Deleted. | |
185 | (print_m32r_misc_cpu): Update. | |
186 | start-sanitize-m32rx | |
187 | (sim_{fetch,store}_register): Handle m32rx. | |
188 | end-sanitize-m32rx | |
189 | (sim_{read,write}): Deleted. | |
190 | (sim_engine_illegal_insn): New function. | |
191 | * sim-main.h: Don't include arch-defs.h,sim-core.h,sim-events.h. | |
192 | Include arch.h,cpuall.h. Include cpu.h,decode.h if m32r. | |
193 | start-sanitize-m32rx | |
194 | Include cpux.h,decodex.h if m32rx. | |
195 | end-sanitize-m32rx | |
196 | (_sim_cpu): Include member appropriate cpu_data member for the cpu. | |
197 | (M32R_MISC_PROFILE): Renamed from M32R_PROFILE. | |
198 | (sim_state): Delete members core,events,halt_jmp_buf. | |
199 | Change `cpu' member to be a pointer to the cpu's struct, rather than | |
200 | record inside the state struct. | |
201 | * tconfig.in (WITH_DEVICES): Define here. | |
202 | (WITH_FAST,WITH_SEM_SWITCH_{FULL,FAST}): Define for the cpu. | |
203 | ||
ea9cac8a NC |
204 | Fri Jan 16 12:16:56 1998 Nick Clifton <nickc@cygnus.com> |
205 | ||
206 | * arch-defs.h (INSN_NAME): Fix typo. | |
207 | ||
208 | Mon Dec 15 23:17:11 1997 Andrew Cagney <cagney@b1.cygnus.com> | |
209 | ||
210 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
211 | * config.in: Ditto. | |
212 | ||
6e51f990 DE |
213 | Thu Dec 4 09:21:05 1997 Doug Evans <devans@canuck.cygnus.com> |
214 | ||
62381069 DE |
215 | * m32r-sim.h (MSPR_ADDR): New macro. |
216 | (m32r_mspr_device): Declare. | |
ea9cac8a | 217 | (struct _device): Define. |
62381069 DE |
218 | * m32r.c (m32r_mspr_device): New global. |
219 | (device_{io_{read,write}_buffer,error}): New functions. | |
220 | * mem-ops.h (SETMEM*): Use sim_core_write_map, not read map. | |
221 | * sim-if.c: Delete redundant inclusion of cpu-sim.h. | |
222 | (sim_open): Attach device to handle MSPR register. | |
223 | * sim-main.h (WITH_DEVICES): Define as 1. | |
224 | Include cpu-sim.h. | |
225 | ||
6e51f990 DE |
226 | * configure: Regenerated to track ../common/aclocal.m4 changes. |
227 | ||
bbb9b83c DE |
228 | Wed Dec 3 18:08:44 1997 Doug Evans <devans@canuck.cygnus.com> |
229 | ||
230 | * configure.in (SIM_AC_OPTION_ENVIRONMENT): Call. | |
231 | * configure: Regenerated. | |
232 | ||
233 | Wed Nov 19 12:17:08 1997 Doug Evans <devans@canuck.cygnus.com> | |
234 | ||
235 | * mem-ops.h: Rename SIM_SIG{ACCESS,ALIGN} to SIM_SIG{SEGV,BUS}. | |
236 | * sim-if.c (sim_open): Call sim_config. | |
237 | (sim_stop_reason): Update call to sim_signal_to_host. | |
238 | ||
590fc166 DE |
239 | Tue Nov 18 15:33:48 1997 Doug Evans <devans@canuck.cygnus.com> |
240 | ||
241 | * Makefile.in (SIM_OBJS): Use $(SIM_NEW_COMMON_OBJS). | |
242 | ||
243 | Fri Oct 31 18:46:46 1997 Andrew Cagney <cagney@b1.cygnus.com> | |
244 | ||
245 | * sim-if.c (sim_open): Delete dead call to sim_core_attach. | |
246 | ||
084219a5 DE |
247 | Mon Oct 27 12:43:54 1997 Doug Evans <devans@canuck.cygnus.com> |
248 | ||
249 | * sem-ops.h (U{DIV,MOD}[BHSD]I): Use unsigned division. | |
250 | ||
251 | Fri Oct 3 09:28:00 1997 Andrew Cagney <cagney@b1.cygnus.com> | |
252 | ||
253 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
254 | ||
255 | Wed Sep 24 17:38:57 1997 Andrew Cagney <cagney@b1.cygnus.com> | |
256 | ||
257 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
258 | ||
92f91d1f AC |
259 | Tue Sep 23 11:04:38 1997 Andrew Cagney <cagney@b1.cygnus.com> |
260 | ||
261 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
262 | ||
263 | Tue Sep 23 10:19:51 1997 Andrew Cagney <cagney@b1.cygnus.com> | |
264 | ||
265 | * Makefile.in (SIM_ENDIAN, SIM_HOSTENDIAN, SIM_SCACHE, | |
266 | SIM_DEFAULT_MODEL): Delete, moved to common. | |
267 | (SIM_EXTRA_CFLAGS): Update. | |
268 | ||
794e9ac9 AC |
269 | Mon Sep 22 11:46:20 1997 Andrew Cagney <cagney@b1.cygnus.com> |
270 | ||
76a6247f AC |
271 | * configure.in (sim_link_links): Configure non-strict memory |
272 | alignment. | |
273 | ||
794e9ac9 AC |
274 | * configure: Regenerated to track ../common/aclocal.m4 changes. |
275 | ||
b45caf05 AC |
276 | Fri Sep 19 17:45:25 1997 Andrew Cagney <cagney@b1.cygnus.com> |
277 | ||
278 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
279 | ||
280 | Wed Sep 17 17:44:40 1997 Andrew Cagney <cagney@b1.cygnus.com> | |
281 | ||
282 | * sim-if.c (sim_open): Allocate memory under sim-memopt module | |
283 | using sim_do_commandf. | |
284 | (sim_open): Set magic-number at the start. | |
285 | (sim_do_command): Implement. | |
286 | ||
287 | * sim-main.h (sim_engine_halt): Map onto engine_halt. | |
288 | ||
a2ab5e65 AC |
289 | Mon Sep 15 17:36:15 1997 Andrew Cagney <cagney@b1.cygnus.com> |
290 | ||
291 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
292 | ||
6fea4763 DE |
293 | Thu Sep 4 17:21:23 1997 Doug Evans <dje@seba> |
294 | ||
295 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
296 | ||
30efae3a AC |
297 | Fri Sep 5 10:21:48 1997 Andrew Cagney <cagney@b1.cygnus.com> |
298 | ||
299 | * Makefile.in (SIM_OBJS): Add sim-memopt.o module. | |
300 | ||
a34abff8 AC |
301 | Thu Sep 4 10:30:02 1997 Andrew Cagney <cagney@b1.cygnus.com> |
302 | ||
303 | * sim-if.c (sim_open): Pass zero modulo arg to sim_core_attach. | |
304 | ||
88117054 AC |
305 | Wed Aug 27 18:13:22 1997 Andrew Cagney <cagney@b1.cygnus.com> |
306 | ||
307 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
308 | * config.in: Ditto. | |
309 | ||
7230ff0f AC |
310 | Tue Aug 26 10:39:42 1997 Andrew Cagney <cagney@b1.cygnus.com> |
311 | ||
312 | * sim-if.c (sim_kill): Delete. | |
fafce69a AC |
313 | (sim_create_inferior): Add ABFD argument. |
314 | (sim_load): Move setting of PC from here. | |
315 | (sim_create_inferior): To here. | |
316 | (sim_load): Delete, use sim-hload.c instead. | |
317 | ||
318 | * Makefile.in (SIM_OBJS): Add sim-hload.o module. | |
7230ff0f | 319 | |
247fccde AC |
320 | Mon Aug 25 17:50:22 1997 Andrew Cagney <cagney@b1.cygnus.com> |
321 | ||
322 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
323 | * config.in: Ditto. | |
324 | ||
325 | Mon Aug 25 15:54:08 1997 Andrew Cagney <cagney@b1.cygnus.com> | |
326 | ||
327 | * sim-if.c (sim_open): Add ABFD argument. | |
328 | ||
329 | Tue Jul 22 10:16:16 1997 Doug Evans <dje@canuck.cygnus.com> | |
330 | ||
331 | * sim-main.h (M32R_DEFAULT_MEM_SIZE): New macro. | |
332 | * sim-if.c (sim_open): Use it. | |
333 | ||
334 | Wed Jun 4 12:48:12 1997 Andrew Cagney <cagney@b1.cygnus.com> | |
335 | ||
336 | * sim-main.h (WITH_ENGINE): Disable the common engine for now. | |
337 | ||
338 | Tue May 27 14:15:44 1997 Andrew Cagney <cagney@b1.cygnus.com> | |
339 | ||
340 | * sim-if.c (sim_read): Pass NULL cpu to sim_core_read_buffer. | |
341 | (sim_write): Ditto for write. | |
342 | ||
343 | * m32r.c (do_trap): Ditto for read/write. | |
344 | ||
50a2a691 AC |
345 | Tue May 20 10:18:25 1997 Andrew Cagney <cagney@b1.cygnus.com> |
346 | ||
347 | * sim-if.c (sim_open): Add callback argument. | |
348 | (sim_set_callbacks, sim_callback): Delete. | |
349 | (sim_load): Set STATE_LOADED_P. | |
350 | ||
f03b093c AC |
351 | Mon May 19 12:55:42 1997 Andrew Cagney <cagney@b1.cygnus.com> |
352 | ||
353 | * Makefile.in (SIM_OBJS): Link in sim-abort.o as a stub for | |
354 | sim_engine_abort. | |
355 | ||
7a418800 AC |
356 | Mon May 5 12:45:28 1997 Andrew Cagney <cagney@b1.cygnus.com> |
357 | ||
358 | * sim-if.c (sim_open): Update to reflect changes to core in | |
359 | ../common/. | |
360 | * mem-ops.h (GETMEMQI, GETMEMHI, GETMEMSI, GETMEMDI, GETMEMUQI, | |
361 | GETMEMUHI, GETMEMUSI, GETMEMUDI, SETMEMQI, SETMEMHI, SETMEMSI, | |
362 | SETMEMDI, SETMEMUQI, SETMEMUHI, SETMEMUSI, SETMEMUDI): Ditto. | |
363 | ||
67ae5c9a DE |
364 | Sat May 3 08:38:55 1997 Doug Evans <dje@seba.cygnus.com> |
365 | ||
366 | * decode.c (decode): Add computed goto support. | |
367 | ||
1fe05280 AC |
368 | Fri May 2 16:30:26 1997 Andrew Cagney <cagney@b1.cygnus.com> |
369 | ||
370 | * mem-ops.h: Stub additional core read/write arguments. | |
371 | ||
372 | * sim-main.h: Declare sim_cia - type SI. | |
373 | (struct _sim_cpu): Move base type to end per common. | |
374 | (struct _sim_state): Ditto. | |
375 | ||
376 | Thu May 1 11:15:34 1997 Doug Evans <dje@canuck.cygnus.com> | |
377 | ||
378 | Merge from branch into devo. CGEN generic files moved to common | |
379 | directory. K&R C support is no longer provided. | |
380 | ||
381 | Thu Apr 24 00:39:51 1997 Doug Evans <dje@canuck.cygnus.com> | |
382 | ||
383 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
384 | ||
385 | Sat Apr 12 12:57:33 1997 Felix Lee <flee@yin.cygnus.com> | |
386 | ||
387 | * Makefile.in, seman-cache.c: new file, for wingdb build. | |
388 | * sim-alloca.h: fixed for wingdb. | |
389 | ||
390 | Mon Apr 7 13:33:29 1997 Doug Evans <dje@seba.cygnus.com> | |
391 | ||
392 | * decode.c (*): m32r_cgen_insn_table renamed to ..._entries. | |
393 | * mainloop.in: Use CGEN_INSN_INDEX instead of CGEN_INSN_TYPE. | |
394 | * simdefs.h (INSN_NAME): m32r_cgen_insn_table renamed to ..._entries. | |
395 | ||
396 | Fri Apr 4 19:23:12 1997 Doug Evans <dje@canuck.cygnus.com> | |
397 | ||
398 | * cgen-utils.in (ex_illegal): Fill in abuf->length, abuf->addr. | |
399 | (exc_illegal): Likewise. | |
400 | * decode.c (decode_vars): Add decode_illegal. | |
401 | * genmloop.sh: #include "cpu-opc.h". | |
402 | * sem-switch.c (case_INSN_ILLEGAL): Declare. | |
403 | (labels): Add case_INSN_ILLEGAL. | |
404 | (SWITCH): Add INSN_ILLEGAL case. | |
405 | ||
406 | Wed Mar 26 12:34:00 1997 Doug Evans <dje@canuck.cygnus.com> | |
407 | ||
408 | * model.c (model_module): Use 0 not NULL. | |
409 | ||
410 | * genmloop.sh (sim_main_loop): Handle k&r c. | |
411 | ||
412 | * sem-switch.c: Regenerate to get k&r c support. | |
413 | * semantics.c: Likewise. | |
414 | ||
415 | * m32r.c (ADD_{OV,CA}_SI,SUB_{OV,CA}_SI): Renamed to {ADD,SUB}[OC]FSI. | |
416 | (ADDCSI,SUBCSI): New functions. | |
417 | * sem-switch.c (addv,addv3,addx,subv,subx): Fix carry bit handling. | |
418 | * semantics.c (addv,addv3,addx,subv,subx): Fix carry bit handling. | |
419 | ||
420 | * simcache.c (simcache_{install,init,uninstall}): Use | |
421 | DECLARE_MODULE_INSTALL_HANDLER. | |
422 | (simcache_option_handler): Use DECLARE_OPTION_HANDLER. | |
423 | ||
424 | * utils.c: #include "semops.h". | |
425 | ||
426 | Tue Mar 11 14:30:26 1997 Doug Evans <dje@seba.cygnus.com> | |
427 | ||
428 | * profile.c (profile_print_simcache): Fix thinko in printf text. | |
429 | ||
430 | * simdefs.h (struct argbuf): Add member to fmt_20 so it's not empty. | |
431 | ||
432 | Mon Mar 10 11:06:29 1997 Doug Evans <dje@seba.cygnus.com> | |
433 | ||
434 | * m32r.c (h_cr_get): Rewrite. | |
435 | (h_cr_set): Rewrite. | |
436 | * sem-switch.c (rte): bcarry renamed to bcond. | |
437 | * semantics.c (rte): Likewise. | |
438 | * simdefs.h (CPU_STATE): Likewise. | |
439 | ||
440 | * config.in (HAVE_SYS_TIME_H): Add. | |
441 | * configure.in: Check for sys/time.h. | |
442 | * configure: Regenerated. | |
443 | * utils.c: Include sys/time.h if present. | |
444 | ||
445 | * common.c (sim_parse_args): Account for NULL terminating entry | |
446 | in long_options table. | |
447 | ||
448 | * genmloop.sh (RUN_FAST_P): Don't run fast if tracing. | |
449 | Always use cache if configured in. | |
450 | * mainloop.in (do_extract_insn{16,32}): New functions. | |
451 | (normal,fast): Call them. Handle starting in left slot. | |
452 | * simcache.c (simcache_option_handler): Disallow -c0. | |
453 | * sem-switch.c (TRACE_RESULT): Redefine so no tracing. | |
454 | ||
455 | * profile.c (profile_print_simcache): Fix percentage calc. | |
456 | ||
457 | * Makefile.in (INCLUDE_DEPS): Delete simcommon.h. | |
458 | ||
459 | Sun Mar 9 20:42:17 1997 Doug Evans <dje@seba.cygnus.com> | |
460 | ||
461 | * Makefile.in (COMMON_{PRE,POST}_CONFIG_FRAG): Add delimiters for. | |
462 | (M32R_INCLUDE_DEPS): Use cpu-sim.h instead of m32r-sim.h. | |
463 | Add mod-list.h. | |
464 | (mrun.o): Don't depend on M32R_INCLUDE_DEPS. | |
465 | (sim-if.o,m32r.o,utils.o): Likewise. | |
466 | (common.o): Don't explicitly depend on mod-list.h. | |
467 | (mainloop.c): Pass CPU to genmloop.sh. | |
468 | (stamp-modules): Depend on configure. | |
469 | (decode.o): Depend on decode,h, memops.h, semops.h, cpu-opc.h. | |
470 | (extract.o): Depend on decode.h, memops.h, semops.h. | |
471 | (semantics.o,seman-cache.o): Likewise. | |
472 | (model.o,ops.o): Depend on memops.h. | |
473 | (extr-cache.o): Disable building for the moment. | |
474 | ||
475 | * simcommon.h: Delete, move contents into cgen-sim.h. | |
476 | * cgen-sim.h: Don't include ansidecl.h,bfd.h,simfns.h. | |
477 | (UINT,CGEN_CAT3): Define. | |
478 | ({extract,semantic}_fn_t): Renamed to {EXTRACT,SEMANTIC}_FN. | |
479 | (decode_t): Renamed to DECODE. | |
480 | ||
481 | * simfns.h: Delete, contents moved to memops.h,semops.h. | |
482 | * memops.h: New file. | |
483 | * semops.h: New file. | |
484 | * decode.h: Renamed from semantics.h. | |
485 | ||
486 | * sim-argv.h: New file. | |
487 | * Makefile.in (memory.o,trace.o,profile.o,simcache.o,common): Add | |
488 | dependency of sim-argv.h. | |
489 | ||
490 | * sim-alloca.h: New file. | |
491 | * common.c: Include it. | |
492 | * Makefile.in (common.o): Add dependency. | |
493 | ||
494 | * config.in (HAVE_TIME_H,HAVE_SYS_RESOURCE_H): Add. | |
495 | (HAVE_GETRUSAGE,HAVE_TIME): Add. | |
496 | * configure.in: sinclude ../common/aclocal.m4. | |
497 | Check for headers time.h, sys/resource.h. | |
498 | Check for functions time, getrusage. | |
499 | (sim_link_{files,links}): Add link cpu-opc.h. | |
500 | (sim_profile): Add simcache. | |
501 | (SIM_AC_PROFILE): Add simcache, profile.o. | |
502 | (simcache module): Delete extr-cache.o for now. | |
503 | (--enable-sim-cache): Allow specification of default cache size. | |
504 | * configure: Regenerated. | |
505 | ||
506 | * decode.c: #include cgen-sim.h,memops.h,semops.h,decode.h, | |
507 | cpu-sim.h,cpu-opc.h. Don't include m32r-sim.h. | |
508 | Regenerate. | |
509 | ||
510 | * extract.c: #include cgen-sim.h,decode.h,cpu-sim.h. | |
511 | Don't include m32r-sim.h. | |
512 | (*): Define/Undef FLD macro. Use it to reference ARGBUF. | |
513 | Simplify profiling test with PROFILE_MODEL_P. | |
514 | (mvfc,mvtc): Fix access of control registers. | |
515 | * semantic.c: #include cgen-sim.h,memops.h,semops.h,decode.h,cpu-sim.h. | |
516 | Don't include m32r-sim.h. | |
517 | (*): Define/Undef FLD macro. Use it to reference ARGBUF. | |
518 | Simplify profiling test with PROFILE_MODEL_P. | |
519 | (mvfc,mvtc): Fix access of control registers. | |
520 | ||
521 | * sem-switch.c: New file, for GCC computed goto support. | |
522 | ||
523 | * genmloop.sh: Add #include's of bfd.h,callback.h,cgen-sim.h, | |
524 | memops.h,semops.h,trace.h,cpu-sim.h. | |
525 | (RUN_FAST_P): Change default to run fast if cache size > 0 | |
526 | and not profiling. | |
527 | (sim_main_loop): Record execution time. | |
528 | Record instruction count even in fast mode. | |
529 | (init): Allow cpu to provide init code in mainloop.in. | |
530 | (FAST): Define as 0 or 1 depending on fast mode. | |
531 | * mainloop.in (normal): Combine with fast case. | |
532 | Add support for GCC computed gotos. Count simcache hits/misses. | |
533 | (init): Initialize "switch" labels if GNUC. | |
534 | ||
535 | * cgen-utils.in: Don't include opcode/cgen.h. | |
536 | Include cgen-sim.h, cpu-opc.h. | |
537 | * common.c: Don't include simcommon.h,mod-list.h. Include cgen-sim.h. | |
538 | * m32r-sim.h: Don't include mod-list.h | |
539 | (RUN_FAST_P): Delete. | |
540 | * m32r.c: Don't include profile.h. #include ansidecl.h,cgen-sim.h, | |
541 | semops.h,memory.h,trace.h | |
542 | (h_cr_get,h_cr_set): New functions. | |
543 | * memory.c: #include cgen-sim.h,callback.h. | |
544 | * ops.c: Don't include profile.h,m32r-sim.h. | |
545 | Include cgen-sim.h,memops.h,cpu-sim.h. | |
546 | (MEMOPS_DEFINE_INLINE): Renamed from SIMFNS_DEFINE_INLINE. | |
547 | * trace.c: Include cgen-sim.h,cpu-opc.h. | |
548 | * trace.h (trace_insn_{init,fini}): Declare. | |
549 | ||
550 | * model.c: Don't include signal.h,stdlib.h,m32r-sim.h. | |
551 | Include cgen-sim.h,cpu-sim.h,cpu-opc.h. | |
552 | Regenerate to get new insn aliases. | |
553 | ||
554 | * mrun.c: #include "ansidecl.h". | |
555 | (STATE): Use struct sim_state instead. | |
556 | ||
557 | * profile.c: Surround #include <stdlib.h> with HAVE_STDLIB_H. | |
558 | Don't include simcommon.h. Include cgen-sim.h,cpu-opc.h. | |
559 | (PROFILE_{READ,WRITE}_MASK): Replace with PROFILE_MEMORY_MASK. | |
560 | (profile_print_simcache): New function. | |
561 | (profile_print): Call it. Print simulator speed stats. | |
562 | * profile.h (PROFILE_{READ,WRITE}_MASK): Replace with | |
563 | PROFILE_MEMORY_MASK. | |
564 | (MODULE_PROFILE_SIMCACHE_P): Define. | |
565 | (PROFILE_SIMCACHE_MASK): Define. | |
566 | (PROFILE_COUNT): New members total_insn_count,exec_time. | |
567 | New members simcache_hits,simcache_misses. | |
568 | (PROFILE_SIMCACHE_{HITS,MISSES}): Define. | |
569 | (PROFILE_MODEL_P): New macro. | |
570 | (PROFILE_COUNT_SIMCACHE_{HIT,MISS}): New macros. | |
571 | ||
572 | * sim-if.c: Surround #include <stdlib.h> with HAVE_STDLIB_H. | |
573 | Don't include simcommon.h,m32r-sim.h. Include cgen-sim.h,cpu-sim.h. | |
574 | (sim_resume): Use USING_SIMCACHE_P instead of RUN_FAST_P. | |
575 | (sim_info): Pass verbose to profile_print. | |
576 | ||
577 | * simcache.c: Include cgen-sim.h,callback.h. | |
578 | (USING_SIMCACHE_P): Replace with SIMCACHE_P. | |
579 | (simcache_option_handler): Ensure cache size at least 2. | |
580 | Allow config time specification of default cache size. | |
581 | * simcache.h (struct simcache): Support GCC computed gotos. | |
582 | (SIMCACHE_DEFAULT_CACHE_SIZE): USe CONFIG_SIM_CACHE_SIZE if defined. | |
583 | (USING_SIMCACHE_P): New macro. | |
584 | ||
585 | * simdefs.h: Don't include m32r-opc.h. | |
586 | (CGEN_MAX_SIM_INSNS): Define. | |
587 | (CPU_STATE): Regenerate. | |
588 | (ARGBUF): Regenerate. | |
589 | (extract,semantic handler decls): Delete, moved to decode.h. | |
590 | ||
591 | * tconfig.in: Don't include cgen-sim.h,m32r-sim.h. | |
592 | (USE_SEM_SWITCH): Define. | |
593 | ||
594 | * utils.c: Include bfd.h,time.h,sys/resource.h. | |
595 | (sim_time_get,sim_time_elapsed): New functions. | |
596 | * cgen-sim.h (SIM_TIME,sim_time_get,sim_time_elapsed): Declare. | |
597 | ||
598 | Fri Jan 31 20:25:06 1997 Doug Evans <dje@canuck.cygnus.com> | |
599 | ||
600 | * configure.in (AC_CHECK_HEADERS): Handle i386-windows. | |
601 | * configure: Regenerated. | |
602 | * model.c: #include <stdlib.h>. | |
603 | * simcache.c: #include "libiberty.h". | |
604 | * simcommon.h (alloca): Handle i386-windows. | |
605 | ||
606 | * common.c: #include libiberty.h. | |
607 | (sim_signal_to_host): Return 5 if wingdb. | |
608 | ||
609 | Mon Jan 27 15:22:49 1997 Doug Evans <dje@seba.cygnus.com> | |
610 | ||
611 | * configure.in (sim_cache): Enabled by default now, pass default | |
612 | cache size to --enable-sim-cache. | |
613 | * simcache.c (simcache_option_handler): Allow -c 0. | |
614 | ||
615 | * simdefs.h,simfns.h: Regenerate | |
616 | * decode.c,extract.c,model.c,ops.c,semantics.c: Regenerate. | |
617 | ||
618 | Tue Jan 21 16:21:01 1997 Doug Evans <dje@seba.cygnus.com> | |
619 | ||
620 | Add model profiling support. | |
621 | * configure.in: Handle --enable-sim-model. | |
622 | (sim_profile): Add model. | |
623 | * Makefile.in (model.o): Add rule. | |
624 | * cgen-sim.h (UNIT,INSN_TIMING,MACH,MODEL): New types. | |
625 | * extract.c (*): Add model profiling support. | |
626 | * m32r.c (model_mark_{get,set}_h_gr): New functions. | |
627 | (model_mark_{busy,unbusy}_reg): New functions. | |
628 | * profile.c (profile_option_handler): Recognize --profile model. | |
629 | (profile_print_model): New function. | |
630 | (profile_print): Call it. | |
631 | * profile.h (MODULE_profile_model,MODULE_PROFILE_MODEL_P): Define. | |
632 | (PROFILE_MODEL_MASK,PROFILE_LABEL_WIDTH): Define. | |
633 | (PROFILE_COUNT): New members cycle_count,cti_stall_count, | |
634 | load_stall_count,taken_count,untaken_count. | |
635 | * semantics.c (*): Add model profiling support. | |
636 | * simcommon.h (struct sim_state): New members mach,model. | |
637 | * simdefs.h (CPU_PROFILE,MODEL_TYPE,UNIT_TYPE): New type. | |
638 | (MAX_MODELS,MAX_UNITS): Define. | |
639 | * tconfig.in (STATE_EXTRA_MEMBERS): Add cpu_profile. | |
640 | ||
641 | * Makefile.in (INCLUDE_DEPS): Add $(SIM_MODULES_HDRS). | |
642 | (stamp-modules): Depend on genmodlist.sh. | |
643 | * common.c (standard_options): Add --max-insns. | |
644 | (copy_argv): New function. | |
645 | * tconfig.in (SIM_HAVE_MAX_INSNS): Define. | |
646 | * genmloop.sh: Allow mainloop.in to contain support code. | |
647 | * mainloop.in: Move do_insn16,do_insn32 here. | |
648 | * m32r.c (do_trap): Handle SYS_argvlen,SYS_argv,SYS_read. | |
649 | * sim-if.c (sim_open): Don't set max insn count. | |
650 | (sim_create_inferior): Save argv,envp. | |
651 | * simcommon.h (struct sim_state): New members argv,envp. | |
652 | * simdefs.h ([GS]ETTWI,[GS]ETTUWI,[GS]ETTAI): Define. | |
653 | ([GS]ETMEMWI,[GS]ETMEMUWI,[GS]ETMEMAI): Define. | |
654 | (ARGBUF): New members h_gr_get, h_gr_set. | |
655 | * trace.c (trace_insn_init,trace_insn_fini): New functions. | |
656 | (trace_printf): Print to buffer, output later by trace_insn_fini. | |
657 | * trace.h (TRACE_INSN_{INIT,FINI}): Define. | |
658 | ||
659 | Thu Dec 19 16:01:59 1996 Doug Evans <dje@canuck.cygnus.com> | |
660 | ||
661 | * configure.in (AC_FUNC_ALLOCA): Call. | |
662 | * configure: Regenerate. | |
663 | * config.h (HAVE_ALLOCA_H): Add. | |
664 | * simcommon.h: Add alloca support. | |
665 | (DECLARE_MODULE_INSTALL_HANDLER): Define. | |
666 | (DECLARE_OPTION_HANDLER): Define. | |
667 | (MEM_FN): Declare using PARAMS. | |
668 | (DECLARE_MEM_FN): Define. | |
669 | * trace.c (trace_result): Tweak for !STDC. | |
670 | * cgen-sim.h (UDI_FN_SUPPORT): Define if ! HAVE_LONGLONG. | |
671 | * cgen-utils.in (disasm_sprintf): Fix va_arg call in !STDC case. | |
672 | * common.c (sim_print_help_fn): Use PARAMS. | |
673 | (standard_option_handler): Fix decl for !STDC systems. | |
674 | * memory.c: #include <stdio.h> | |
675 | (mem_flat_{install,init,uninstall}): Fix decl for !STDC systems. | |
676 | (mem_flat_{read,write},mem_flat_option_handler): Likewise. | |
677 | * profile.c (profile_install): Likewise. | |
678 | (profile_option_handler): Likewise. | |
679 | ||
680 | Thu Dec 19 11:06:19 1996 Doug Evans <dje@seba.cygnus.com> | |
681 | ||
682 | * semantics.c (*): Don't suffix big unsigned numbers with "U". | |
683 | Prefix them with 0x instead. | |
684 | ||
685 | * cgen-sim.h (DI_FN_SUPPORT): Define if ! HAVE_LONGLONG. | |
686 | (SLADI,SRADI,CONVSIDI,CONVDISI): Delete, moved to simfns.h. | |
687 | * semantics.c (machi,maclo,macwhi,macwlo,mulhi,mullo): Implement. | |
688 | (mulwhi,mulwlo,mvtachi,mvtaclo,rac,rach): Implement. | |
689 | * simfns.h: Add decls for functional DI,UDI,SF,DF,XF,TF support. | |
690 | Add support for boolean and/or. | |
691 | * utils.c: Redo naming of DI functional support. | |
692 | (ANDDI,ORDI,ADDDI,MULDI,GEDI,LEDI,CONVHIDI): New functions. | |
693 | ||
694 | Tue Dec 17 12:57:48 1996 Doug Evans <dje@seba.cygnus.com> | |
695 | ||
696 | * Directory created. |