summaryrefslogtreecommitdiff
path: root/tcg/arm
diff options
context:
space:
mode:
authorAurelien Jarno <aurelien@aurel32.net>2010-03-02 23:16:36 +0100
committerAurelien Jarno <aurelien@aurel32.net>2010-03-14 22:04:50 +0100
commit31d6655100cd54a8c081e04349661c0f08117e66 (patch)
treee78fc8236bb36ab7b8ecd305f67780c1e97b76a5 /tcg/arm
parent7296abaccc98872e28cec50091dbf26d38e4f062 (diff)
downloadqemu-31d6655100cd54a8c081e04349661c0f08117e66.tar.gz
qemu-31d6655100cd54a8c081e04349661c0f08117e66.tar.bz2
qemu-31d6655100cd54a8c081e04349661c0f08117e66.zip
tcg: add div/rem 32-bit helpers
Some targets like ARM would benefit to use 32-bit helpers for div/rem/divu/remu. Create a #define for div2 so that targets can select between div, div2 and helper implementation. Use the helper version if none of the #define are present. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'tcg/arm')
-rw-r--r--tcg/arm/tcg-target.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tcg/arm/tcg-target.h b/tcg/arm/tcg-target.h
index 4cad967ec5..4b2b0be14c 100644
--- a/tcg/arm/tcg-target.h
+++ b/tcg/arm/tcg-target.h
@@ -56,6 +56,7 @@ enum {
#define TCG_TARGET_CALL_STACK_OFFSET 0
/* optional instructions */
+#define TCG_TARGET_HAS_div2_i32
#define TCG_TARGET_HAS_ext8s_i32
#define TCG_TARGET_HAS_ext16s_i32
// #define TCG_TARGET_HAS_ext8u_i32