aboutsummaryrefslogtreecommitdiffstats
path: root/target-arm/helper-android.h
diff options
context:
space:
mode:
authorDavid 'Digit' Turner <digit@android.com>2011-05-11 19:37:35 +0200
committerDavid 'Digit' Turner <digit@android.com>2011-06-01 17:08:19 +0200
commit288208c386810fef725aa448a9f46bd2772bec8c (patch)
treefadb30894ac83dbe77d6fa632a81c52912908187 /target-arm/helper-android.h
parentf1d9bf153726533acf659efd796aa484dfd0b412 (diff)
downloadexternal_qemu-288208c386810fef725aa448a9f46bd2772bec8c.zip
external_qemu-288208c386810fef725aa448a9f46bd2772bec8c.tar.gz
external_qemu-288208c386810fef725aa448a9f46bd2772bec8c.tar.bz2
target-arm/translate.c: move Android-specific stuff out.
Change-Id: Id14c6b106dbac9b4016b7423327e9eb22e21fe75
Diffstat (limited to 'target-arm/helper-android.h')
-rw-r--r--target-arm/helper-android.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/target-arm/helper-android.h b/target-arm/helper-android.h
new file mode 100644
index 0000000..5342d1d
--- /dev/null
+++ b/target-arm/helper-android.h
@@ -0,0 +1,28 @@
+/* This file must be included from helper.h */
+#ifdef CONFIG_TRACE
+DEF_HELPER_1(traceTicks, void, i32)
+DEF_HELPER_0(traceInsn, void)
+#if HOST_LONG_BITS == 32
+DEF_HELPER_2(traceBB32, void, i64, i32)
+#endif
+#if HOST_LONG_BITS == 64
+DEF_HELPER_2(traceBB64, void, i64, i64)
+#endif
+#endif
+
+#ifdef CONFIG_MEMCHECK
+/* Hooks to translated BL/BLX. This callback is used to build thread's
+ * calling stack.
+ * Param:
+ * First pointer contains guest PC where BL/BLX has been found.
+ * Second pointer contains guest PC where BL/BLX will return.
+ */
+DEF_HELPER_2(on_call, void, i32, i32)
+/* Hooks to return from translated BL/BLX. This callback is used to build
+ * thread's calling stack.
+ * Param:
+ * Pointer contains guest PC where BL/BLX will return.
+ */
+DEF_HELPER_1(on_ret, void, i32)
+#endif // CONFIG_MEMCHECK
+#include "def-helper.h"