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