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