sim: bfin: respect the port level on signals to the SIC
[binutils-gdb.git] / sim / bfin / ChangeLog
1 2011-04-11 Mike Frysinger <vapier@gentoo.org>
2
3 * dv-bfin_sic.c (bfin_sic_port_event): New helper function.
4 (bfin_sic_52x_port_event, bfin_sic_537_port_event,
5 bfin_sic_54x_port_event, bfin_sic_561_port_event): Include level
6 in the trace output, and call the new bfin_sic_port_event func.
7
8 2011-04-11 Mike Frysinger <vapier@gentoo.org>
9
10 * dv-bfin_gpio.c (bfin_gpio_ports): Add p15.
11
12 2011-04-01 Mike Frysinger <vapier@gentoo.org>
13
14 * dv-bfin_otp.c (bfin_otp_ports): Declare.
15 (bfin_otp_finish): Call set_hw_ports with bfin_otp_ports.
16
17 2011-03-29 Mike Frysinger <vapier@gentoo.org>
18
19 * configure: Regenerate after common/aclocal.m4 changes.
20
21 2011-03-28 Robin Getz <robin.getz@analog.com>
22
23 * bfin-sim.c (decode_dsp32alu_0): Cast high 16bits of A0.W to bs16
24 and add to casted low 16bits of A0.L and store in val0. Cast high
25 16bits of A1.W to bs16 and add to casted low 16bits of A1.L and
26 store in val1. Delete bit checks of val0 and val1.
27
28 2011-03-26 Robin Getz <robin.getz@analog.com>
29
30 * bfin-sim.c (decode_dsp32alu_0): Set result to 0x7FFFFFFF when
31 the result was 0x80000000 for RND12 subtraction.
32
33 2011-03-26 Robin Getz <robin.getz@analog.com>
34
35 * bfin-sim.c (decode_dsp32alu_0): Set VS when V is set.
36
37 2011-03-24 Mike Frysinger <vapier@gentoo.org>
38
39 * dv-bfin_gpio.c (bfin_gpio_port_event): Call HW_TRACE at every
40 major code flow point.
41 * dv-bfin_sic.c (bfin_sic_forward_interrupts): Call HW_TRACE just
42 before calling hw_port_event on ourselves.
43 (bfin_sic_52x_port_event, bfin_sic_537_port_event,
44 bfin_sic_54x_port_event, bfin_sic_561_port_event): Call HW_TRACE
45 at the start of the function.
46
47 2011-03-24 Mike Frysinger <vapier@gentoo.org>
48
49 * dv-bfin_gpio.c (bfin_gpio_port_event): Split dir/inen bit checking.
50 Normalize "level" to 0/1 values. Shift "level" over by "my_port".
51 Invert port->both bit check.
52
53 2011-03-24 Mike Frysinger <vapier@gentoo.org>
54
55 * dv-bfin_gpio.c (bfin_gpio_io_write_buffer): Subtract 2 from the
56 valuep pointer for clear MMRs, 4 for set MMRs, and 6 for toggle MMRs.
57
58 2011-03-23 Mike Frysinger <vapier@gentoo.org>
59
60 * TODO: Document some known SIC issues.
61
62 2011-03-23 Mike Frysinger <vapier@gentoo.org>
63
64 * devices.h (dv_w1c): Fix typos in documentation of "bits" arg.
65 * dv-bfin_cec.c (bfin_cec_io_write_buffer): Pass 0xffee to dv_w1c_4.
66 * dv-bfin_emac.c (bfin_emac_io_write_buffer): Pass 0xe1 to dv_w1c_4
67 for systat MMR and -1 to dv_w1c_4 for [rt]x_stky/mmc_[rt]irqs MMRs.
68 * dv-bfin_eppi.c (bfin_eppi_io_write_buffer): Pass 0x1ff to dv_w1c_2.
69 * dv-bfin_gpio.c (bfin_gpio_io_write_buffer): Invert bits to dv_w1c_2.
70 * dv-bfin_jtag.c (bfin_jtag_io_write_buffer): Invert bits to dv_w1c_4.
71 * dv-bfin_nfc.c (bfin_nfc_io_write_buffer): Invert bits to dv_w1c_2.
72 * dv-bfin_otp.c (bfin_otp_io_write_buffer): Invert bits to dv_w1c_2.
73 * dv-bfin_ppi.c (bfin_ppi_io_write_buffer): Invert bits to dv_w1c_2.
74 * dv-bfin_rtc.c (bfin_rtc_io_write_buffer): Invert bits to dv_w1c_2.
75 * dv-bfin_spi.c (bfin_spi_io_write_buffer): Invert bits to dv_w1c_2.
76 * dv-bfin_twi.c (bfin_twi_io_write_buffer): Invert bits to dv_w1c_2.
77 * dv-bfin_uart2.c (bfin_uart_io_write_buffer): Invert bits to dv_w1c_2.
78
79 2011-03-23 Mike Frysinger <vapier@gentoo.org>
80
81 * dv-bfin_uart.h (TFI, BI, FE, PE, OE): Define.
82
83 2011-03-23 Mike Frysinger <vapier@gentoo.org>
84
85 * dv-bfin_twi.h (LOSTARB): Rename from LOSTARG.
86
87 2011-03-23 Robin Getz <robin.getz@analog.com>
88
89 * bfin-sim.c (decode_dsp32shift_0): Set acc0 to the unextended
90 value for the VIT_MAX insn, and mask off the result when done.
91
92 2011-03-23 Robin Getz <robin.getz@analog.com>
93
94 * bfin-sim.c (decode_dsp32alu_0): Set A1 to a1_lo when up_hi is false,
95 and set A0 to a0_lo when up_lo is false.
96
97 2011-03-23 Robin Getz <robin.getz@analog.com>
98
99 * bfin-sim.c (decode_dsp32alu_0): Call saturate_s40_astat instead of
100 saturate_s40, and use the v parameter to update the AV bit. Set the
101 AC bit only when the final result is 0.
102
103 2011-03-23 Mike Frysinger <vapier@gentoo.org>
104
105 * dv-bfin_sic.c (ENC, DEC_PIN, DEC_SIC): Define.
106 (bfin_sic_50x_ports, bfin_sic_51x_ports, bfin_sic_52x_ports,
107 bfin_sic_533_ports, bfin_sic_537_ports, bfin_sic_538_ports,
108 bfin_sic_54x_ports, bfin_sic_561_ports, bfin_sic_59x_ports):
109 Encode ids with the ENC macro.
110 (bfin_sic_52x_port_event, bfin_sic_537_port_event,
111 bfin_sic_54x_port_event, bfin_sic_561_port_event): Set idx
112 from my_port with DEC_SIC, and set bit from my_port with DEC_PIN.
113 (bfin_sic_533_port_event): Delete.
114 (bfin_sic_finish): Call set_hw_port_event with
115 bfin_sic_537_port_event for BF533 and BF59x targets.
116
117 2011-03-23 Robin Getz <robin.getz@analog.com>
118
119 * bfin-sim.c (decode_dsp32alu_0): Drop the src0/src1 check for
120 BYTEOP1P, BYTEOP2P, and BYTEOP3P insns.
121
122 2011-03-23 Mike Frysinger <vapier@gentoo.org>
123
124 * machs.c (bf50x_dev, bf512_dev, bf516_dev, bf522_dev, bf526_dev,
125 bf533_dev, bf534_dev, bf537_dev, bf538_dev, bf561_dev, bf592_dev):
126 Change bfin_gpio addresses from f/g/h to 5/6/7.
127 (bfin_model_hw_tree_init): Add the bfin_gpio address base to 'a'.
128
129 2011-03-17 Mike Frysinger <vapier@gentoo.org>
130
131 * configure.ac (AC_CHECK_FUNCS): Check for kill and pread.
132 * configure: Regenerate.
133 * config.in: Regenerate.
134 * interp.c (bfin_syscall): Check for HAVE_{KILL,PREAD} before using
135 kill or pread.
136
137 2011-03-15 Mike Frysinger <vapier@gentoo.org>
138
139 * Makefile.in (dv-bfin_gpio.o): New target.
140 * configure.ac (SIM_AC_OPTION_HARDWARE): Add bfin_gpio.
141 * configure: Regenerate.
142 * dv-bfin_gpio.c, dv-bfin_gpio.h: New files.
143 * machs.c: Include dv-bfin_gpio.h.
144 (bf50x_mem, bf51x_mem, bf52x_mem, bf531_mem, bf532_mem, bf533_mem,
145 bf534_mem, bf536_mem, bf537_mem, bf538_mem, bf561_mem, bf592_mem):
146 Delete GPIO memory stubs.
147 (bf50x_dev, bf512_dev, bf516_dev, bf522_dev, bf526_dev, bf533_dev,
148 bf534_dev, bf537_dev, bf538_dev, bf561_dev, bf592_dev): Add GPIO
149 peripheral devices.
150 (bfin_model_hw_tree_init): Hook up GPIO interrupts to SIC.
151
152 2011-03-15 Mike Frysinger <vapier@gentoo.org>
153
154 * bfroms/bf50x-0.0.h, bfroms/bf51x-0.0.h, bfroms/bf51x-0.1.h,
155 bfroms/bf51x-0.2.h, bfroms/bf526-0.0.h, bfroms/bf526-0.1.h,
156 bfroms/bf527-0.0.h, bfroms/bf527-0.1.h, bfroms/bf527-0.2.h,
157 bfroms/bf533-0.1.h, bfroms/bf533-0.2.h, bfroms/bf533-0.3.h,
158 bfroms/bf537-0.0.h, bfroms/bf537-0.1.h, bfroms/bf537-0.3.h,
159 bfroms/bf538-0.0.h, bfroms/bf54x-0.0.h, bfroms/bf54x-0.1.h,
160 bfroms/bf54x-0.2.h, bfroms/bf54x_l1-0.0.h, bfroms/bf54x_l1-0.1.h,
161 bfroms/bf54x_l1-0.2.h, bfroms/bf561-0.5.h, bfroms/bf59x-0.0.h,
162 bfroms/bf59x_l1-0.1.h, dv-bfin_cec.c, dv-bfin_ctimer.c,
163 dv-bfin_dma.c, dv-bfin_dmac.c, dv-bfin_ebiu_amc.c,
164 dv-bfin_ebiu_ddrc.c, dv-bfin_ebiu_sdc.c, dv-bfin_emac.c,
165 dv-bfin_eppi.c, dv-bfin_evt.c, dv-bfin_gptimer.c, dv-bfin_jtag.c,
166 dv-bfin_mmu.c, dv-bfin_nfc.c, dv-bfin_otp.c, dv-bfin_pll.c,
167 dv-bfin_ppi.c, dv-bfin_rtc.c, dv-bfin_sic.c, dv-bfin_spi.c,
168 dv-bfin_trace.c, dv-bfin_twi.c, dv-bfin_uart.c, dv-bfin_uart2.c,
169 dv-bfin_wdog.c, dv-bfin_wp.c, dv-eth_phy.c, gui.c,
170 linux-fixed-code.h, linux-targ-map.h, machs.c, Makefile.in: Fix style.
171
172 2011-03-15 Robin Getz <robin.getz@analog.com>
173
174 * bfin-sim.c (decode_dsp32alu_0): Set AZ based on val for 16bit adds
175 and subs.
176
177 2011-03-15 Robin Getz <robin.getz@analog.com>
178
179 * bfin-sim.c (decode_macfunc): Move acc STOREs behind op != 3 check.
180
181 2011-03-15 Robin Getz <robin.getz@analog.com>
182
183 * bfin-sim.c (decode_macfunc): New neg parameter. Set when the
184 high bit is set after extract_mult.
185 (decode_dsp32mac_0): Declare n_1 and n_0. Pass to the decode_macfunc
186 functions. Use these to update the AN bit.
187
188 2011-03-15 Robin Getz <robin.getz@analog.com>
189
190 * bfin-sim.c (decode_dsp32mult_0): Declare v_i0 and v_i1. Pass to
191 the extract_mult functions. Include these when updating the V, VS,
192 and V_COPY bits.
193
194 2011-03-15 Robin Getz <robin.getz@analog.com>
195
196 * bfin-sim.c (astat_names): New global bit array.
197 (decode_CC2stat_0): Delete local astat_name and astat_names.
198 (decode_psedodbg_assert_0): Move hardcoded offset into a variable.
199 Print out ASTAT bit values when checking an ASTAT register.
200
201 2010-03-15 Robin Getz <robin.getz@analog.com>
202
203 * bfin-sim.c (extract_mult): Handle M_IU.
204
205 2011-03-05 Mike Frysinger <vapier@gentoo.org>
206
207 * Makefile.in, TODO, aclocal.m4, bfin-sim.c, bfin-sim.h,
208 bfroms/all.h, bfroms/bf50x-0.0.h, bfroms/bf51x-0.0.h,
209 bfroms/bf51x-0.1.h, bfroms/bf51x-0.2.h, bfroms/bf526-0.0.h,
210 bfroms/bf526-0.1.h, bfroms/bf527-0.0.h, bfroms/bf527-0.1.h,
211 bfroms/bf527-0.2.h, bfroms/bf533-0.1.h, bfroms/bf533-0.2.h,
212 bfroms/bf533-0.3.h, bfroms/bf537-0.0.h, bfroms/bf537-0.1.h,
213 bfroms/bf537-0.3.h, bfroms/bf538-0.0.h, bfroms/bf54x-0.0.h,
214 bfroms/bf54x-0.1.h, bfroms/bf54x-0.2.h, bfroms/bf54x_l1-0.0.h,
215 bfroms/bf54x_l1-0.1.h, bfroms/bf54x_l1-0.2.h, bfroms/bf561-0.5.h,
216 bfroms/bf59x-0.0.h, bfroms/bf59x_l1-0.1.h, config.in, configure,
217 configure.ac, devices.c, devices.h, dv-bfin_cec.c, dv-bfin_cec.h,
218 dv-bfin_ctimer.c, dv-bfin_ctimer.h, dv-bfin_dma.c, dv-bfin_dma.h,
219 dv-bfin_dmac.c, dv-bfin_dmac.h, dv-bfin_ebiu_amc.c, dv-bfin_ebiu_amc.h,
220 dv-bfin_ebiu_ddrc.c, dv-bfin_ebiu_ddrc.h, dv-bfin_ebiu_sdc.c,
221 dv-bfin_ebiu_sdc.h, dv-bfin_emac.c, dv-bfin_emac.h, dv-bfin_eppi.c,
222 dv-bfin_eppi.h, dv-bfin_evt.c, dv-bfin_evt.h, dv-bfin_gptimer.c,
223 dv-bfin_gptimer.h, dv-bfin_jtag.c, dv-bfin_jtag.h, dv-bfin_mmu.c,
224 dv-bfin_mmu.h, dv-bfin_nfc.c, dv-bfin_nfc.h, dv-bfin_otp.c,
225 dv-bfin_otp.h, dv-bfin_pll.c, dv-bfin_pll.h, dv-bfin_ppi.c,
226 dv-bfin_ppi.h, dv-bfin_rtc.c, dv-bfin_rtc.h, dv-bfin_sic.c,
227 dv-bfin_sic.h, dv-bfin_spi.c, dv-bfin_spi.h, dv-bfin_trace.c,
228 dv-bfin_trace.h, dv-bfin_twi.c, dv-bfin_twi.h, dv-bfin_uart.c,
229 dv-bfin_uart.h, dv-bfin_uart2.c, dv-bfin_uart2.h, dv-bfin_wdog.c,
230 dv-bfin_wdog.h, dv-bfin_wp.c, dv-bfin_wp.h, dv-eth_phy.c, gui.c,
231 gui.h, insn_list.def, interp.c, linux-fixed-code.h, linux-fixed-code.s,
232 linux-targ-map.h, machs.c, machs.h, proc_list.def, sim-main.h,
233 tconfig.in: New Blackfin port.