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