sim: bfin: fix thinko in SIC pin encoding
When encoding the SIC/pin info into unique input port ids, I used bases of 100 when I meant to use 0x100. Rather than simply fix the decoding math in the different functions, create a few helper macros to simplify the SIC/pin encoding and decoding steps. This makes the resulting tables nice & clear. And now that pins are clear, the 533 and 537 port_event handlers may easily be merged into one. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
parent
8d8a97461a
commit
e4a861d14b
@ -1,3 +1,17 @@
|
|||||||
|
2011-03-23 Mike Frysinger <vapier@gentoo.org>
|
||||||
|
|
||||||
|
* dv-bfin_sic.c (ENC, DEC_PIN, DEC_SIC): Define.
|
||||||
|
(bfin_sic_50x_ports, bfin_sic_51x_ports, bfin_sic_52x_ports,
|
||||||
|
bfin_sic_533_ports, bfin_sic_537_ports, bfin_sic_538_ports,
|
||||||
|
bfin_sic_54x_ports, bfin_sic_561_ports, bfin_sic_59x_ports):
|
||||||
|
Encode ids with the ENC macro.
|
||||||
|
(bfin_sic_52x_port_event, bfin_sic_537_port_event,
|
||||||
|
bfin_sic_54x_port_event, bfin_sic_561_port_event): Set idx
|
||||||
|
from my_port with DEC_SIC, and set bit from my_port with DEC_PIN.
|
||||||
|
(bfin_sic_533_port_event): Delete.
|
||||||
|
(bfin_sic_finish): Call set_hw_port_event with
|
||||||
|
bfin_sic_537_port_event for BF533 and BF59x targets.
|
||||||
|
|
||||||
2011-03-23 Robin Getz <robin.getz@analog.com>
|
2011-03-23 Robin Getz <robin.getz@analog.com>
|
||||||
|
|
||||||
* bfin-sim.c (decode_dsp32alu_0): Drop the src0/src1 check for
|
* bfin-sim.c (decode_dsp32alu_0): Drop the src0/src1 check for
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user