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