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