Commit | Line | Data |
---|---|---|
3e75ff7e | 1 | start-sanitize-am33 |
1f0ba346 JL |
2 | Thu Jul 9 10:06:55 1998 Jeffrey A Law (law@cygnus.com) |
3 | ||
4 | * am33.igen: Add remaining non-DSP instructions. | |
5 | ||
377e53bb JL |
6 | Wed Jul 8 16:29:12 1998 Jeffrey A Law (law@cygnus.com) |
7 | ||
9c55817e JL |
8 | * am33.igen (translate_rreg): New function. Use it as appropriate. |
9 | ||
377e53bb JL |
10 | * am33.igen: More am33 instructions. Fix "div". |
11 | ||
3e75ff7e JL |
12 | Mon Jul 6 15:39:22 1998 Jeffrey A Law (law@cygnus.com) |
13 | ||
d2b02ab2 JL |
14 | * mn10300.igen: Add am33 support. |
15 | ||
135431cd JL |
16 | * Makefile.in: Use multi-sim to support both a mn10300 and am33 |
17 | simulator. | |
18 | ||
3e75ff7e JL |
19 | * am33.igen: Add many more am33 instructions. |
20 | ||
21 | end-sanitize-am33 | |
de2adf70 JL |
22 | Wed Jul 1 17:07:09 1998 Jeffrey A Law (law@cygnus.com) |
23 | ||
24 | * mn10300_sim.h (FETCH24): Define. | |
0f7d7385 | 25 | |
de2adf70 JL |
26 | start-sanitize-am33 |
27 | * mn10300_sim.h: Add defines for some registers found on the AM33. | |
0f7d7385 | 28 | * am33.igen: New file with some am33 support. |
de2adf70 JL |
29 | end-sanitize-am33 |
30 | ||
a6cbaa65 JL |
31 | Tue Jun 30 11:23:20 1998 Jeffrey A Law (law@cygnus.com) |
32 | ||
33 | * mn10300_sim.h: Include bfd.h | |
34 | (struct state): Add more room for processor specific registers. | |
35 | start-sanitize-am33 | |
36 | (REG_E0): Define. | |
37 | end-sanitize-am33 | |
38 | ||
f0ce242f | 39 | start-sanitize-am30 |
5eb78d70 JJ |
40 | Thu Jun 25 10:12:03 1998 Joyce Janczyn <janczyn@cygnus.com> |
41 | ||
42 | * dv-mn103tim.c: Include sim-assert.h | |
43 | * dv-mn103ser.c (do_polling_event): Check for incoming data on | |
44 | serial line and schedule next polling event. | |
45 | (read_status_reg): schedule events to check for incoming data on | |
46 | serial line and issue interrupt if necessary. | |
47 | ||
48 | Fri Jun 19 16:47:27 1998 Joyce Janczyn <janczyn@cygnus.com> | |
49 | ||
50 | * interp.c (sim_open): hook up serial 1 and 2 ports properly (typo). | |
51 | ||
0df90cd8 JJ |
52 | Fri Jun 19 11:59:26 1998 Joyce Janczyn <janczyn@cygnus.com> |
53 | ||
54 | * interp.c (board): Rename am32 to stdeval1 as this is the name | |
55 | consistently used to refer to the mn1030002 board. | |
56 | ||
f0ce242f JJ |
57 | Thu June 18 14:37:14 1998 Joyce Janczyn <janczyn@cygnus.com> |
58 | * interp.c (sim_open): Fix typo in address of EXTMD register | |
59 | (0x34000280, not 0x3400280). | |
60 | ||
61 | end-sanitize-am30 | |
62 | Wed Jun 17 18:00:18 1998 Jeffrey A Law (law@cygnus.com) | |
63 | ||
64 | * simops.c (syscall): Handle change in opcode # for syscall. | |
65 | * mn10300.igen (syscall): Likewise. | |
66 | ||
8c2de2aa | 67 | start-sanitize-am30 |
f14defcc JJ |
68 | Tue June 16 09:36:21 1998 Joyce Janczyn <janczyn@cygnus.com> |
69 | * dv-mn103int.c (mn103int_finish): Regular interrupts (not NMI or | |
70 | reset) are not enabled on reset. | |
71 | ||
2a62f119 | 72 | Sun June 14 17:04:00 1998 Joyce Janczyn <janczyn@cygnus.com> |
f0ce242f JJ |
73 | * dv-mn103iop.c (write_*_reg): Check for attempt to write r/o |
74 | register bits. | |
75 | * dv-mn103ser.c: Fill in methods for reading and writing to serial | |
76 | device registers. | |
2a62f119 JJ |
77 | * interp.c (sim_open): Make the serial device a polling device. |
78 | ||
55a7ce4e JJ |
79 | Fri June 12 16:24:00 1998 Joyce Janczyn <janczyn@cygnus.com> |
80 | * dv-mn103iop.c: New file for handling am32 io ports. | |
81 | * configure.in: Add mn103iop to hw_device list. | |
82 | * configure: Re-generate. | |
83 | * interp.c (sim_open): Create io port device. | |
84 | ||
8c2de2aa JJ |
85 | Wed June 10 14:34:00 1998 Joyce Janczyn <janczyn@cygnus.com> |
86 | * dv-mn103int.c (external_group): Use enumerated types to access | |
87 | correct group addresses. | |
88 | * dv-mn103tim.c (do_counter_event): Underflow of cascaded timer | |
89 | triggers an interrupt on the higher-numbered timer's port. | |
90 | ||
91 | end-sanitize-am30 | |
d3f76d42 JJ |
92 | Mon June 8 13:30:00 1998 Joyce Janczyn <janczyn@cygnus.com> |
93 | * interp.c: (mn10300_option_handler): New function parses arguments | |
94 | using sim-options. | |
39e953a7 | 95 | start-sanitize-am30 |
d3f76d42 JJ |
96 | * (board): Add --board option for specifying am32. |
97 | * (sim_open): Create new timer and serial devices and control | |
98 | configuration of other am32 devices via board option. | |
99 | * dv-mn103tim.c, dv-mn103ser.c: New files for timers and serial devices. | |
100 | * dv-mn103cpu.c: Fix typos in opening comments. | |
101 | * dv-mn103int.c: Adjust interrupt controller settings for am32 instead of am30. | |
102 | * configure.in: Add mn103tim and mn103ser to hw_device list. | |
103 | * configure: Re-generate. | |
104 | end-sanitize-am30 | |
105 | ||
106 | start-sanitize-am30 | |
107 | Mon May 25 20:50:35 1998 Andrew Cagney <cagney@b1.cygnus.com> | |
108 | ||
109 | * dv-mn103int.c, dv-mn103cpu.c: Rename *_callback to *_method. | |
110 | ||
111 | * dv-mn103cpu.c, dv-mn103int.c: Include hw-main.h and | |
112 | sim-main.h. Declare a struct hw_descriptor instead of struct | |
113 | hw_device_descriptor. | |
114 | ||
39e953a7 AC |
115 | Mon May 25 17:33:33 1998 Andrew Cagney <cagney@b1.cygnus.com> |
116 | ||
117 | * dv-mn103cpu.c (struct mn103cpu): Change type of pending_handler | |
118 | to struct hw_event. | |
119 | ||
f872d0d6 AC |
120 | Fri May 22 12:17:41 1998 Andrew Cagney <cagney@b1.cygnus.com> |
121 | ||
122 | * configure.in (SIM_AC_OPTION_HARDWARE): Add argument "yes". | |
123 | ||
26feb3a8 AC |
124 | Wed May 6 13:29:06 1998 Andrew Cagney <cagney@b1.cygnus.com> |
125 | ||
126 | * interp.c (sim_open): Create a polling PAL device. | |
127 | ||
128 | end-sanitize-am30 | |
129 | Fri May 1 16:39:15 1998 Andrew Cagney <cagney@b1.cygnus.com> | |
130 | ||
131 | * dv-mn103int.c (mn103int_port_event): | |
132 | (mn103int_port_event): | |
133 | (mn103int_io_read_buffer): | |
134 | (mn103int_io_write_buffer): | |
135 | ||
136 | * dv-mn103cpu.c (deliver_mn103cpu_interrupt): Drop CPU/CIA args. | |
137 | (mn103cpu_port_event): Ditto. | |
138 | (mn103cpu_io_read_buffer): Ditto. | |
139 | (mn103cpu_io_write_buffer): Ditto. | |
140 | ||
9d45df1b GN |
141 | Tue Apr 28 18:33:31 1998 Geoffrey Noer <noer@cygnus.com> |
142 | ||
143 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
144 | ||
5da9ce07 TT |
145 | Sun Apr 26 15:31:55 1998 Tom Tromey <tromey@creche> |
146 | ||
147 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
148 | * config.in: Ditto. | |
149 | ||
150 | Sun Apr 26 15:19:55 1998 Tom Tromey <tromey@cygnus.com> | |
151 | ||
152 | * acconfig.h: New file. | |
153 | * configure.in: Reverted change of Apr 24; use sinclude again. | |
154 | ||
b1df34b9 TT |
155 | Fri Apr 24 14:16:40 1998 Tom Tromey <tromey@creche> |
156 | ||
157 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
158 | * config.in: Ditto. | |
159 | ||
160 | Fri Apr 24 11:19:07 1998 Tom Tromey <tromey@cygnus.com> | |
161 | ||
162 | * configure.in: Don't call sinclude. | |
163 | ||
1e23866b AC |
164 | Tue Apr 14 10:03:02 1998 Andrew Cagney <cagney@b1.cygnus.com> |
165 | ||
b1df34b9 TT |
166 | * mn10300_sim.h: Declare all functions in op_utils.c using |
167 | INLINE_SIM_MAIN. | |
168 | * op_utils.c: Ditto. | |
169 | * sim-main.c: New file. Include op_utils.c. | |
170 | ||
1e23866b AC |
171 | * mn10300.igen (mov, cmp): Use new igen operators `!' and `=' to |
172 | differentiate between MOV/CMP immediate/register instructions. | |
173 | ||
174 | * configure.in (SIM_AC_OPTION_INLINE): Add and enable. | |
175 | * configure: Regenerate. | |
176 | ||
278bda40 AC |
177 | Sat Apr 4 20:36:25 1998 Andrew Cagney <cagney@b1.cygnus.com> |
178 | ||
179 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
180 | ||
181 | start-sanitize-am30 | |
182 | Fri Mar 27 16:15:52 1998 Andrew Cagney <cagney@b1.cygnus.com> | |
183 | ||
184 | * interp.c (hw): Delete variable, moved to SIM_DESC. | |
185 | (sim_open): Delete calls to hw_tree_create, hw_tree_finish. | |
186 | Handled by sim-module. | |
187 | (sim_open): Do not anotate tree with trace properties, handled by | |
188 | sim-hw.c | |
189 | (sim_open): Call sim_hw_parse instead of hw_tree_parse. | |
190 | ||
191 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
192 | ||
193 | end-sanitize-am30 | |
6d133cc9 AC |
194 | start-sanitize-am30 |
195 | Thu Mar 26 20:46:18 1998 Stu Grossman <grossman@bhuna.cygnus.co.uk> | |
196 | ||
197 | * dv-mn103cpu.c (deliver_mn103cpu_interrupt): Save the entire PC | |
198 | on the stack when delivering interrupts (not just the lower | |
199 | half)... | |
200 | * mn10300.igen (mov (Di,Am),Dn): Fix decode. Registers were | |
201 | specified in the wrong order. | |
202 | ||
203 | end-sanitize-am30 | |
204 | start-sanitize-am30 | |
1b756ba6 AC |
205 | Fri Mar 27 00:56:40 1998 Andrew Cagney <cagney@b1.cygnus.com> |
206 | ||
207 | * dv-mn103cpu.c (deliver_mn103cpu_interrupt): Stop loss of | |
208 | succeeding interrupts, clear pending_handler when the handler | |
209 | isn't re-scheduled. | |
210 | ||
6d133cc9 | 211 | end-sanitize-am30 |
abf6ba25 SG |
212 | Thu Mar 26 10:11:01 1998 Stu Grossman <grossman@bhuna.cygnus.co.uk> |
213 | ||
214 | * Makefile.in (tmp-igen): Prefix all usage of move-if-change | |
215 | script with $(SHELL) to make NT native builds happy. | |
216 | * configure: Regenerate because of change to ../common/aclocal.m4. | |
217 | ||
51ccd82f AC |
218 | Thu Mar 26 11:22:31 1998 Andrew Cagney <cagney@b1.cygnus.com> |
219 | ||
220 | * configure.in: Make --enable-sim-common the default. | |
221 | * configure: Re-generate. | |
222 | ||
223 | * sim-main.h (CIA_GET, CIA_SET): Save/restore current instruction | |
224 | address into Sate.regs[REG_PC] instead of common struct. | |
225 | ||
d1607ed3 JJ |
226 | Wed Mar 25 17:42:00 1998 Joyce Janczyn <janczyn@cygnus.com> |
227 | ||
228 | * mn10300.igen (cmp imm8,An): Do not sign extend imm8 value. | |
229 | ||
52ef605e JJ |
230 | Wed Mar 25 12:08:00 1998 Joyce Janczyn <janczyn@cygnus.com> |
231 | ||
232 | * simops.c (OP_F0FD): Initialise variable 'sp'. | |
233 | ||
6d133cc9 | 234 | start-sanitize-am30 |
c357e16a AC |
235 | Thu Mar 26 00:21:32 1998 Andrew Cagney <cagney@b1.cygnus.com> |
236 | ||
237 | * dv-mn103int.c (decode_group): A group register every 4 bytes not | |
238 | 8. | |
239 | (write_icr): Rewrite equation updating request field. | |
240 | (read_iagr): Fix check that interrupt is still pending. | |
241 | ||
6d133cc9 AC |
242 | end-sanitize-am30 |
243 | start-sanitize-am30 | |
8077fed5 AC |
244 | Wed Mar 25 16:14:50 1998 Andrew Cagney <cagney@b1.cygnus.com> |
245 | ||
246 | * interp.c (sim_open): Tidy up device creation. | |
247 | ||
248 | * dv-mn103int.c (mn103int_port_event): Drive NMI with non-zero | |
249 | value. | |
250 | (mn103int_io_read_buffer): Convert absolute address to register | |
251 | block offsets. | |
252 | (read_icr, write_icr): Convert block offset into group offset. | |
253 | ||
6d133cc9 | 254 | end-sanitize-am30 |
6100784a AC |
255 | Wed Mar 25 15:08:49 1998 Andrew Cagney <cagney@b1.cygnus.com> |
256 | ||
257 | * interp.c (sim_open): Create second 1mb memory region at | |
258 | 0x40000000. | |
259 | (sim_open): Create a device tree. | |
260 | (sim-hw.h): Include. | |
6d133cc9 | 261 | start-sanitize-am30 |
6100784a AC |
262 | (do_interrupt): Delete, needs to use dv-mn103cpu.c |
263 | ||
264 | * dv-mn103int.c, dv-mn103cpu.c: New files. | |
6d133cc9 | 265 | end-sanitize-am30 |
6100784a | 266 | |
8388c9a5 AC |
267 | Wed Mar 25 08:47:38 1998 Andrew Cagney <cagney@b1.cygnus.com> |
268 | ||
269 | * mn10300_sim.h (EXTRACT_PSW_LM, INSERT_PSW_LM, PSW_IE, PSW_LM): | |
270 | Define. | |
271 | (SP): Define. | |
272 | ||
d89fa2d8 AC |
273 | Wed Mar 25 12:35:29 1998 Andrew Cagney <cagney@b1.cygnus.com> |
274 | ||
275 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
276 | ||
e855e576 AC |
277 | Wed Mar 25 10:24:48 1998 Andrew Cagney <cagney@b1.cygnus.com> |
278 | ||
279 | * interp.c (sim-options.h): Include. | |
280 | (sim_kind, myname): Declare when not using common framework. | |
281 | ||
282 | * mn10300_sim.h (do_syscall, generic*): Provide prototypes for | |
283 | functions found in op_utils.c | |
284 | ||
285 | * mn10300.igen (add): Discard unused variables. | |
286 | ||
287 | * configure, config.in: Re-generate with autoconf 2.12.1. | |
288 | ||
55045e7b JJ |
289 | Tue Mar 24 15:27:00 1998 Joyce Janczyn <janczyn@cygnus.com> |
290 | ||
291 | Add support for --enable-sim-common option. | |
292 | * Makefile.in (WITHOUT_COMMON_OBJS): Files included if | |
293 | ! --enable-sim-common | |
294 | (WITH_COMMON_OBJS): Files included if --enable-sim-common. | |
295 | (MN10300_OBJS,MN10300_INTERP_DEP): New variables. | |
296 | (SIM_OBJS): Rewrite. | |
297 | ({WITHOUT,WITH}_COMMON_RUN_OBJS,SIM_RUN_OBJS): New variables. | |
298 | (SIM_EXTRA_CFLAGS): New variable. | |
299 | (clean-extra): Clean up igen files. | |
300 | (../igen/igen,clean-igen,tmp-igen): New rules. | |
301 | * configure.in: Add support for common framework via | |
302 | --enable-sim-common. | |
303 | * configure: Regenerate. | |
304 | * interp.c: #include sim-main if WITH_COMMON, not mn10300_sim.h. | |
305 | (hash,dispatch,sim_size): Don't compile if ! WITH_COMMON. | |
306 | (init_system,sim_write,compare_simops): Likewise. | |
307 | (sim_set_profile,sim_set_profile_size): Likewise. | |
308 | (sim_stop,sim_resume,sim_trace,sim_info): Likewise. | |
309 | (sim_set_callbacks,sim_stop_reason,sim_read,sim_load): Likewise. | |
310 | (enum interrupt_type): New enum. | |
311 | (interrupt_names): New global. | |
312 | (do_interrupt): New function. | |
313 | (sim_open): Define differently if WITH_COMMON. | |
314 | (sim_close,sim_create_inferior,sim_do_command): Likewise. | |
315 | * mn10300_sim.h ({load,store}_{byte,half,word}): Define versions | |
316 | for WITH_COMMON. | |
317 | * mn10300.igen: New file. | |
318 | * mn10300.dc: New file. | |
319 | * op_utils.c: New file. | |
320 | * sim-main.h: New file. | |
321 | ||
322 | Wed Mar 18 12:38:12 1998 Andrew Cagney <cagney@b1.cygnus.com> | |
323 | ||
324 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
325 | ||
326 | Fri Feb 27 18:36:04 1998 Jeffrey A Law (law@cygnus.com) | |
327 | ||
328 | * simops.c (inc): Fix typo. | |
329 | ||
097e6924 JL |
330 | Wed Feb 25 01:59:29 1998 Jeffrey A Law (law@cygnus.com) |
331 | ||
332 | * simops.c (signed multiply instructions): Cast input operands to | |
333 | signed32 before casting them to signed64 so that the sign bit | |
334 | is propagated properly. | |
335 | ||
a9faef12 MA |
336 | Mon Feb 23 20:23:19 1998 Mark Alexander <marka@cygnus.com> |
337 | ||
338 | * Makefile.in: Last change was bad. Define NL_TARGET | |
339 | so that targ-vals.h will be used instead of syscall.h. | |
340 | * simops.c: Use targ-vals.h instead of syscall.h. | |
341 | (OP_F020): Disable unsupported system calls. | |
342 | ||
e04b0d76 MA |
343 | Mon Feb 23 09:44:38 1998 Mark Alexander <marka@cygnus.com> |
344 | ||
345 | * Makefile.in: Get header files from libgloss/mn10300/sys. | |
346 | ||
7eab31b7 JL |
347 | Sun Feb 22 16:02:24 1998 Jeffrey A Law (law@cygnus.com) |
348 | ||
349 | * simops.c: Include sim-types.h. | |
350 | ||
351 | Wed Feb 18 13:07:08 1998 Jeffrey A Law (law@cygnus.com) | |
352 | ||
353 | * simops.c (multiply instructions): Cast input operands to a | |
354 | signed64/unsigned64 type as appropriate. | |
355 | ||
fbb8b6b9 AC |
356 | Tue Feb 17 12:47:16 1998 Andrew Cagney <cagney@b1.cygnus.com> |
357 | ||
358 | * interp.c (sim_store_register, sim_fetch_register): Pass in | |
359 | length parameter. Return -1. | |
360 | ||
361 | Sun Feb 1 16:47:51 1998 Andrew Cagney <cagney@b1.cygnus.com> | |
362 | ||
363 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
364 | ||
412c4e94 AC |
365 | Sat Jan 31 18:15:41 1998 Andrew Cagney <cagney@b1.cygnus.com> |
366 | ||
367 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
368 | ||
462cfbc4 DE |
369 | Mon Jan 19 22:26:29 1998 Doug Evans <devans@seba> |
370 | ||
371 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
372 | ||
373 | Mon Dec 15 23:17:11 1997 Andrew Cagney <cagney@b1.cygnus.com> | |
374 | ||
375 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
376 | * config.in: Ditto. | |
377 | ||
378 | Thu Dec 4 09:21:05 1997 Doug Evans <devans@canuck.cygnus.com> | |
379 | ||
380 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
381 | ||
382 | Tue Nov 11 10:38:52 1997 Jeffrey A Law (law@cygnus.com) | |
383 | ||
384 | * simops.c (call:16 call:32): Stack adjustment is determined solely | |
385 | by the imm8 field. | |
386 | ||
9e03a68f AC |
387 | Wed Oct 22 14:43:00 1997 Andrew Cagney <cagney@b1.cygnus.com> |
388 | ||
b5da31ac | 389 | * interp.c (sim_load): Pass lma_p and sim_write args to |
9e03a68f AC |
390 | sim_load_file. |
391 | ||
f4ab2b2f JL |
392 | Tue Oct 21 10:12:03 1997 Jeffrey A Law (law@cygnus.com) |
393 | ||
394 | * simops.c: Correctly handle register restores for "ret" and "retf" | |
395 | instructions. | |
396 | ||
397 | Fri Oct 3 09:28:00 1997 Andrew Cagney <cagney@b1.cygnus.com> | |
398 | ||
399 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
400 | ||
401 | Wed Sep 24 17:38:57 1997 Andrew Cagney <cagney@b1.cygnus.com> | |
402 | ||
403 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
404 | ||
92f91d1f AC |
405 | Tue Sep 23 11:04:38 1997 Andrew Cagney <cagney@b1.cygnus.com> |
406 | ||
407 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
408 | ||
794e9ac9 AC |
409 | Mon Sep 22 11:46:20 1997 Andrew Cagney <cagney@b1.cygnus.com> |
410 | ||
411 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
412 | ||
b45caf05 AC |
413 | Fri Sep 19 17:45:25 1997 Andrew Cagney <cagney@b1.cygnus.com> |
414 | ||
415 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
416 | ||
417 | Mon Sep 15 17:36:15 1997 Andrew Cagney <cagney@b1.cygnus.com> | |
418 | ||
419 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
420 | ||
6fea4763 DE |
421 | Thu Sep 4 17:21:23 1997 Doug Evans <dje@seba> |
422 | ||
423 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
424 | ||
88117054 AC |
425 | Wed Aug 27 18:13:22 1997 Andrew Cagney <cagney@b1.cygnus.com> |
426 | ||
427 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
428 | * config.in: Ditto. | |
429 | ||
7230ff0f AC |
430 | Tue Aug 26 10:41:07 1997 Andrew Cagney <cagney@b1.cygnus.com> |
431 | ||
432 | * interp.c (sim_kill): Delete. | |
fafce69a AC |
433 | (sim_create_inferior): Add ABFD argument. |
434 | (sim_load): Move setting of PC from here. | |
435 | (sim_create_inferior): To here. | |
7230ff0f | 436 | |
247fccde AC |
437 | Mon Aug 25 17:50:22 1997 Andrew Cagney <cagney@b1.cygnus.com> |
438 | ||
439 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
440 | * config.in: Ditto. | |
441 | ||
442 | Mon Aug 25 16:14:44 1997 Andrew Cagney <cagney@b1.cygnus.com> | |
443 | ||
444 | * interp.c (sim_open): Add ABFD argument. | |
445 | ||
446 | Tue Jun 24 13:46:20 1997 Jeffrey A Law (law@cygnus.com) | |
447 | ||
448 | * interp.c (sim_resume): Clear State.exited. | |
449 | (sim_stop_reason): If State.exited is nonzero, then indicate that | |
450 | the simulator exited instead of stopped. | |
451 | * mn10300_sim.h (struct _state): Add exited field. | |
452 | * simops.c (syscall): Set State.exited for SYS_exit. | |
453 | ||
c370b3cd JL |
454 | Wed Jun 11 22:07:56 1997 Jeffrey A Law (law@cygnus.com) |
455 | ||
456 | * simops.c: Fix thinko in last change. | |
457 | ||
0a8fa63c JL |
458 | Tue Jun 10 12:31:32 1997 Jeffrey A Law (law@cygnus.com) |
459 | ||
dbdb5bd8 JL |
460 | * simops.c: "call" stores the callee saved registers into the |
461 | stack! Update the stack pointer properly when done with | |
462 | register saves. | |
463 | ||
0a8fa63c JL |
464 | * simops.c: Fix return address computation for "call" instructions. |
465 | ||
466 | Thu May 22 01:43:11 1997 Jeffrey A Law (law@cygnus.com) | |
467 | ||
468 | * interp.c (sim_open): Fix typo. | |
469 | ||
09e142d5 JL |
470 | Wed May 21 23:27:58 1997 Jeffrey A Law (law@cygnus.com) |
471 | ||
472 | * interp.c (sim_resume): Add missing case in big switch | |
473 | statement (for extb instruction). | |
474 | ||
003c91be JL |
475 | Tue May 20 17:51:30 1997 Jeffrey A Law (law@cygnus.com) |
476 | ||
477 | * interp.c: Replace all references to load_mem and store_mem | |
478 | with references to load_byte, load_half, load_3_byte, load_word | |
479 | and store_byte, store_half, store_3_byte, store_word. | |
480 | (INLINE): Delete definition. | |
481 | (load_mem_big): Likewise. | |
482 | (max_mem): Make it global. | |
483 | (dispatch): Make this function inline. | |
484 | (load_mem, store_mem): Delete functions. | |
485 | * mn10300_sim.h (INLINE): Define. | |
486 | (RLW): Delete unused definition. | |
487 | (load_mem, store_mem): Delete declarations. | |
488 | (load_mem_big): New definition. | |
489 | (load_byte, load_half, load_3_byte, load_word): New functions. | |
490 | (store_byte, store_half, store_3_byte, store_word): New functions. | |
491 | * simops.c: Replace all references to load_mem and store_mem | |
492 | with references to load_byte, load_half, load_3_byte, load_word | |
493 | and store_byte, store_half, store_3_byte, store_word. | |
494 | ||
495 | Tue May 20 10:21:51 1997 Andrew Cagney <cagney@b1.cygnus.com> | |
496 | ||
497 | * interp.c (sim_open): Add callback to arguments. | |
498 | (sim_set_callbacks): Delete SIM_DESC argument. | |
499 | ||
4df7aeb3 JL |
500 | Mon May 19 13:54:22 1997 Jeffrey A Law (law@cygnus.com) |
501 | ||
502 | * interp.c (dispatch): Make this an inline function. | |
503 | ||
504 | * simops.c (syscall): Use callback->write regardless of | |
505 | what file descriptor we're writing too. | |
506 | ||
b07a1e78 JL |
507 | Sun May 18 16:46:31 1997 Jeffrey A Law (law@cygnus.com) |
508 | ||
509 | * interp.c (load_mem_big): Remove function. It's now a macro | |
510 | defined elsewhere. | |
511 | (compare_simops): New function. | |
512 | (sim_open): Sort the Simops table before inserting entries | |
513 | into the hash table. | |
514 | * mn10300_sim.h: Remove unused #defines. | |
515 | (load_mem_big): Define. | |
516 | ||
234a9a49 JL |
517 | Fri May 16 16:36:17 1997 Jeffrey A Law (law@cygnus.com) |
518 | ||
519 | * interp.c (load_mem): If we get a load from an out of range | |
520 | address, abort. | |
521 | (store_mem): Likewise for stores. | |
522 | (max_mem): New variable. | |
523 | ||
baa83bcc JL |
524 | Tue May 6 13:24:36 1997 Jeffrey A Law (law@cygnus.com) |
525 | ||
8def9220 JL |
526 | * mn10300_sim.h: Fix ordering of bits in the PSW. |
527 | ||
baa83bcc JL |
528 | * interp.c: Improve hashing routine to avoid long list |
529 | traversals for common instructions. Add HASH_STAT support. | |
530 | Rewrite opcode dispatch code using a big switch instead of | |
531 | cascaded if/else statements. Avoid useless calls to load_mem. | |
532 | ||
26e9f63c JL |
533 | Mon May 5 18:07:48 1997 Jeffrey A Law (law@cygnus.com) |
534 | ||
535 | * mn10300_sim.h (struct _state): Add space for mdrq register. | |
536 | (REG_MDRQ): Define. | |
537 | * simops.c: Don't abort for trap. Add support for the extended | |
538 | instructions, "getx", "putx", "mulq", "mulqu", "sat16", "sat24", | |
539 | and "bsch". | |
540 | ||
541 | Thu Apr 24 00:39:51 1997 Doug Evans <dje@canuck.cygnus.com> | |
542 | ||
543 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
544 | ||
8517f62b AC |
545 | Fri Apr 18 14:04:04 1997 Andrew Cagney <cagney@b1.cygnus.com> |
546 | ||
547 | * interp.c (sim_stop): Add stub function. | |
548 | ||
6cc6987e DE |
549 | Thu Apr 17 03:26:59 1997 Doug Evans <dje@canuck.cygnus.com> |
550 | ||
551 | * Makefile.in (SIM_OBJS): Add sim-load.o. | |
552 | * interp.c (sim_kind, myname): New static locals. | |
553 | (sim_open): Set sim_kind, myname. Ignore -E arg. | |
554 | (sim_load): Return SIM_RC. New arg abfd. Call sim_load_file to | |
555 | load file into simulator. Set start address from bfd. | |
556 | (sim_create_inferior): Return SIM_RC. Delete arg start_address. | |
557 | ||
87e43259 AC |
558 | Wed Apr 16 19:30:44 1997 Andrew Cagney <cagney@b1.cygnus.com> |
559 | ||
560 | * simops.c (OP_F020): SYS_execv, SYS_time, SYS_times, SYS_utime | |
561 | only include if implemented by host. | |
562 | (OP_F020): Typecast arg passed to time function; | |
563 | ||
564 | Mon Apr 7 23:57:49 1997 Jeffrey A Law (law@cygnus.com) | |
565 | ||
566 | * simops.c (syscall): Handle new mn10300 calling conventions. | |
567 | ||
08db4a65 AC |
568 | Mon Apr 7 15:45:02 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
569 | ||
570 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
571 | * config.in: Ditto. | |
572 | ||
ea553f56 ILT |
573 | Fri Apr 4 20:02:37 1997 Ian Lance Taylor <ian@cygnus.com> |
574 | ||
575 | * Makefile.in: Change mn10300-opc.o to m10300-opc.o, to match | |
576 | corresponding change in opcodes directory. | |
577 | ||
fbda74b1 DE |
578 | Wed Apr 2 15:06:28 1997 Doug Evans <dje@canuck.cygnus.com> |
579 | ||
8a7c3105 DE |
580 | * interp.c (sim_open): New arg `kind'. |
581 | ||
fbda74b1 DE |
582 | * configure: Regenerated to track ../common/aclocal.m4 changes. |
583 | ||
a35e91c3 AC |
584 | Wed Apr 2 14:34:19 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
585 | ||
586 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
587 | ||
588 | Thu Mar 20 11:58:02 1997 Jeffrey A Law (law@cygnus.com) | |
589 | ||
590 | * simops.c: Fix register extraction for a two "movbu" variants. | |
591 | Somewhat simplify "sub" instructions. | |
592 | Correctly sign extend operands for "mul". Put the correct | |
593 | half of the result in MDR for "mul" and "mulu". | |
594 | Implement remaining instructions. | |
595 | Tweak opcode for "syscall". | |
596 | ||
597 | Tue Mar 18 14:21:21 1997 Jeffrey A Law (law@cygnus.com) | |
598 | ||
599 | * simops.c: Do syscall emulation in "syscall" instruction. Add | |
600 | dummy "trap" instruction. | |
601 | ||
c695046a AC |
602 | Wed Mar 19 01:14:00 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
603 | ||
604 | * configure: Regenerated to track ../common/aclocal.m4 changes. | |
605 | ||
a77aa7ec AC |
606 | Mon Mar 17 15:10:07 1997 Andrew Cagney <cagney@kremvax.cygnus.com> |
607 | ||
608 | * configure: Re-generate. | |
609 | ||
601fb8ae MM |
610 | Fri Mar 14 10:34:11 1997 Michael Meissner <meissner@cygnus.com> |
611 | ||
612 | * configure: Regenerate to track ../common/aclocal.m4 changes. | |
613 | ||
53b9417e DE |
614 | Thu Mar 13 12:54:45 1997 Doug Evans <dje@canuck.cygnus.com> |
615 | ||
616 | * interp.c (sim_open): New SIM_DESC result. Argument is now | |
617 | in argv form. | |
618 | (other sim_*): New SIM_DESC argument. | |
619 | ||
09eef8af JL |
620 | Wed Mar 12 15:04:00 1997 Jeffrey A Law (law@cygnus.com) |
621 | ||
0ade484f JL |
622 | * simops.c: Fix carry bit computation for "add" instructions. |
623 | ||
09eef8af JL |
624 | * simops.c: Fix typos in bset insns. Fix arguments to store_mem |
625 | for bset imm8,(d8,an) and bclr imm8,(d8,an). | |
626 | ||
627 | Wed Mar 5 15:00:10 1997 Jeffrey A Law (law@cygnus.com) | |
628 | ||
629 | * simops.c: Fix register references when computing Z and N bits | |
630 | for lsr imm8,dn. | |
631 | ||
632 | Tue Feb 4 13:33:30 1997 Doug Evans <dje@canuck.cygnus.com> | |
633 | ||
634 | * Makefile.in (@COMMON_MAKEFILE_FRAG): Use | |
635 | COMMON_{PRE,POST}_CONFIG_FRAG instead. | |
636 | * configure.in: sinclude ../common/aclocal.m4. | |
637 | * configure: Regenerated. | |
638 | ||
018f9eb4 JL |
639 | Fri Jan 24 10:47:25 1997 Jeffrey A Law (law@cygnus.com) |
640 | ||
641 | * interp.c (init_system): Allocate 2^19 bytes of space for the | |
642 | simulator. | |
643 | ||
295dbbe4 SG |
644 | Thu Jan 23 11:46:23 1997 Stu Grossman (grossman@critters.cygnus.com) |
645 | ||
646 | * configure configure.in Makefile.in: Update to new configure | |
647 | scheme which is more compatible with WinGDB builds. | |
648 | * configure.in: Improve comment on how to run autoconf. | |
649 | * configure: Re-run autoconf to get new ../common/aclocal.m4. | |
650 | * Makefile.in: Use autoconf substitution to install common | |
651 | makefile fragment. | |
652 | ||
f95251f0 JL |
653 | Tue Jan 21 15:03:04 1997 Jeffrey A Law (law@cygnus.com) |
654 | ||
655 | * simops.c: Undo last change to "rol" and "ror", original code | |
656 | was correct! | |
657 | ||
b4b290a0 JL |
658 | Thu Jan 16 11:28:14 1997 Jeffrey A Law (law@cygnus.com) |
659 | ||
660 | * simops.c: Fix "rol" and "ror". | |
661 | ||
662 | Wed Jan 15 06:45:58 1997 Jeffrey A Law (law@cygnus.com) | |
663 | ||
664 | * simops.c: Fix typo in last change. | |
665 | ||
2da0bc1b JL |
666 | Mon Jan 13 13:22:35 1997 Jeffrey A Law (law@cygnus.com) |
667 | ||
668 | * simops.c: Use REG macros in few places not using them yet. | |
669 | ||
bbd17062 JL |
670 | Mon Jan 6 16:21:19 1997 Jeffrey A Law (law@cygnus.com) |
671 | ||
672 | * mn10300_sim.h (struct _state): Fix number of registers! | |
673 | ||
b774c0e4 JL |
674 | Tue Dec 31 16:20:41 1996 Jeffrey A Law (law@cygnus.com) |
675 | ||
676 | * mn10300_sim.h (struct _state): Put all registers into a single | |
677 | array to make gdb implementation easier. | |
678 | (REG_*): Add definitions for all registers in the state array. | |
679 | (SEXT32, SEXT40, SEXT44, SEXT60): Remove unused macros. | |
680 | * simops.c: Related changes. | |
681 | ||
d657034d JL |
682 | Wed Dec 18 10:10:45 1996 Jeffrey A Law (law@cygnus.com) |
683 | ||
684 | * interp.c (sim_resume): Handle 0xff as a single byte insn. | |
685 | ||
686 | * simops.c: Fix overflow computation for "add" and "inc" | |
687 | instructions. | |
688 | ||
16d2e2b6 JL |
689 | Mon Dec 16 10:03:52 1996 Jeffrey A Law (law@cygnus.com) |
690 | ||
093e9a32 JL |
691 | * simops.c: Handle "break" instruction. |
692 | ||
16d2e2b6 JL |
693 | * simops.c: Fix restoring the PC for "ret" and "retf" instructions. |
694 | ||
695 | Wed Dec 11 09:53:10 1996 Jeffrey A Law (law@cygnus.com) | |
696 | ||
697 | * gencode.c (write_opcodes): Also write out the format of the | |
698 | opcode. | |
699 | * mn10300_sim.h (simops): Add "format" field. | |
700 | * interp.c (sim_resume): Deal with endianness issues here. | |
701 | ||
95d18eb7 JL |
702 | Tue Dec 10 15:05:37 1996 Jeffrey A Law (law@cygnus.com) |
703 | ||
704 | * simops.c (REG0_4): Define. | |
705 | Use REG0_4 for indexed loads/stores. | |
706 | ||
2e8f4133 JL |
707 | Sat Dec 7 09:50:28 1996 Jeffrey A Law (law@cygnus.com) |
708 | ||
709 | * simops.c (REG0_16): Fix typo. | |
710 | ||
d2523010 JL |
711 | Fri Dec 6 14:13:34 1996 Jeffrey A Law (law@cygnus.com) |
712 | ||
b2f7a7e5 JL |
713 | * simops.c: Call abort for any instruction that's not currently |
714 | simulated. | |
715 | ||
9f4a551e JL |
716 | * simops.c: Define accessor macros to extract register |
717 | values from instructions. Use them consistently. | |
718 | ||
7c52bf32 JL |
719 | * interp.c: Delete unused global variable "OP". |
720 | (sim_resume): Remove unused variable "opcode". | |
721 | * simops.c: Fix some uninitialized variable problems, add | |
722 | parens to fix various -Wall warnings. | |
723 | ||
d2523010 JL |
724 | * gencode.c (write_header): Add "insn" and "extension" arguments |
725 | to the OP_* declarations. | |
726 | (write_template): Similarly for function templates. | |
727 | * interp.c (insn, extension): Remove global variables. Instead | |
728 | pass them as arguments to the OP_* functions. | |
729 | * mn10300_sim.h: Remove decls for "insn" and "extension". | |
730 | * simops.c (OP_*): Accept "insn" and "extension" as arguments | |
731 | instead of using globals. | |
732 | ||
4d8ced6c JL |
733 | Thu Dec 5 22:26:31 1996 Jeffrey A Law (law@cygnus.com) |
734 | ||
e5a7a537 JL |
735 | * simops.c: Fix typos in "mov am,(d16,an)" and "mov am,(d32,an)" |
736 | ||
4d8ced6c JL |
737 | * simops.c: Fix thinkos in last change to "inc dn". |
738 | ||
61ecca95 JL |
739 | Wed Dec 4 10:57:53 1996 Jeffrey A Law (law@cygnus.com) |
740 | ||
741 | * simops.c: "add imm,sp" does not effect the condition codes. | |
742 | "inc dn" does effect the condition codes. | |
743 | ||
e4e13022 JL |
744 | Tue Dec 3 17:37:45 1996 Jeffrey A Law (law@cygnus.com) |
745 | ||
746 | * simops.c: Treat both operands as signed values for | |
747 | "div" instruction. | |
748 | ||
749 | * simops.c: Fix simulation of division instructions. | |
750 | Fix typos/thinkos in several "cmp" and "sub" instructions. | |
751 | ||
fcfaf40d JL |
752 | Mon Dec 2 12:31:40 1996 Jeffrey A Law (law@cygnus.com) |
753 | ||
e4e13022 JL |
754 | * simops.c: Fix carry bit handling in "sub" and "cmp" |
755 | instructions. | |
756 | ||
fcfaf40d JL |
757 | * simops.c: Fix "mov imm8,an" and "mov imm16,dn". |
758 | ||
6db7fc49 JL |
759 | Sun Dec 1 16:05:42 1996 Jeffrey A Law (law@cygnus.com) |
760 | ||
b7b89deb JL |
761 | * simops.c: Fix overflow computation for many instructions. |
762 | ||
e5a7a537 | 763 | * simops.c: Fix "mov dm, an", "movbu dm, (an)", and "movhu dm, (an)". |
af388638 | 764 | |
c8f0171f JL |
765 | * simops.c: Fix "mov am, dn". |
766 | ||
6db7fc49 JL |
767 | * simops.c: Fix more bugs in "add imm,an" and |
768 | "add imm,dn". | |
769 | ||
f5f13c1d JL |
770 | Wed Nov 27 09:20:42 1996 Jeffrey A Law (law@cygnus.com) |
771 | ||
6e7a01c1 JL |
772 | * simops.c: Fix bugs in "movm" and "add imm,an". |
773 | ||
3bb3fe44 JL |
774 | * simops.c: Don't lose the upper 24 bits of the return |
775 | pointer in "call" and "calls" instructions. Rough cut | |
776 | at emulated system calls. | |
777 | ||
de0dce7c JL |
778 | * simops.c: Implement the remaining 5, 6 and 7 byte instructions. |
779 | ||
ecb4b5a3 JL |
780 | * simops.c: Implement remaining 4 byte instructions. |
781 | ||
782 | * simops.c: Implement remaining 3 byte instructions. | |
2e35551c | 783 | |
f5f13c1d JL |
784 | * simops.c: Implement remaining 2 byte instructions. Call |
785 | abort for instructions we're not implementing now. | |
786 | ||
73e65298 JL |
787 | Tue Nov 26 15:43:41 1996 Jeffrey A Law (law@cygnus.com) |
788 | ||
707641f6 JL |
789 | * simops.c: Implement lots of random instructions. |
790 | ||
1f3bea21 JL |
791 | * simops.c: Implement "movm" and "bCC" insns. |
792 | ||
92284aaa JL |
793 | * mn10300_sim.h (_state): Add another register (MDR). |
794 | (REG_MDR): Define. | |
795 | * simops.c: Implement "cmp", "calls", "rets", "jmp" and | |
796 | a few additional random insns. | |
797 | ||
73e65298 JL |
798 | * mn10300_sim.h (PSW_*): Define for CC status tracking. |
799 | (REG_D0, REG_A0, REG_SP): Define. | |
800 | * simops.c: Implement "add", "addc" and a few other random | |
801 | instructions. | |
b5f831ac JL |
802 | |
803 | * gencode.c, interp.c: Snapshot current simulator code. | |
804 | ||
05ccbdfd JL |
805 | Mon Nov 25 12:46:38 1996 Jeffrey A Law (law@cygnus.com) |
806 | ||
807 | * Makefile.in, config.in, configure, configure.in: New files. | |
808 | * gencode.c, interp.c, mn10300_sim.h, simops.c: New files. | |
809 |