sim: bfin: always do 16bit sign extension with the SEARCH insn
authorMike Frysinger <vapier@gentoo.org>
Thu, 24 Mar 2011 03:13:32 +0000 (03:13 +0000)
committerMike Frysinger <vapier@gentoo.org>
Thu, 24 Mar 2011 03:13:32 +0000 (03:13 +0000)
commitde0addfbefefa300907b90954f18f1e49f95e6bd
tree71be76ab4390c3dd942021d8b424d93b29118ea7
parentbeb378a5f2d5d4920dab8b2d7a0b4e3a16a037a0
sim: bfin: always do 16bit sign extension with the SEARCH insn

The Blackfin PRM does not cover this case, but the hardware is clear: even
if the search criteria is not met (and thus a new 16bit value is loaded up
into the accumulator), the accumulator undergoes 16bit sign extension.  So
simply reload the low signed 16bits in that case.

Signed-off-by: Robin Getz <robin.getz@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
sim/bfin/ChangeLog
sim/bfin/bfin-sim.c
This page took 0.024229 seconds and 4 git commands to generate.