diff options
| author | Christophe Lyon <christophe.lyon@st.com> | 2011-01-19 17:10:52 +0100 |
|---|---|---|
| committer | Aurelien Jarno <aurelien@aurel32.net> | 2011-01-26 14:30:24 +0100 |
| commit | 40d3c433606530ee1bb46ce95a6ca1cf2ee9d9c7 (patch) | |
| tree | 9af5b8dc7e79824a78271a95f34a84a03bb7eb1b /hw/onenand.c | |
| parent | e3f114f761fd44db3b33f5d704da48392fce4ce8 (diff) | |
| download | focaccia-qemu-40d3c433606530ee1bb46ce95a6ca1cf2ee9d9c7.tar.gz focaccia-qemu-40d3c433606530ee1bb46ce95a6ca1cf2ee9d9c7.zip | |
Support saturation with shift=0.
This patch fixes corner-case saturations, when the target range is zero. It merely removes the guard against (sh == 0), and makes: __ssat(0x87654321, 1) return 0xffffffff and set the saturation flag __usat(0x87654321, 0) return 0 and set the saturation flag Signed-off-by: Christophe Lyon <christophe.lyon@st.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'hw/onenand.c')
0 files changed, 0 insertions, 0 deletions