diff options
Diffstat (limited to 'target-arm/helper.c')
-rw-r--r-- | target-arm/helper.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/target-arm/helper.c b/target-arm/helper.c index 9ac7e25..56d9953 100644 --- a/target-arm/helper.c +++ b/target-arm/helper.c @@ -10,6 +10,9 @@ #ifdef CONFIG_TRACE #include "trace.h" #endif +#ifdef CONFIG_MEMCHECK +#include "memcheck/memcheck_api.h" +#endif // CONFIG_MEMCHECK static uint32_t cortexa8_cp15_c0_c1[8] = { 0x1031, 0x11, 0x400, 0, 0x31100003, 0x20000000, 0x01202000, 0x11 }; @@ -2668,3 +2671,12 @@ void HELPER(set_teecr)(CPUState *env, uint32_t val) } } +#ifdef CONFIG_MEMCHECK +void HELPER(on_call)(void* pc, void* ret) { + memcheck_on_call((target_ulong)pc, (target_ulong)ret); +} + +void HELPER(on_ret)(void* ret) { + memcheck_on_ret((target_ulong)ret); +} +#endif // CONFIG_MEMCHECK |