diff options
author | David 'Digit' Turner <digit@android.com> | 2011-05-11 19:37:35 +0200 |
---|---|---|
committer | David 'Digit' Turner <digit@android.com> | 2011-06-01 17:08:19 +0200 |
commit | 288208c386810fef725aa448a9f46bd2772bec8c (patch) | |
tree | fadb30894ac83dbe77d6fa632a81c52912908187 /target-arm/helper-android.h | |
parent | f1d9bf153726533acf659efd796aa484dfd0b412 (diff) | |
download | external_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.h | 28 |
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" |