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