Make sure the m5 op call sight is marked as thumb, and also use an
interworking branch to return from it.
Change-Id: I4f6ec6a0e9e7ff76fc8f256fec9ec410a9959189
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/27748
Maintainer: Gabe Black <gabeblack@google.com>
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
.macro m5op_func name, func
.align 2
.globl \name
+ .thumb_func
\name:
.short 0xEE00 | \func
.short 0x0110
- mov pc,lr
+ bx lr
.endm
.text