arm: Fix POP_RET for armv4t && interworking

It seems the condition was reversed which lead to e.g. arm-920t being
confused

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
This commit is contained in:
Bernhard Reutner-Fischer
2015-04-18 22:38:29 +02:00
parent 7c78a5c52b
commit 298f58e073

View File

@@ -13,12 +13,12 @@
unified assembly syntax. */
#define IT(t, cond)
/* Code to return from a thumb function stub. */
#ifdef __ARM_ARCH_4T__
#define POP_RET pop {r2, pc}
#else
#define POP_RET pop {r2, r3}; bx r3
#endif
#endif
# if defined __ARM_ARCH_4T__ && defined __THUMB_INTERWORK__
# define POP_RET pop {r2, r3}; bx r3
# else
# define POP_RET pop {r2, pc}
# endif
#endif /* __thumb2__ */
#if defined(__ARM_ARCH_6M__)
/* Force arm mode to flush out errors on M profile cores. */