]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/m68hc11/ChangeLog
*** empty log message ***
[thirdparty/binutils-gdb.git] / sim / m68hc11 / ChangeLog
CommitLineData
b51c7603
AC
12001-07-10 Andrew Cagney <ac131313@redhat.com>
2
3 * Makefile.in (gencode): Provide explicit path to gencode.c.
4
81e09ed8
SC
52001-05-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
6
7 * Makefile.in (M68HC11_OBJS): Add m68hc12int.o.
8 (m68hc12int.c): Generate using gencode -m6812.
9 (m68hc11int.c): Likewise with -m6811.
10
11 * gencode.c (m6811_opcode_patterns): New patterns for 68HC12.
12 (m6811_page1_opcodes): Remove duplicate entries.
13 (m6811_page2_opcodes): Likewise.
14 (m6811_page3_opcodes): Likewise.
15 (m6811_page4_opcodes): Likewise.
16 (m6812_page1_opcodes): New table for 68HC12 instructions.
17 (m6812_page2_opcodes): Likewise.
18 (gen_fetch_operands): New modes [] and &[] for 68HC12 operands.
19 (gen_save_result): Likewise.
20 (gen_interpreter_for_table): Handle 68HC11 and 68HC12 opcodes.
21 (cmp_opcode): New function for opcode comparision.
22 (prepare_table): Sort the opcodes.
23 (gen_interpreter): Prepare all the tables and generate either
24 a 68HC11 or a 68HC12 simulator.
25 (main): New options -m6811 and -m6812.
26
27 * m68hc11_sim.c (cpu_single_step): Use pointer to cpu interpretor.
28 (cpu_special): Simulation of some 68HC12 instructions.
29 (cpu_exg): New function.
30 (cpu_dbcc): Likewise.
31 (cpu_fetch_relbranch16): Likewise.
32 (cpu_push_all): Push according to 68HC11 or 68HC12.
33 (cpu_move16): Likewise.
34 (cpu_move8): Likewise.
35 (cpu_get_indexed_operand16): Likewise.
36 (cpu_get_indexed_operand8): Likewise.
37 (cpu_get_indexed_operand_addr): Likewise.
38 (cpu_set_reg, cpu_set_dst_reg, cpu_get_src_reg, cpu_get_reg): Likewise.
39 (cpu_reset): Setup INIT register according to architecture.
40
41 * sim-main.h (M6811_Special): Add 68HC12 specific instructions.
42 (_sim_cpu): Keep track of the cpu being simulated.
43 (cpu_get_tmp3, cpu_get_tmp2, cpu_set_tmp3, cpu_set_tmp2): New.
44 (cpu_m68hc11_push_uintxx): Rename of cpu_push_uintxx.
45 (cpu_m68hc11_pop_uint8): Likewise.
46 (cpu_m68hc12_push_uintxx): New functions for 68HC12.
47 (cpu_m68hc12_pop_uintxx): Likewise.
48 (cpu_exg, cpu_dbcc, cpu_move8, cpu_move16): Likewise,
49 (cpu_fetch_relbranch16): Likewise.
50 (cpu_interp_m6811): Rename of cpu_interp.
51 (cpu_interp_m6812): New function.
52 * interp.c (free_state): New function.
53 (dev_list_68hc12): New table.
54 (sim_board_reset): Reset depending on the cpu (HC11 or HC12).
55 (sim_hw_configure): New function.
56 (sim_prepare_for_program): New function.
57 (sim_open): Use above new functions.
58 (sim_close): Call free_state().
59 (sim_info): Print info according to cpu.
60 (sim_create_inferior): Use sim_prepare_for_program.
61 (sim_do_command): Configure the hardware after a change of the
62 architecture.
63
11115521
SC
642001-05-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
65
66 * dv-m68hc11sio.c (m68hc11sio_tx_poll): Always check for
67 pending interrupts.
68 * interrupts.c (interrupts_process): Keep track of the last number
69 of masked insn cycles.
70 (interrupts_initialize): Clear last number of masked insn cycles.
71 (interrupts_info): Report them.
72 (interrupts_update_pending): Compute clear and set masks of
73 interrupts and clear the interrupt bits before setting them
74 (due to SCI interrupt sharing).
75 * interrupts.h (struct interrupts): New members last_mask_cycles
76 and xirq_last_mask_cycles.
77
b93775f5
SC
782000-11-26 Stephane Carrez <Stephane.Carrez@worldnet.fr>
79
80 * dv-m68hc11.c (m68hc11cpu_io_read_buffer): Use attach_size
81 instead of a hard-coded value.
82 (m68hc11cpu_io_write_buffer): Likewise.
83 (dv_m68hc11_descriptor): Define a 68hc12 device.
84 * dv-m68hc11eepr.c (dv_m68hc11eepr_descriptor): Likewise.
85 * dv-m68hc11tim.c (dv_m68hc11tim_descriptor): Likewise.
86 * dv-m68hc11spi.c (dv_m68hc11spi_descriptor): Likewise.
87 * dv-m68hc11sio.c (dv_m68hc11sio_descriptor): Likewise.
88
639aa4f7
SC
892000-11-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
90
91 * dv-m68hc11.c (attach_m68hc11_regs): Register a delete handler.
92 (m68hc11cpu_delete): Delete handler to detach the address space.
93
6e73e7ed
SC
942000-11-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
95
96 * dv-m68hc11eepr.c (attach_m68hc11eepr_regs): Use hw_malloc.
97 * dv-nvram.c (attach_nvram_regs): Use hw_free and hw_malloc
98 instead of free and malloc.
99
5f186447
SC
1002000-09-11 Stephane Carrez <Stephane.Carrez@worldnet.fr>
101
102 * Makefile.in: Was missing from initial patch.
103
9830501b
SC
1042000-09-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
105
106 * interp.c (sim_store_register): Remove soft register hack.
107 (sim_fetch_register): Likewise.
108 (sim_create_inferior): Likewise.
109 * sim-main.h: Likewise.
110
a8afa79a
SC
1112000-09-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
112
113 * interrupts.c (interrupts_update_pending): Clear the mask of
114 pending interrupts here.
115 (interrupts_get_current): Don't clear the mask of pending interrupts.
116
2990a9f4
SC
1172000-09-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
118
119 * sim-main.h: Define cycle_to_string.
120 * dv-m68hc11tim.c (cycle_to_string): New function to translate
121 the cpu cycle into some formatted time string.
122 (m68hc11tim_print_timer): Use it.
123 * dv-m68hc11sio.c (m68hc11sio_info): Use cycle_to_string.
124 * dv-m68hc11spi.c (m68hc11spi_info): Likewise.
125 * interrupts.c (interrupts_info): Likewise.
126 * m68hc11_sim.c (cpu_info): Likewise.
127
401493c8
SC
1282000-09-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
129
130 * dv-m68hc11tim.c (m68hc11tim_timer_event): Compute the overflow
131 interrupt and compare events accurately. Take into account the
132 pending ticks not processed by the simulator yet (introduced a shift).
133 (m68hc11_port_event): Reset the timer interrupt delays.
134 (m68hc11tim_io_read_buffer): Be able to read several bytes.
135 (m68hc11tim_io_write_buffer): Likewise for write.
136 (m68hc11tim_io_write_buffer): Recompute the timer overflow interrupt.
137
4d72d17a
SC
1382000-09-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
139
140 * dv-m68hc11spi.c (m68hc11spi_io_read_buffer): Clear the interrupts.
141 (m68hc11spi_io_write_buffer): Likewise and fix the spi frame.
142 (m68hc11spi_info): Clarify the status report
143 of the SPI when a byte is being sent.
144 (m68hc11spi_clock): Fix the spi send frame.
145
63348d04
SC
1462000-08-11 Stephane Carrez <Stephane.Carrez@worldnet.fr>
147
148 * sim-main.h (m68hc11_map_level): Define level of address mappings.
149 * dv-m68hc11eepr.c (struct m68hc11eepr ): New flag to indicate
150 whether the eeprom is currently mapped or not.
151 (m68hc11eepr_port_event): Use the flag to see if we must unmap
152 or map the eeprom. Update the flag to reflect the current state.
153 Use M6811_EEPROM_LEVEL when mapping the eeprom.
154 (m68hc11eepr_finish): Remove overlap hack.
155 (attach_m68hc11eepr_regs): Use M6811_IO_LEVEL when mapping the
156 config and control registers.
157 * dv-m68hc11.c (m68hc11cpu_finish): Remove overlap hack.
158 (attach_m68hc11_regs): Use M6811_IO_LEVEL.
159 (m68hc11cpu_io_write): Likewise when unmapping and re-mapping.
160 * dv-m68hc11spi.c (m68hc11spi_finish): Likewise.
161 (attach_m68hc11spi_regs): Likewise.
162 * dv-m68hc11tim.c (m68hc11tim_finish): Likewise.
163 (attach_m68hc11tim_regs): Likewise.
164 * dv-m68hc11sio.c (m68hc11sio_finish): Likewise.
165 (attach_m68hc11sio_regs): Likewise.
166 * interp.c (sim_open): Likewise.
167 * dv-nvram.c (attach_nvram_regs): Likewise.
168
5d031c16
AC
169Thu Jul 27 21:27:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
170
171 * configure, config.in: Regenerate.
172
e0709f50
AC
1732000-06-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
174
175 * Makefile.in (SIM_RUN_OBJS): Define to use nrun.c
176 * dv-m68hc11.c (m68hc11cpu_finish): Register detach address callback.
177 (dv_m6811_detach_address_callback): New function to detach a
178 device from an address space.
179 * dv-m68hc11eepr.c (m68hc11eepr_port_event): Initialize
180 config register according to --cpu-config option.
181 * sim-main.h (_sim_cpu): Add cpu_config member.
182 * interp.c (sim_open): Delete specific simulator options.
183 * m68hc11_sim.c (cpu_option_handler): New options
184 --emulos and -cpu-config <val> to configure the simulator.
185 (cpu_initialize): Initialize cpu_config member.
186
1872000-06-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
188
189 * emulos.c: Fix indentation and comments.
190 * gencode.c: Likewise.
191 * dv-m68hc11tim.c (m68hc11tim_timer_event): Handle COMPARE_EVENT.
192 (m68hc11tim_io_write_buffer): Write compare registers and
193 setup compare event.
194 * interp.c: Remove unused global variables.
195 * interrupts.c (idefs): New compare interrupts.
196 Fix indentation and comments.
197 * interrupts.h: Likewise.
198
1992000-06-18 Stephane Carrez <Stephane.Carrez@worldnet.fr>
200
201 * dv-m68hc11sio.c: Fix indentation and comments.
202 Remove INT_PORT.
203 * dv-m68hc11.c: Fix indentation and comments.
204 (m68hc11cpu_port_event): Move initialization of M6811_HPRIO from here.
205 * m68hc11_sim.c (cpu_reset): To here.
206 * dv-m68hc11eepr.c: Fix indentation and comments.
207
2082000-06-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
209
210 * dv-nvram.c: New file, rename from dv-pram.c.
211 * dv-pram.c: Delete file.
212 * sim-main.h: Incorporate m68hc11_sim.h.
213 * m68hc11_sim.h: Delete file.
214 * configure.in: Rename pram into nvram.
215 * interp.c (sim_open): Likewise in creation of device tree.
216
2172000-05-31 Stephane Carrez <Stephane.Carrez@worldnet.fr>
218
219 * interp.c (sim_open): Create the SPI device.
220 * dv-m68hc11spi.c: New file for SPI device simulation.
221 * configure.in (hw_extra_devices): Add SPI device.
222
2232000-05-28 Stephane Carrez <Stephane.Carrez@worldnet.fr>
224
225 * interrupts.c (interrupts_initialize): Clear XIRQ accounting.
226 (interrupts_process): Separate IRQ and XIRQ accounting.
227 (interrupts_info): Report XIRQ accounting.
228 * interrupts.h (struct interrupts): Added accounting for XIRQ.
229
2302000-04-16 Stephane Carrez <stcarrez@worldnet.fr>
231
232 * dv-pram.c (attach_pram_regs): Fix the 'save-modified' mode.
233 * m68hc11_sim.h (_sim_cpu): Allow configuration of cpu mode.
234 * dv-m68hc11.c (attach_m68hc11_regs): Get the cpu MODA,MODB
235 configuration from the 'mode' device tree property.
236 (m68hc11cpu_port_event): Reset M6811_HPRIO to the cpu MODA, MODB
237 configuration.
238
2392000-02-24 Stephane Carrez <stcarrez@worldnet.fr>
240
241 * sim-main.h: Remove WITH_TARGET_* defines.
242 * Makefile.in (SIM_EXTRA_CFLAGS): Specify the WITH_TARGET_* flags.
243
2442000-02-08 Stephane Carrez <stcarrez@worldnet.fr>
245
246 * dv-m68hc11sio.c (m68hc11sio_port_event): Setup the SCI to
247 1200 baud when cpu is in bootstrap mode.
248
249 * dv-m68hc11tim.c (m68hc11tim_io_write_buffer): Be able to
250 write in the TCTN timer register.
251
252 * dv-m68hc11sio.c (m68hc11sio_io_write_buffer): Divide cpu clock
253 by 4 to obtain the E clock frequency.
254 (sccr2_desc): Use M6811_TIE for TIE bit.
255 (m68hc11sio_info): Fix baud rate report.
256
257 * dv-m68hc11tim.c (to_realtime): Likewise.
258
259 * interp.c (sim_open): When building device tree, only provide
260 devices that do not exist yet.
261
262 * emulos.c: Fix compilation pb under Windows.
263
264 * dv-m68hc11.c (attach_m68hc11_regs): Get the clock frequency
265 from the 'clock' property.
266
2672000-01-02 Stephane Carrez <stcarrez@worldnet.fr>
268
269 * m68hc11_sim.h (*_REGNUM): Define.
270 (_sim_cpu): New member cpu_page0_reg table.
271 * interp.c (sim_create_inferior): Fill the cpu_page0_reg table with
272 addresses of soft registers in .page0.
273 (sim_fetch_register, sim_store_register): Use cpu_page0_reg table
274 to get/set soft registers.
275
2761999-12-31 Stephane Carrez <stcarrez@worldnet.fr>
277
278 * dv-m68hc11.c (m68hc11cpu_io_write_buffer): Clear byte to avoid
279 returning random values.
280
2811999-12-17 Stephane Carrez <stcarrez@worldnet.fr>
282
283 * gencode.c: Fix "subb N,x" that used a instead of b.
284
2851999-09-09 Stephane Carrez <stcarrez@worldnet.fr>
286
287 * gencode.c: Fixed sbc8 and adc8 when there was a initial carry.
288
2891999-09-01 Stephane Carrez <stcarrez@worldnet.fr>
290
291 * sim-main.h (SIM_HANDLES_LMA): Define to enable loading using lma.
292
2931999-08-14 Stephane Carrez <stcarrez@worldnet.fr>
294
295 * dv-m68hc11.c (attach_m68hc11_regs): Save the size of the
296 register region in the m68hc11cpu struct.
297 (m68hc11cpu_io_write): When the IO mapping addres changes,
298 detach the register region and re-attach it at the new address.
299 (m68hc11cpu_io_read_buffer): Renamed base_address into
300 attach_address.
301 (m68hc11cpu_io_write_buffer): Likewise. Pass the hw pointer
302 to m68hc11cpu_io_write.
303
3041999-08-13 Stephane Carrez <stcarrez@worldnet.fr>
305
306 * gencode.c: For sbc8, check the carry and increment the source
307 before trying to set the carry for the result.
308
3091999-05-24 John S. Kallal <kallal@voicenet.com>
310
311 * interp.c (sim_get_info): Don't crash if the command line is 0.
312 Define prototype for sim_get_info() and init_system().
313 (sim_info): Correct call to sim_get_info().
314
3151999-05-16 Stephane Carrez <stcarrez@worldnet.fr>
316
317 * configure.in: Recognize m6811-*-*.
318 * configure: Regenerate.
319 * m68hc11_sim.h (cpu_ccr_update_add8, cpu_ccr_update_add16,
320 cpu_ccr_update_sub8, cpu_ccr_update_sub16):
321 Correct the computation of carry of 8 and 16-bits add and subtract.
322 * gencode.c: Use cpu_ccr_update_sub8 for subtraction (carry and
323 overflow set in a different manner than add).
324
3251999-05-14 Stephane Carrez <stcarrez@worldnet.fr>
326
327 * dv-m68hc11.c (dv_m6811_attach_address_callback): Removed a
328 trace message.
329 * interp.c (sim_open, sim_create_inferior): Initialize the
330 cpu_elf_start from the ELF header.
331 * m68hc11_sim.c (cpu_initialize): Clear the new data members.
332 (cpu_restart): Use cpu_elf_start as the starting address when
333 the flag is set.
334 (cpu_special): When cpu_use_elf_start is set, the WAI instruction
335 exits the simulator (exit status is in D).
336 * m68hc11_sim.h (_sim_cpu): Added members cpu_use_elf_start and
337 cpu_elf_star to start execution at address specified in ELF file.
338
3391999-05-02 Stephane Carrez <stcarrez@worldnet.fr>
340
341 * Makefile.in, config.in, configure, configure.in: New files.
342 * gencode.c: New file, generation of 68HC11 interpreter.
343 * m68hc11_sim.h, m68hc11_sim.c: New files, specific operations
344 for interpreter.
345 * interrupts.c, interrupts.h: New files, management of interrupts.
346 * interp.c, sim-main.h,
347 * dv-m68hc11.c, dv-m68hc11eepr.c, dv-m68hc11sio.c,
348 dv-m68hc11tim.c, dv-pram.c: New files representing devices for
349 68HC11 (dv-pram.c is generic and could probably migrate to common).
350 * emulos.c: New file, basic emulation of some os.