]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/m68hc11/ChangeLog
* osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
[thirdparty/binutils-gdb.git] / sim / m68hc11 / ChangeLog
CommitLineData
86596dc8
SC
12002-03-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2
3 * m68hc11_sim.c (cpu_move8): Call sim_engine_abort in default case.
4 (cpu_move16): Likewise.
5 (sim_memory_error): Use sim_io_printf.
6 (cpu_option_handler): Fix compilation warning.
7 * interp.c (sim_hw_configure): Fix compilation warning;
8 remove m68hc12sio@2 device.
9 (sim_open): Likewise.
10 * dv-m68hc11tim.c (m68hc11tim_port_event): Fix clear of TFLG2
11 flags when reset.
12 (cycle_to_string): Improve convertion of cpu cycle number.
13 (m68hc11tim_info): Print info about PACNT.
14 (m68hc11tim_io_write_buffer): Fix clearing of TFLG2; handle
15 TCTL1 and TCTL2 registers.
16 * dv-m68hc11.c (m68hc11_info): Print 6811 current running mode.
17
827ec39a
SC
182002-03-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
19
20 * interp.c (sim_hw_configure): Save the HW cpu pointer in the
21 cpu struct.
22 (sim_hw_configure): Connect the capture input/output events.
23 * sim-main.h (_sim_cpu): New member hw_cpu.
24 (m68hc11cpu_set_oscillator): Declare.
25 (m68hc11cpu_clear_oscillator): Declare.
26 (m68hc11cpu_set_port): Declare.
27 * dv-m68hc11.c (m68hc11_options): New for oscillator commands.
28 (m68hc11cpu_ports): New input ports and output ports to reflect
29 the HC11 IOs.
30 (m68hc11_delete): Cleanup any running oscillator.
31 (attach_m68hc11_regs): Create the input oscillators.
32 (make_oscillator): New function.
33 (find_oscillator): New function.
34 (oscillator_handler): New function.
35 (reset_oscillators): New function.
36 (m68hc11cpu_port_event): Handle the new input ports.
37 (m68hc11cpu_set_oscillator): New function.
38 (m68hc11cpu_clear_oscillator): New function.
39 (get_frequency): New function.
40 (m68hc11_option_handler): New function.
41 (m68hc11cpu_set_port): New function.
42 (m68hc11cpu_io_write): Post the port output events.
43 * dv-m68hc11spi.c (set_bit_port): Use m68hc11cpu_set_port to set
44 the output port value.
45 * dv-m68hc11tim.c (m68hc11tim_port_event): Handle CAPTURE event
46 by latching the TCNT value in the register.
47
5abb9efa
SC
482002-03-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
49
50 * sim-main.h (cpu_frame, cpu_frame_list): Remove.
51 (cpu_frame_reg, cpu_print_frame): Remove.
52 (cpu_m68hc11_push_uint8, cpu_m68hc11_pop_uint8): Cleanup.
53 (cpu_m68hc11_push_uint16, cpu_m68hc11_pop_uint16): Likewise.
54 (cpu_m68hc12_push_uint8, cpu_m68hc12_push_uint16): Likewise.
55 (cpu_m68hc12_pop_uint8, cpu_m68hc12_pop_uint16): Likewise.
56 * m68hc11_sim.c (cpu_find_frame): Remove.
57 (cpu_create_frame_list): Remove.
58 (cpu_remove_frame_list, cpu_create_frame, cpu_free_frame): Remove.
59 (cpu_frame_reg, cpu_print_frame, cpu_update_frame): Remove.
60 (cpu_call): Cleanup to remove #if HAVE_FRAME and calls to the above.
61 (cpu_update_frame): Likewise.
62 (cpu_return): Likewise.
63 (cpu_reset): Likewise.
64 (cpu_initialize): Likewise.
65 * interp.c (sim_do_command): Remove call to cpu_print_frame.
66
26128965
SC
672002-03-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
68
69 * interrupts.c (interrupts_reset): New function, setup interrupt
70 vector address according to cpu mode.
71 (interrupts_initialize): Move reset portion to the above.
72 (interrupt_names): New table to give a name to interrupts.
73 (idefs): Handle pulse accumulator interrupts.
74 (interrupts_info): Print the interrupt history.
75 (interrupt_option_handler): New function.
76 (interrupt_options): New table of options.
77 (interrupts_update_pending): Keep track of when interrupts are
78 raised and implement breakpoint-on-raise-interrupt.
79 (interrupts_process): Keep track of when interrupts are taken
80 and implement breakpoint-on-interrupt.
81 * interrupts.h (struct interrupt_history): Define.
82 (struct interrupt): Keep track of the interrupt history.
83 (interrupts_reset): Declare.
84 (interrupts_initialize): Update prototype.
85 * m68hc11_sim.c (cpu_reset): Reset interrupts.
86 (cpu_initialize): Cleanup.
87
eefde351
SC
882001-07-28 Stephane Carrez <Stephane.Carrez@worldnet.fr>
89
90 * dv-m68hc11eepr.c (m68hc11eepr_info): Fix print of current write
91 address.
92 (m68hc11eepr_port_event): Fix detach/attach logic.
93
00d0c012
SC
942001-07-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
95
96 * Makefile.in (SIM_OBJS): Remove sim-resume.o
97 * interp.c (sim_resume): New function from sim-resume.c, install
98 the stepping event after having processed the pending ticks.
99 (has_stepped): Likewise.
100 (sim_info): Produce an output only if verbose or STATE_VERBOSE_P.
101
b51c7603
AC
1022001-07-10 Andrew Cagney <ac131313@redhat.com>
103
104 * Makefile.in (gencode): Provide explicit path to gencode.c.
105
81e09ed8
SC
1062001-05-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
107
108 * Makefile.in (M68HC11_OBJS): Add m68hc12int.o.
109 (m68hc12int.c): Generate using gencode -m6812.
110 (m68hc11int.c): Likewise with -m6811.
111
112 * gencode.c (m6811_opcode_patterns): New patterns for 68HC12.
113 (m6811_page1_opcodes): Remove duplicate entries.
114 (m6811_page2_opcodes): Likewise.
115 (m6811_page3_opcodes): Likewise.
116 (m6811_page4_opcodes): Likewise.
117 (m6812_page1_opcodes): New table for 68HC12 instructions.
118 (m6812_page2_opcodes): Likewise.
119 (gen_fetch_operands): New modes [] and &[] for 68HC12 operands.
120 (gen_save_result): Likewise.
121 (gen_interpreter_for_table): Handle 68HC11 and 68HC12 opcodes.
122 (cmp_opcode): New function for opcode comparision.
123 (prepare_table): Sort the opcodes.
124 (gen_interpreter): Prepare all the tables and generate either
125 a 68HC11 or a 68HC12 simulator.
126 (main): New options -m6811 and -m6812.
127
128 * m68hc11_sim.c (cpu_single_step): Use pointer to cpu interpretor.
129 (cpu_special): Simulation of some 68HC12 instructions.
130 (cpu_exg): New function.
131 (cpu_dbcc): Likewise.
132 (cpu_fetch_relbranch16): Likewise.
133 (cpu_push_all): Push according to 68HC11 or 68HC12.
134 (cpu_move16): Likewise.
135 (cpu_move8): Likewise.
136 (cpu_get_indexed_operand16): Likewise.
137 (cpu_get_indexed_operand8): Likewise.
138 (cpu_get_indexed_operand_addr): Likewise.
139 (cpu_set_reg, cpu_set_dst_reg, cpu_get_src_reg, cpu_get_reg): Likewise.
140 (cpu_reset): Setup INIT register according to architecture.
141
142 * sim-main.h (M6811_Special): Add 68HC12 specific instructions.
143 (_sim_cpu): Keep track of the cpu being simulated.
144 (cpu_get_tmp3, cpu_get_tmp2, cpu_set_tmp3, cpu_set_tmp2): New.
145 (cpu_m68hc11_push_uintxx): Rename of cpu_push_uintxx.
146 (cpu_m68hc11_pop_uint8): Likewise.
147 (cpu_m68hc12_push_uintxx): New functions for 68HC12.
148 (cpu_m68hc12_pop_uintxx): Likewise.
149 (cpu_exg, cpu_dbcc, cpu_move8, cpu_move16): Likewise,
150 (cpu_fetch_relbranch16): Likewise.
151 (cpu_interp_m6811): Rename of cpu_interp.
152 (cpu_interp_m6812): New function.
153 * interp.c (free_state): New function.
154 (dev_list_68hc12): New table.
155 (sim_board_reset): Reset depending on the cpu (HC11 or HC12).
156 (sim_hw_configure): New function.
157 (sim_prepare_for_program): New function.
158 (sim_open): Use above new functions.
159 (sim_close): Call free_state().
160 (sim_info): Print info according to cpu.
161 (sim_create_inferior): Use sim_prepare_for_program.
162 (sim_do_command): Configure the hardware after a change of the
163 architecture.
164
11115521
SC
1652001-05-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
166
167 * dv-m68hc11sio.c (m68hc11sio_tx_poll): Always check for
168 pending interrupts.
169 * interrupts.c (interrupts_process): Keep track of the last number
170 of masked insn cycles.
171 (interrupts_initialize): Clear last number of masked insn cycles.
172 (interrupts_info): Report them.
173 (interrupts_update_pending): Compute clear and set masks of
174 interrupts and clear the interrupt bits before setting them
175 (due to SCI interrupt sharing).
176 * interrupts.h (struct interrupts): New members last_mask_cycles
177 and xirq_last_mask_cycles.
178
b93775f5
SC
1792000-11-26 Stephane Carrez <Stephane.Carrez@worldnet.fr>
180
181 * dv-m68hc11.c (m68hc11cpu_io_read_buffer): Use attach_size
182 instead of a hard-coded value.
183 (m68hc11cpu_io_write_buffer): Likewise.
184 (dv_m68hc11_descriptor): Define a 68hc12 device.
185 * dv-m68hc11eepr.c (dv_m68hc11eepr_descriptor): Likewise.
186 * dv-m68hc11tim.c (dv_m68hc11tim_descriptor): Likewise.
187 * dv-m68hc11spi.c (dv_m68hc11spi_descriptor): Likewise.
188 * dv-m68hc11sio.c (dv_m68hc11sio_descriptor): Likewise.
189
639aa4f7
SC
1902000-11-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
191
192 * dv-m68hc11.c (attach_m68hc11_regs): Register a delete handler.
193 (m68hc11cpu_delete): Delete handler to detach the address space.
194
6e73e7ed
SC
1952000-11-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
196
197 * dv-m68hc11eepr.c (attach_m68hc11eepr_regs): Use hw_malloc.
198 * dv-nvram.c (attach_nvram_regs): Use hw_free and hw_malloc
199 instead of free and malloc.
200
5f186447
SC
2012000-09-11 Stephane Carrez <Stephane.Carrez@worldnet.fr>
202
203 * Makefile.in: Was missing from initial patch.
204
9830501b
SC
2052000-09-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
206
207 * interp.c (sim_store_register): Remove soft register hack.
208 (sim_fetch_register): Likewise.
209 (sim_create_inferior): Likewise.
210 * sim-main.h: Likewise.
211
a8afa79a
SC
2122000-09-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
213
214 * interrupts.c (interrupts_update_pending): Clear the mask of
215 pending interrupts here.
216 (interrupts_get_current): Don't clear the mask of pending interrupts.
217
2990a9f4
SC
2182000-09-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
219
220 * sim-main.h: Define cycle_to_string.
221 * dv-m68hc11tim.c (cycle_to_string): New function to translate
222 the cpu cycle into some formatted time string.
223 (m68hc11tim_print_timer): Use it.
224 * dv-m68hc11sio.c (m68hc11sio_info): Use cycle_to_string.
225 * dv-m68hc11spi.c (m68hc11spi_info): Likewise.
226 * interrupts.c (interrupts_info): Likewise.
227 * m68hc11_sim.c (cpu_info): Likewise.
228
401493c8
SC
2292000-09-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
230
231 * dv-m68hc11tim.c (m68hc11tim_timer_event): Compute the overflow
232 interrupt and compare events accurately. Take into account the
233 pending ticks not processed by the simulator yet (introduced a shift).
234 (m68hc11_port_event): Reset the timer interrupt delays.
235 (m68hc11tim_io_read_buffer): Be able to read several bytes.
236 (m68hc11tim_io_write_buffer): Likewise for write.
237 (m68hc11tim_io_write_buffer): Recompute the timer overflow interrupt.
238
4d72d17a
SC
2392000-09-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
240
241 * dv-m68hc11spi.c (m68hc11spi_io_read_buffer): Clear the interrupts.
242 (m68hc11spi_io_write_buffer): Likewise and fix the spi frame.
243 (m68hc11spi_info): Clarify the status report
244 of the SPI when a byte is being sent.
245 (m68hc11spi_clock): Fix the spi send frame.
246
63348d04
SC
2472000-08-11 Stephane Carrez <Stephane.Carrez@worldnet.fr>
248
249 * sim-main.h (m68hc11_map_level): Define level of address mappings.
250 * dv-m68hc11eepr.c (struct m68hc11eepr ): New flag to indicate
251 whether the eeprom is currently mapped or not.
252 (m68hc11eepr_port_event): Use the flag to see if we must unmap
253 or map the eeprom. Update the flag to reflect the current state.
254 Use M6811_EEPROM_LEVEL when mapping the eeprom.
255 (m68hc11eepr_finish): Remove overlap hack.
256 (attach_m68hc11eepr_regs): Use M6811_IO_LEVEL when mapping the
257 config and control registers.
258 * dv-m68hc11.c (m68hc11cpu_finish): Remove overlap hack.
259 (attach_m68hc11_regs): Use M6811_IO_LEVEL.
260 (m68hc11cpu_io_write): Likewise when unmapping and re-mapping.
261 * dv-m68hc11spi.c (m68hc11spi_finish): Likewise.
262 (attach_m68hc11spi_regs): Likewise.
263 * dv-m68hc11tim.c (m68hc11tim_finish): Likewise.
264 (attach_m68hc11tim_regs): Likewise.
265 * dv-m68hc11sio.c (m68hc11sio_finish): Likewise.
266 (attach_m68hc11sio_regs): Likewise.
267 * interp.c (sim_open): Likewise.
268 * dv-nvram.c (attach_nvram_regs): Likewise.
269
5d031c16
AC
270Thu Jul 27 21:27:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
271
272 * configure, config.in: Regenerate.
273
e0709f50
AC
2742000-06-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
275
276 * Makefile.in (SIM_RUN_OBJS): Define to use nrun.c
277 * dv-m68hc11.c (m68hc11cpu_finish): Register detach address callback.
278 (dv_m6811_detach_address_callback): New function to detach a
279 device from an address space.
280 * dv-m68hc11eepr.c (m68hc11eepr_port_event): Initialize
281 config register according to --cpu-config option.
282 * sim-main.h (_sim_cpu): Add cpu_config member.
283 * interp.c (sim_open): Delete specific simulator options.
284 * m68hc11_sim.c (cpu_option_handler): New options
285 --emulos and -cpu-config <val> to configure the simulator.
286 (cpu_initialize): Initialize cpu_config member.
287
2882000-06-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
289
290 * emulos.c: Fix indentation and comments.
291 * gencode.c: Likewise.
292 * dv-m68hc11tim.c (m68hc11tim_timer_event): Handle COMPARE_EVENT.
293 (m68hc11tim_io_write_buffer): Write compare registers and
294 setup compare event.
295 * interp.c: Remove unused global variables.
296 * interrupts.c (idefs): New compare interrupts.
297 Fix indentation and comments.
298 * interrupts.h: Likewise.
299
3002000-06-18 Stephane Carrez <Stephane.Carrez@worldnet.fr>
301
302 * dv-m68hc11sio.c: Fix indentation and comments.
303 Remove INT_PORT.
304 * dv-m68hc11.c: Fix indentation and comments.
305 (m68hc11cpu_port_event): Move initialization of M6811_HPRIO from here.
306 * m68hc11_sim.c (cpu_reset): To here.
307 * dv-m68hc11eepr.c: Fix indentation and comments.
308
3092000-06-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
310
311 * dv-nvram.c: New file, rename from dv-pram.c.
312 * dv-pram.c: Delete file.
313 * sim-main.h: Incorporate m68hc11_sim.h.
314 * m68hc11_sim.h: Delete file.
315 * configure.in: Rename pram into nvram.
316 * interp.c (sim_open): Likewise in creation of device tree.
317
3182000-05-31 Stephane Carrez <Stephane.Carrez@worldnet.fr>
319
320 * interp.c (sim_open): Create the SPI device.
321 * dv-m68hc11spi.c: New file for SPI device simulation.
322 * configure.in (hw_extra_devices): Add SPI device.
323
3242000-05-28 Stephane Carrez <Stephane.Carrez@worldnet.fr>
325
326 * interrupts.c (interrupts_initialize): Clear XIRQ accounting.
327 (interrupts_process): Separate IRQ and XIRQ accounting.
328 (interrupts_info): Report XIRQ accounting.
329 * interrupts.h (struct interrupts): Added accounting for XIRQ.
330
3312000-04-16 Stephane Carrez <stcarrez@worldnet.fr>
332
333 * dv-pram.c (attach_pram_regs): Fix the 'save-modified' mode.
334 * m68hc11_sim.h (_sim_cpu): Allow configuration of cpu mode.
335 * dv-m68hc11.c (attach_m68hc11_regs): Get the cpu MODA,MODB
336 configuration from the 'mode' device tree property.
337 (m68hc11cpu_port_event): Reset M6811_HPRIO to the cpu MODA, MODB
338 configuration.
339
3402000-02-24 Stephane Carrez <stcarrez@worldnet.fr>
341
342 * sim-main.h: Remove WITH_TARGET_* defines.
343 * Makefile.in (SIM_EXTRA_CFLAGS): Specify the WITH_TARGET_* flags.
344
3452000-02-08 Stephane Carrez <stcarrez@worldnet.fr>
346
347 * dv-m68hc11sio.c (m68hc11sio_port_event): Setup the SCI to
348 1200 baud when cpu is in bootstrap mode.
349
350 * dv-m68hc11tim.c (m68hc11tim_io_write_buffer): Be able to
351 write in the TCTN timer register.
352
353 * dv-m68hc11sio.c (m68hc11sio_io_write_buffer): Divide cpu clock
354 by 4 to obtain the E clock frequency.
355 (sccr2_desc): Use M6811_TIE for TIE bit.
356 (m68hc11sio_info): Fix baud rate report.
357
358 * dv-m68hc11tim.c (to_realtime): Likewise.
359
360 * interp.c (sim_open): When building device tree, only provide
361 devices that do not exist yet.
362
363 * emulos.c: Fix compilation pb under Windows.
364
365 * dv-m68hc11.c (attach_m68hc11_regs): Get the clock frequency
366 from the 'clock' property.
367
3682000-01-02 Stephane Carrez <stcarrez@worldnet.fr>
369
370 * m68hc11_sim.h (*_REGNUM): Define.
371 (_sim_cpu): New member cpu_page0_reg table.
372 * interp.c (sim_create_inferior): Fill the cpu_page0_reg table with
373 addresses of soft registers in .page0.
374 (sim_fetch_register, sim_store_register): Use cpu_page0_reg table
375 to get/set soft registers.
376
3771999-12-31 Stephane Carrez <stcarrez@worldnet.fr>
378
379 * dv-m68hc11.c (m68hc11cpu_io_write_buffer): Clear byte to avoid
380 returning random values.
381
3821999-12-17 Stephane Carrez <stcarrez@worldnet.fr>
383
384 * gencode.c: Fix "subb N,x" that used a instead of b.
385
3861999-09-09 Stephane Carrez <stcarrez@worldnet.fr>
387
388 * gencode.c: Fixed sbc8 and adc8 when there was a initial carry.
389
3901999-09-01 Stephane Carrez <stcarrez@worldnet.fr>
391
392 * sim-main.h (SIM_HANDLES_LMA): Define to enable loading using lma.
393
3941999-08-14 Stephane Carrez <stcarrez@worldnet.fr>
395
396 * dv-m68hc11.c (attach_m68hc11_regs): Save the size of the
397 register region in the m68hc11cpu struct.
398 (m68hc11cpu_io_write): When the IO mapping addres changes,
399 detach the register region and re-attach it at the new address.
400 (m68hc11cpu_io_read_buffer): Renamed base_address into
401 attach_address.
402 (m68hc11cpu_io_write_buffer): Likewise. Pass the hw pointer
403 to m68hc11cpu_io_write.
404
4051999-08-13 Stephane Carrez <stcarrez@worldnet.fr>
406
407 * gencode.c: For sbc8, check the carry and increment the source
408 before trying to set the carry for the result.
409
4101999-05-24 John S. Kallal <kallal@voicenet.com>
411
412 * interp.c (sim_get_info): Don't crash if the command line is 0.
413 Define prototype for sim_get_info() and init_system().
414 (sim_info): Correct call to sim_get_info().
415
4161999-05-16 Stephane Carrez <stcarrez@worldnet.fr>
417
418 * configure.in: Recognize m6811-*-*.
419 * configure: Regenerate.
420 * m68hc11_sim.h (cpu_ccr_update_add8, cpu_ccr_update_add16,
421 cpu_ccr_update_sub8, cpu_ccr_update_sub16):
422 Correct the computation of carry of 8 and 16-bits add and subtract.
423 * gencode.c: Use cpu_ccr_update_sub8 for subtraction (carry and
424 overflow set in a different manner than add).
425
4261999-05-14 Stephane Carrez <stcarrez@worldnet.fr>
427
428 * dv-m68hc11.c (dv_m6811_attach_address_callback): Removed a
429 trace message.
430 * interp.c (sim_open, sim_create_inferior): Initialize the
431 cpu_elf_start from the ELF header.
432 * m68hc11_sim.c (cpu_initialize): Clear the new data members.
433 (cpu_restart): Use cpu_elf_start as the starting address when
434 the flag is set.
435 (cpu_special): When cpu_use_elf_start is set, the WAI instruction
436 exits the simulator (exit status is in D).
437 * m68hc11_sim.h (_sim_cpu): Added members cpu_use_elf_start and
438 cpu_elf_star to start execution at address specified in ELF file.
439
4401999-05-02 Stephane Carrez <stcarrez@worldnet.fr>
441
442 * Makefile.in, config.in, configure, configure.in: New files.
443 * gencode.c: New file, generation of 68HC11 interpreter.
444 * m68hc11_sim.h, m68hc11_sim.c: New files, specific operations
445 for interpreter.
446 * interrupts.c, interrupts.h: New files, management of interrupts.
447 * interp.c, sim-main.h,
448 * dv-m68hc11.c, dv-m68hc11eepr.c, dv-m68hc11sio.c,
449 dv-m68hc11tim.c, dv-pram.c: New files representing devices for
450 68HC11 (dv-pram.c is generic and could probably migrate to common).
451 * emulos.c: New file, basic emulation of some os.