]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - sim/m68hc11/ChangeLog
New simulator.
[thirdparty/binutils-gdb.git] / sim / m68hc11 / ChangeLog
1 2000-06-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2
3 * Makefile.in (SIM_RUN_OBJS): Define to use nrun.c
4 * dv-m68hc11.c (m68hc11cpu_finish): Register detach address callback.
5 (dv_m6811_detach_address_callback): New function to detach a
6 device from an address space.
7 * dv-m68hc11eepr.c (m68hc11eepr_port_event): Initialize
8 config register according to --cpu-config option.
9 * sim-main.h (_sim_cpu): Add cpu_config member.
10 * interp.c (sim_open): Delete specific simulator options.
11 * m68hc11_sim.c (cpu_option_handler): New options
12 --emulos and -cpu-config <val> to configure the simulator.
13 (cpu_initialize): Initialize cpu_config member.
14
15 2000-06-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
16
17 * emulos.c: Fix indentation and comments.
18 * gencode.c: Likewise.
19 * dv-m68hc11tim.c (m68hc11tim_timer_event): Handle COMPARE_EVENT.
20 (m68hc11tim_io_write_buffer): Write compare registers and
21 setup compare event.
22 * interp.c: Remove unused global variables.
23 * interrupts.c (idefs): New compare interrupts.
24 Fix indentation and comments.
25 * interrupts.h: Likewise.
26
27 2000-06-18 Stephane Carrez <Stephane.Carrez@worldnet.fr>
28
29 * dv-m68hc11sio.c: Fix indentation and comments.
30 Remove INT_PORT.
31 * dv-m68hc11.c: Fix indentation and comments.
32 (m68hc11cpu_port_event): Move initialization of M6811_HPRIO from here.
33 * m68hc11_sim.c (cpu_reset): To here.
34 * dv-m68hc11eepr.c: Fix indentation and comments.
35
36 2000-06-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
37
38 * dv-nvram.c: New file, rename from dv-pram.c.
39 * dv-pram.c: Delete file.
40 * sim-main.h: Incorporate m68hc11_sim.h.
41 * m68hc11_sim.h: Delete file.
42 * configure.in: Rename pram into nvram.
43 * interp.c (sim_open): Likewise in creation of device tree.
44
45 2000-05-31 Stephane Carrez <Stephane.Carrez@worldnet.fr>
46
47 * interp.c (sim_open): Create the SPI device.
48 * dv-m68hc11spi.c: New file for SPI device simulation.
49 * configure.in (hw_extra_devices): Add SPI device.
50
51 2000-05-28 Stephane Carrez <Stephane.Carrez@worldnet.fr>
52
53 * interrupts.c (interrupts_initialize): Clear XIRQ accounting.
54 (interrupts_process): Separate IRQ and XIRQ accounting.
55 (interrupts_info): Report XIRQ accounting.
56 * interrupts.h (struct interrupts): Added accounting for XIRQ.
57
58 2000-04-16 Stephane Carrez <stcarrez@worldnet.fr>
59
60 * dv-pram.c (attach_pram_regs): Fix the 'save-modified' mode.
61 * m68hc11_sim.h (_sim_cpu): Allow configuration of cpu mode.
62 * dv-m68hc11.c (attach_m68hc11_regs): Get the cpu MODA,MODB
63 configuration from the 'mode' device tree property.
64 (m68hc11cpu_port_event): Reset M6811_HPRIO to the cpu MODA, MODB
65 configuration.
66
67 2000-02-24 Stephane Carrez <stcarrez@worldnet.fr>
68
69 * sim-main.h: Remove WITH_TARGET_* defines.
70 * Makefile.in (SIM_EXTRA_CFLAGS): Specify the WITH_TARGET_* flags.
71
72 2000-02-08 Stephane Carrez <stcarrez@worldnet.fr>
73
74 * dv-m68hc11sio.c (m68hc11sio_port_event): Setup the SCI to
75 1200 baud when cpu is in bootstrap mode.
76
77 * dv-m68hc11tim.c (m68hc11tim_io_write_buffer): Be able to
78 write in the TCTN timer register.
79
80 * dv-m68hc11sio.c (m68hc11sio_io_write_buffer): Divide cpu clock
81 by 4 to obtain the E clock frequency.
82 (sccr2_desc): Use M6811_TIE for TIE bit.
83 (m68hc11sio_info): Fix baud rate report.
84
85 * dv-m68hc11tim.c (to_realtime): Likewise.
86
87 * interp.c (sim_open): When building device tree, only provide
88 devices that do not exist yet.
89
90 * emulos.c: Fix compilation pb under Windows.
91
92 * dv-m68hc11.c (attach_m68hc11_regs): Get the clock frequency
93 from the 'clock' property.
94
95 2000-01-02 Stephane Carrez <stcarrez@worldnet.fr>
96
97 * m68hc11_sim.h (*_REGNUM): Define.
98 (_sim_cpu): New member cpu_page0_reg table.
99 * interp.c (sim_create_inferior): Fill the cpu_page0_reg table with
100 addresses of soft registers in .page0.
101 (sim_fetch_register, sim_store_register): Use cpu_page0_reg table
102 to get/set soft registers.
103
104 1999-12-31 Stephane Carrez <stcarrez@worldnet.fr>
105
106 * dv-m68hc11.c (m68hc11cpu_io_write_buffer): Clear byte to avoid
107 returning random values.
108
109 1999-12-17 Stephane Carrez <stcarrez@worldnet.fr>
110
111 * gencode.c: Fix "subb N,x" that used a instead of b.
112
113 1999-09-09 Stephane Carrez <stcarrez@worldnet.fr>
114
115 * gencode.c: Fixed sbc8 and adc8 when there was a initial carry.
116
117 1999-09-01 Stephane Carrez <stcarrez@worldnet.fr>
118
119 * sim-main.h (SIM_HANDLES_LMA): Define to enable loading using lma.
120
121 1999-08-14 Stephane Carrez <stcarrez@worldnet.fr>
122
123 * dv-m68hc11.c (attach_m68hc11_regs): Save the size of the
124 register region in the m68hc11cpu struct.
125 (m68hc11cpu_io_write): When the IO mapping addres changes,
126 detach the register region and re-attach it at the new address.
127 (m68hc11cpu_io_read_buffer): Renamed base_address into
128 attach_address.
129 (m68hc11cpu_io_write_buffer): Likewise. Pass the hw pointer
130 to m68hc11cpu_io_write.
131
132 1999-08-13 Stephane Carrez <stcarrez@worldnet.fr>
133
134 * gencode.c: For sbc8, check the carry and increment the source
135 before trying to set the carry for the result.
136
137 1999-05-24 John S. Kallal <kallal@voicenet.com>
138
139 * interp.c (sim_get_info): Don't crash if the command line is 0.
140 Define prototype for sim_get_info() and init_system().
141 (sim_info): Correct call to sim_get_info().
142
143 1999-05-16 Stephane Carrez <stcarrez@worldnet.fr>
144
145 * configure.in: Recognize m6811-*-*.
146 * configure: Regenerate.
147 * m68hc11_sim.h (cpu_ccr_update_add8, cpu_ccr_update_add16,
148 cpu_ccr_update_sub8, cpu_ccr_update_sub16):
149 Correct the computation of carry of 8 and 16-bits add and subtract.
150 * gencode.c: Use cpu_ccr_update_sub8 for subtraction (carry and
151 overflow set in a different manner than add).
152
153 1999-05-14 Stephane Carrez <stcarrez@worldnet.fr>
154
155 * dv-m68hc11.c (dv_m6811_attach_address_callback): Removed a
156 trace message.
157 * interp.c (sim_open, sim_create_inferior): Initialize the
158 cpu_elf_start from the ELF header.
159 * m68hc11_sim.c (cpu_initialize): Clear the new data members.
160 (cpu_restart): Use cpu_elf_start as the starting address when
161 the flag is set.
162 (cpu_special): When cpu_use_elf_start is set, the WAI instruction
163 exits the simulator (exit status is in D).
164 * m68hc11_sim.h (_sim_cpu): Added members cpu_use_elf_start and
165 cpu_elf_star to start execution at address specified in ELF file.
166
167 1999-05-02 Stephane Carrez <stcarrez@worldnet.fr>
168
169 * Makefile.in, config.in, configure, configure.in: New files.
170 * gencode.c: New file, generation of 68HC11 interpreter.
171 * m68hc11_sim.h, m68hc11_sim.c: New files, specific operations
172 for interpreter.
173 * interrupts.c, interrupts.h: New files, management of interrupts.
174 * interp.c, sim-main.h,
175 * dv-m68hc11.c, dv-m68hc11eepr.c, dv-m68hc11sio.c,
176 dv-m68hc11tim.c, dv-pram.c: New files representing devices for
177 68HC11 (dv-pram.c is generic and could probably migrate to common).
178 * emulos.c: New file, basic emulation of some os.