boards: qemu_cortex_r5: Disable compiling with thumb mode
boards: qemu_cortex_r5: Disable compiling with thumb mode

Thumb/ARM interworking causes problems with Zephyr's multiple link build
process when userspace is enabled.  When compiling with userspace, the
first link process uses a dummy PROVIDE in the linker script for
z_object_find and z_object_wordlist_foreach.  This dummy symbol is
treated as an ARM function call, but one of the calling functions is in
thumb mode.  The compiler generates a veneer for thumb functions to call
z_object_wordlist_foreach.  On the final link step, z_object_find and
z_object_wordlist_foreach are real functions and get compiled in thumb
mode, thus no veneer is generated in the text section.  This means that
the .text size changes between the second and third link steps changing
the start of the devices section.  That causes the kobject code to look
in the wrong spot for kernel objects and a crash ensues.

Workaround this for now by only compiling in ARM mode so that no veneer
is needed.  Thus the section sizes stay the same during the different
linking steps.

Signed-off-by: Bradley Bolen <a46f022a58b40f08f87b914d58da7dec46dba40c@lexmark.com>

finikorg/zephyr,galak/zephyr,galak/zephyr,zephyrproject-rtos/zephyr,zephyrproject-rtos/zephyr,zephyrproject-rtos/zephyr,galak/zephyr,galak/zephyr,finikorg/zephyr,zephyrproject-rtos/zephyr,finikorg/zephyr,zephyrproject-rtos/zephyr,finikorg/zephyr,finikorg/zephyr,galak/zephyr