aboutsummaryrefslogtreecommitdiff
path: root/tcg/arm/tcg-target.h
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2013-03-04 21:12:30 -0800
committerAurelien Jarno <aurelien@aurel32.net>2013-04-27 02:16:44 +0200
commitb6b24cb031d1d6e6f50abf0c8bdc1c309e549156 (patch)
tree18ee6ad81ad6bf3fce84ca2cadea87f83708a45f /tcg/arm/tcg-target.h
parente86e0f2807fbadee09d9e06f11df69339cbbd94c (diff)
downloadqemu-b6b24cb031d1d6e6f50abf0c8bdc1c309e549156.zip
qemu-b6b24cb031d1d6e6f50abf0c8bdc1c309e549156.tar.gz
qemu-b6b24cb031d1d6e6f50abf0c8bdc1c309e549156.tar.bz2
tcg-arm: Implement deposit for armv7
We have BFI and BFC available for implementing it. Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'tcg/arm/tcg-target.h')
-rw-r--r--tcg/arm/tcg-target.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/tcg/arm/tcg-target.h b/tcg/arm/tcg-target.h
index 354dd8a..209f585 100644
--- a/tcg/arm/tcg-target.h
+++ b/tcg/arm/tcg-target.h
@@ -71,10 +71,13 @@ typedef enum {
#define TCG_TARGET_HAS_eqv_i32 0
#define TCG_TARGET_HAS_nand_i32 0
#define TCG_TARGET_HAS_nor_i32 0
-#define TCG_TARGET_HAS_deposit_i32 0
+#define TCG_TARGET_HAS_deposit_i32 1
#define TCG_TARGET_HAS_movcond_i32 1
#define TCG_TARGET_HAS_muls2_i32 1
+extern bool tcg_target_deposit_valid(int ofs, int len);
+#define TCG_TARGET_deposit_i32_valid tcg_target_deposit_valid
+
enum {
TCG_AREG0 = TCG_REG_R6,
};