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