Fix clearing of interrupts in 68hc11 simulator
[deliverable/binutils-gdb.git] / sim / m68hc11 / ChangeLog
CommitLineData
a8afa79a
SC
12000-09-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2
3 * interrupts.c (interrupts_update_pending): Clear the mask of
4 pending interrupts here.
5 (interrupts_get_current): Don't clear the mask of pending interrupts.
6
2990a9f4
SC
72000-09-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8
9 * sim-main.h: Define cycle_to_string.
10 * dv-m68hc11tim.c (cycle_to_string): New function to translate
11 the cpu cycle into some formatted time string.
12 (m68hc11tim_print_timer): Use it.
13 * dv-m68hc11sio.c (m68hc11sio_info): Use cycle_to_string.
14 * dv-m68hc11spi.c (m68hc11spi_info): Likewise.
15 * interrupts.c (interrupts_info): Likewise.
16 * m68hc11_sim.c (cpu_info): Likewise.
17
401493c8
SC
182000-09-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
19
20 * dv-m68hc11tim.c (m68hc11tim_timer_event): Compute the overflow
21 interrupt and compare events accurately. Take into account the
22 pending ticks not processed by the simulator yet (introduced a shift).
23 (m68hc11_port_event): Reset the timer interrupt delays.
24 (m68hc11tim_io_read_buffer): Be able to read several bytes.
25 (m68hc11tim_io_write_buffer): Likewise for write.
26 (m68hc11tim_io_write_buffer): Recompute the timer overflow interrupt.
27
4d72d17a
SC
282000-09-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
29
30 * dv-m68hc11spi.c (m68hc11spi_io_read_buffer): Clear the interrupts.
31 (m68hc11spi_io_write_buffer): Likewise and fix the spi frame.
32 (m68hc11spi_info): Clarify the status report
33 of the SPI when a byte is being sent.
34 (m68hc11spi_clock): Fix the spi send frame.
35
63348d04
SC
362000-08-11 Stephane Carrez <Stephane.Carrez@worldnet.fr>
37
38 * sim-main.h (m68hc11_map_level): Define level of address mappings.
39 * dv-m68hc11eepr.c (struct m68hc11eepr ): New flag to indicate
40 whether the eeprom is currently mapped or not.
41 (m68hc11eepr_port_event): Use the flag to see if we must unmap
42 or map the eeprom. Update the flag to reflect the current state.
43 Use M6811_EEPROM_LEVEL when mapping the eeprom.
44 (m68hc11eepr_finish): Remove overlap hack.
45 (attach_m68hc11eepr_regs): Use M6811_IO_LEVEL when mapping the
46 config and control registers.
47 * dv-m68hc11.c (m68hc11cpu_finish): Remove overlap hack.
48 (attach_m68hc11_regs): Use M6811_IO_LEVEL.
49 (m68hc11cpu_io_write): Likewise when unmapping and re-mapping.
50 * dv-m68hc11spi.c (m68hc11spi_finish): Likewise.
51 (attach_m68hc11spi_regs): Likewise.
52 * dv-m68hc11tim.c (m68hc11tim_finish): Likewise.
53 (attach_m68hc11tim_regs): Likewise.
54 * dv-m68hc11sio.c (m68hc11sio_finish): Likewise.
55 (attach_m68hc11sio_regs): Likewise.
56 * interp.c (sim_open): Likewise.
57 * dv-nvram.c (attach_nvram_regs): Likewise.
58
5d031c16
AC
59Thu Jul 27 21:27:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
60
61 * configure, config.in: Regenerate.
62
e0709f50
AC
632000-06-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
64
65 * Makefile.in (SIM_RUN_OBJS): Define to use nrun.c
66 * dv-m68hc11.c (m68hc11cpu_finish): Register detach address callback.
67 (dv_m6811_detach_address_callback): New function to detach a
68 device from an address space.
69 * dv-m68hc11eepr.c (m68hc11eepr_port_event): Initialize
70 config register according to --cpu-config option.
71 * sim-main.h (_sim_cpu): Add cpu_config member.
72 * interp.c (sim_open): Delete specific simulator options.
73 * m68hc11_sim.c (cpu_option_handler): New options
74 --emulos and -cpu-config <val> to configure the simulator.
75 (cpu_initialize): Initialize cpu_config member.
76
772000-06-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
78
79 * emulos.c: Fix indentation and comments.
80 * gencode.c: Likewise.
81 * dv-m68hc11tim.c (m68hc11tim_timer_event): Handle COMPARE_EVENT.
82 (m68hc11tim_io_write_buffer): Write compare registers and
83 setup compare event.
84 * interp.c: Remove unused global variables.
85 * interrupts.c (idefs): New compare interrupts.
86 Fix indentation and comments.
87 * interrupts.h: Likewise.
88
892000-06-18 Stephane Carrez <Stephane.Carrez@worldnet.fr>
90
91 * dv-m68hc11sio.c: Fix indentation and comments.
92 Remove INT_PORT.
93 * dv-m68hc11.c: Fix indentation and comments.
94 (m68hc11cpu_port_event): Move initialization of M6811_HPRIO from here.
95 * m68hc11_sim.c (cpu_reset): To here.
96 * dv-m68hc11eepr.c: Fix indentation and comments.
97
982000-06-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
99
100 * dv-nvram.c: New file, rename from dv-pram.c.
101 * dv-pram.c: Delete file.
102 * sim-main.h: Incorporate m68hc11_sim.h.
103 * m68hc11_sim.h: Delete file.
104 * configure.in: Rename pram into nvram.
105 * interp.c (sim_open): Likewise in creation of device tree.
106
1072000-05-31 Stephane Carrez <Stephane.Carrez@worldnet.fr>
108
109 * interp.c (sim_open): Create the SPI device.
110 * dv-m68hc11spi.c: New file for SPI device simulation.
111 * configure.in (hw_extra_devices): Add SPI device.
112
1132000-05-28 Stephane Carrez <Stephane.Carrez@worldnet.fr>
114
115 * interrupts.c (interrupts_initialize): Clear XIRQ accounting.
116 (interrupts_process): Separate IRQ and XIRQ accounting.
117 (interrupts_info): Report XIRQ accounting.
118 * interrupts.h (struct interrupts): Added accounting for XIRQ.
119
1202000-04-16 Stephane Carrez <stcarrez@worldnet.fr>
121
122 * dv-pram.c (attach_pram_regs): Fix the 'save-modified' mode.
123 * m68hc11_sim.h (_sim_cpu): Allow configuration of cpu mode.
124 * dv-m68hc11.c (attach_m68hc11_regs): Get the cpu MODA,MODB
125 configuration from the 'mode' device tree property.
126 (m68hc11cpu_port_event): Reset M6811_HPRIO to the cpu MODA, MODB
127 configuration.
128
1292000-02-24 Stephane Carrez <stcarrez@worldnet.fr>
130
131 * sim-main.h: Remove WITH_TARGET_* defines.
132 * Makefile.in (SIM_EXTRA_CFLAGS): Specify the WITH_TARGET_* flags.
133
1342000-02-08 Stephane Carrez <stcarrez@worldnet.fr>
135
136 * dv-m68hc11sio.c (m68hc11sio_port_event): Setup the SCI to
137 1200 baud when cpu is in bootstrap mode.
138
139 * dv-m68hc11tim.c (m68hc11tim_io_write_buffer): Be able to
140 write in the TCTN timer register.
141
142 * dv-m68hc11sio.c (m68hc11sio_io_write_buffer): Divide cpu clock
143 by 4 to obtain the E clock frequency.
144 (sccr2_desc): Use M6811_TIE for TIE bit.
145 (m68hc11sio_info): Fix baud rate report.
146
147 * dv-m68hc11tim.c (to_realtime): Likewise.
148
149 * interp.c (sim_open): When building device tree, only provide
150 devices that do not exist yet.
151
152 * emulos.c: Fix compilation pb under Windows.
153
154 * dv-m68hc11.c (attach_m68hc11_regs): Get the clock frequency
155 from the 'clock' property.
156
1572000-01-02 Stephane Carrez <stcarrez@worldnet.fr>
158
159 * m68hc11_sim.h (*_REGNUM): Define.
160 (_sim_cpu): New member cpu_page0_reg table.
161 * interp.c (sim_create_inferior): Fill the cpu_page0_reg table with
162 addresses of soft registers in .page0.
163 (sim_fetch_register, sim_store_register): Use cpu_page0_reg table
164 to get/set soft registers.
165
1661999-12-31 Stephane Carrez <stcarrez@worldnet.fr>
167
168 * dv-m68hc11.c (m68hc11cpu_io_write_buffer): Clear byte to avoid
169 returning random values.
170
1711999-12-17 Stephane Carrez <stcarrez@worldnet.fr>
172
173 * gencode.c: Fix "subb N,x" that used a instead of b.
174
1751999-09-09 Stephane Carrez <stcarrez@worldnet.fr>
176
177 * gencode.c: Fixed sbc8 and adc8 when there was a initial carry.
178
1791999-09-01 Stephane Carrez <stcarrez@worldnet.fr>
180
181 * sim-main.h (SIM_HANDLES_LMA): Define to enable loading using lma.
182
1831999-08-14 Stephane Carrez <stcarrez@worldnet.fr>
184
185 * dv-m68hc11.c (attach_m68hc11_regs): Save the size of the
186 register region in the m68hc11cpu struct.
187 (m68hc11cpu_io_write): When the IO mapping addres changes,
188 detach the register region and re-attach it at the new address.
189 (m68hc11cpu_io_read_buffer): Renamed base_address into
190 attach_address.
191 (m68hc11cpu_io_write_buffer): Likewise. Pass the hw pointer
192 to m68hc11cpu_io_write.
193
1941999-08-13 Stephane Carrez <stcarrez@worldnet.fr>
195
196 * gencode.c: For sbc8, check the carry and increment the source
197 before trying to set the carry for the result.
198
1991999-05-24 John S. Kallal <kallal@voicenet.com>
200
201 * interp.c (sim_get_info): Don't crash if the command line is 0.
202 Define prototype for sim_get_info() and init_system().
203 (sim_info): Correct call to sim_get_info().
204
2051999-05-16 Stephane Carrez <stcarrez@worldnet.fr>
206
207 * configure.in: Recognize m6811-*-*.
208 * configure: Regenerate.
209 * m68hc11_sim.h (cpu_ccr_update_add8, cpu_ccr_update_add16,
210 cpu_ccr_update_sub8, cpu_ccr_update_sub16):
211 Correct the computation of carry of 8 and 16-bits add and subtract.
212 * gencode.c: Use cpu_ccr_update_sub8 for subtraction (carry and
213 overflow set in a different manner than add).
214
2151999-05-14 Stephane Carrez <stcarrez@worldnet.fr>
216
217 * dv-m68hc11.c (dv_m6811_attach_address_callback): Removed a
218 trace message.
219 * interp.c (sim_open, sim_create_inferior): Initialize the
220 cpu_elf_start from the ELF header.
221 * m68hc11_sim.c (cpu_initialize): Clear the new data members.
222 (cpu_restart): Use cpu_elf_start as the starting address when
223 the flag is set.
224 (cpu_special): When cpu_use_elf_start is set, the WAI instruction
225 exits the simulator (exit status is in D).
226 * m68hc11_sim.h (_sim_cpu): Added members cpu_use_elf_start and
227 cpu_elf_star to start execution at address specified in ELF file.
228
2291999-05-02 Stephane Carrez <stcarrez@worldnet.fr>
230
231 * Makefile.in, config.in, configure, configure.in: New files.
232 * gencode.c: New file, generation of 68HC11 interpreter.
233 * m68hc11_sim.h, m68hc11_sim.c: New files, specific operations
234 for interpreter.
235 * interrupts.c, interrupts.h: New files, management of interrupts.
236 * interp.c, sim-main.h,
237 * dv-m68hc11.c, dv-m68hc11eepr.c, dv-m68hc11sio.c,
238 dv-m68hc11tim.c, dv-pram.c: New files representing devices for
239 68HC11 (dv-pram.c is generic and could probably migrate to common).
240 * emulos.c: New file, basic emulation of some os.
This page took 0.034937 seconds and 4 git commands to generate.