sim: bfin: update VIT_MAX behavior to match hardware when Acc.X bits are set
[binutils-gdb.git] / sim / bfin / ChangeLog
1 2011-03-23 Robin Getz <robin.getz@analog.com>
2
3 * bfin-sim.c (decode_dsp32shift_0): Set acc0 to the unextended
4 value for the VIT_MAX insn, and mask off the result when done.
5
6 2011-03-23 Robin Getz <robin.getz@analog.com>
7
8 * bfin-sim.c (decode_dsp32alu_0): Set A1 to a1_lo when up_hi is false,
9 and set A0 to a0_lo when up_lo is false.
10
11 2011-03-23 Robin Getz <robin.getz@analog.com>
12
13 * bfin-sim.c (decode_dsp32alu_0): Call saturate_s40_astat instead of
14 saturate_s40, and use the v parameter to update the AV bit. Set the
15 AC bit only when the final result is 0.
16
17 2011-03-23 Mike Frysinger <vapier@gentoo.org>
18
19 * dv-bfin_sic.c (ENC, DEC_PIN, DEC_SIC): Define.
20 (bfin_sic_50x_ports, bfin_sic_51x_ports, bfin_sic_52x_ports,
21 bfin_sic_533_ports, bfin_sic_537_ports, bfin_sic_538_ports,
22 bfin_sic_54x_ports, bfin_sic_561_ports, bfin_sic_59x_ports):
23 Encode ids with the ENC macro.
24 (bfin_sic_52x_port_event, bfin_sic_537_port_event,
25 bfin_sic_54x_port_event, bfin_sic_561_port_event): Set idx
26 from my_port with DEC_SIC, and set bit from my_port with DEC_PIN.
27 (bfin_sic_533_port_event): Delete.
28 (bfin_sic_finish): Call set_hw_port_event with
29 bfin_sic_537_port_event for BF533 and BF59x targets.
30
31 2011-03-23 Robin Getz <robin.getz@analog.com>
32
33 * bfin-sim.c (decode_dsp32alu_0): Drop the src0/src1 check for
34 BYTEOP1P, BYTEOP2P, and BYTEOP3P insns.
35
36 2011-03-23 Mike Frysinger <vapier@gentoo.org>
37
38 * machs.c (bf50x_dev, bf512_dev, bf516_dev, bf522_dev, bf526_dev,
39 bf533_dev, bf534_dev, bf537_dev, bf538_dev, bf561_dev, bf592_dev):
40 Change bfin_gpio addresses from f/g/h to 5/6/7.
41 (bfin_model_hw_tree_init): Add the bfin_gpio address base to 'a'.
42
43 2011-03-17 Mike Frysinger <vapier@gentoo.org>
44
45 * configure.ac (AC_CHECK_FUNCS): Check for kill and pread.
46 * configure: Regenerate.
47 * config.in: Regenerate.
48 * interp.c (bfin_syscall): Check for HAVE_{KILL,PREAD} before using
49 kill or pread.
50
51 2011-03-15 Mike Frysinger <vapier@gentoo.org>
52
53 * Makefile.in (dv-bfin_gpio.o): New target.
54 * configure.ac (SIM_AC_OPTION_HARDWARE): Add bfin_gpio.
55 * configure: Regenerate.
56 * dv-bfin_gpio.c, dv-bfin_gpio.h: New files.
57 * machs.c: Include dv-bfin_gpio.h.
58 (bf50x_mem, bf51x_mem, bf52x_mem, bf531_mem, bf532_mem, bf533_mem,
59 bf534_mem, bf536_mem, bf537_mem, bf538_mem, bf561_mem, bf592_mem):
60 Delete GPIO memory stubs.
61 (bf50x_dev, bf512_dev, bf516_dev, bf522_dev, bf526_dev, bf533_dev,
62 bf534_dev, bf537_dev, bf538_dev, bf561_dev, bf592_dev): Add GPIO
63 peripheral devices.
64 (bfin_model_hw_tree_init): Hook up GPIO interrupts to SIC.
65
66 2011-03-15 Mike Frysinger <vapier@gentoo.org>
67
68 * bfroms/bf50x-0.0.h, bfroms/bf51x-0.0.h, bfroms/bf51x-0.1.h,
69 bfroms/bf51x-0.2.h, bfroms/bf526-0.0.h, bfroms/bf526-0.1.h,
70 bfroms/bf527-0.0.h, bfroms/bf527-0.1.h, bfroms/bf527-0.2.h,
71 bfroms/bf533-0.1.h, bfroms/bf533-0.2.h, bfroms/bf533-0.3.h,
72 bfroms/bf537-0.0.h, bfroms/bf537-0.1.h, bfroms/bf537-0.3.h,
73 bfroms/bf538-0.0.h, bfroms/bf54x-0.0.h, bfroms/bf54x-0.1.h,
74 bfroms/bf54x-0.2.h, bfroms/bf54x_l1-0.0.h, bfroms/bf54x_l1-0.1.h,
75 bfroms/bf54x_l1-0.2.h, bfroms/bf561-0.5.h, bfroms/bf59x-0.0.h,
76 bfroms/bf59x_l1-0.1.h, dv-bfin_cec.c, dv-bfin_ctimer.c,
77 dv-bfin_dma.c, dv-bfin_dmac.c, dv-bfin_ebiu_amc.c,
78 dv-bfin_ebiu_ddrc.c, dv-bfin_ebiu_sdc.c, dv-bfin_emac.c,
79 dv-bfin_eppi.c, dv-bfin_evt.c, dv-bfin_gptimer.c, dv-bfin_jtag.c,
80 dv-bfin_mmu.c, dv-bfin_nfc.c, dv-bfin_otp.c, dv-bfin_pll.c,
81 dv-bfin_ppi.c, dv-bfin_rtc.c, dv-bfin_sic.c, dv-bfin_spi.c,
82 dv-bfin_trace.c, dv-bfin_twi.c, dv-bfin_uart.c, dv-bfin_uart2.c,
83 dv-bfin_wdog.c, dv-bfin_wp.c, dv-eth_phy.c, gui.c,
84 linux-fixed-code.h, linux-targ-map.h, machs.c, Makefile.in: Fix style.
85
86 2011-03-15 Robin Getz <robin.getz@analog.com>
87
88 * bfin-sim.c (decode_dsp32alu_0): Set AZ based on val for 16bit adds
89 and subs.
90
91 2011-03-15 Robin Getz <robin.getz@analog.com>
92
93 * bfin-sim.c (decode_macfunc): Move acc STOREs behind op != 3 check.
94
95 2011-03-15 Robin Getz <robin.getz@analog.com>
96
97 * bfin-sim.c (decode_macfunc): New neg parameter. Set when the
98 high bit is set after extract_mult.
99 (decode_dsp32mac_0): Declare n_1 and n_0. Pass to the decode_macfunc
100 functions. Use these to update the AN bit.
101
102 2011-03-15 Robin Getz <robin.getz@analog.com>
103
104 * bfin-sim.c (decode_dsp32mult_0): Declare v_i0 and v_i1. Pass to
105 the extract_mult functions. Include these when updating the V, VS,
106 and V_COPY bits.
107
108 2011-03-15 Robin Getz <robin.getz@analog.com>
109
110 * bfin-sim.c (astat_names): New global bit array.
111 (decode_CC2stat_0): Delete local astat_name and astat_names.
112 (decode_psedodbg_assert_0): Move hardcoded offset into a variable.
113 Print out ASTAT bit values when checking an ASTAT register.
114
115 2010-03-15 Robin Getz <robin.getz@analog.com>
116
117 * bfin-sim.c (extract_mult): Handle M_IU.
118
119 2011-03-05 Mike Frysinger <vapier@gentoo.org>
120
121 * Makefile.in, TODO, aclocal.m4, bfin-sim.c, bfin-sim.h,
122 bfroms/all.h, bfroms/bf50x-0.0.h, bfroms/bf51x-0.0.h,
123 bfroms/bf51x-0.1.h, bfroms/bf51x-0.2.h, bfroms/bf526-0.0.h,
124 bfroms/bf526-0.1.h, bfroms/bf527-0.0.h, bfroms/bf527-0.1.h,
125 bfroms/bf527-0.2.h, bfroms/bf533-0.1.h, bfroms/bf533-0.2.h,
126 bfroms/bf533-0.3.h, bfroms/bf537-0.0.h, bfroms/bf537-0.1.h,
127 bfroms/bf537-0.3.h, bfroms/bf538-0.0.h, bfroms/bf54x-0.0.h,
128 bfroms/bf54x-0.1.h, bfroms/bf54x-0.2.h, bfroms/bf54x_l1-0.0.h,
129 bfroms/bf54x_l1-0.1.h, bfroms/bf54x_l1-0.2.h, bfroms/bf561-0.5.h,
130 bfroms/bf59x-0.0.h, bfroms/bf59x_l1-0.1.h, config.in, configure,
131 configure.ac, devices.c, devices.h, dv-bfin_cec.c, dv-bfin_cec.h,
132 dv-bfin_ctimer.c, dv-bfin_ctimer.h, dv-bfin_dma.c, dv-bfin_dma.h,
133 dv-bfin_dmac.c, dv-bfin_dmac.h, dv-bfin_ebiu_amc.c, dv-bfin_ebiu_amc.h,
134 dv-bfin_ebiu_ddrc.c, dv-bfin_ebiu_ddrc.h, dv-bfin_ebiu_sdc.c,
135 dv-bfin_ebiu_sdc.h, dv-bfin_emac.c, dv-bfin_emac.h, dv-bfin_eppi.c,
136 dv-bfin_eppi.h, dv-bfin_evt.c, dv-bfin_evt.h, dv-bfin_gptimer.c,
137 dv-bfin_gptimer.h, dv-bfin_jtag.c, dv-bfin_jtag.h, dv-bfin_mmu.c,
138 dv-bfin_mmu.h, dv-bfin_nfc.c, dv-bfin_nfc.h, dv-bfin_otp.c,
139 dv-bfin_otp.h, dv-bfin_pll.c, dv-bfin_pll.h, dv-bfin_ppi.c,
140 dv-bfin_ppi.h, dv-bfin_rtc.c, dv-bfin_rtc.h, dv-bfin_sic.c,
141 dv-bfin_sic.h, dv-bfin_spi.c, dv-bfin_spi.h, dv-bfin_trace.c,
142 dv-bfin_trace.h, dv-bfin_twi.c, dv-bfin_twi.h, dv-bfin_uart.c,
143 dv-bfin_uart.h, dv-bfin_uart2.c, dv-bfin_uart2.h, dv-bfin_wdog.c,
144 dv-bfin_wdog.h, dv-bfin_wp.c, dv-bfin_wp.h, dv-eth_phy.c, gui.c,
145 gui.h, insn_list.def, interp.c, linux-fixed-code.h, linux-fixed-code.s,
146 linux-targ-map.h, machs.c, machs.h, proc_list.def, sim-main.h,
147 tconfig.in: New Blackfin port.