On 29 June 2012 15:13, Xiao Jiang jgq516@gmail.com wrote:
Hello,
I tried codesourcy arm-2012.03-57-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2, and get below err infos.
Error: selected processor does not support ARM mode `sdiv R2,R0,R1' Error: selected processor does not support ARM mode `udiv R2,R0,R1'
Does it mean this toolchain version don't support both instructions? and which toolchain can support them?
Hi Xaio. I can't speak for the CodeSourcery toolchain, but these instructions first appeared for Thumb-2 mode in binutils 2.20 and ARM mode in binutils 2.21. You can check the version you have with 'arm-none-linux-gnueabi-as --version'. We ship binutils 2.22 with the Linaro Toolchain Binaries which is available at:
https://launchpad.net/linaro-toolchain-binaries
Check which CPU you're building for. The Thumb-2 instructions are present on the Cortex-M series, Cortex-R series, Cortex-A7, and Cortex-A15. The ARM versions are present on the Cortex-A7 and Cortex-A15 only. You might be building for something earlier like the ARMv5T.
-- Michael