diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2011-03-06 21:39:55 +0000 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2011-03-07 09:26:18 +0100 |
commit | 3849902cd852d7de0783abc41cb0c57949d567fd (patch) | |
tree | f8944892aafff29bd2bb59819925774285e78838 /target-arm/translate.c | |
parent | 7d1b0095bff7157e856d1d0e6c4295641ced2752 (diff) | |
download | qemu-3849902cd852d7de0783abc41cb0c57949d567fd.zip qemu-3849902cd852d7de0783abc41cb0c57949d567fd.tar.gz qemu-3849902cd852d7de0783abc41cb0c57949d567fd.tar.bz2 |
target-arm: Use TCG temporary leak debugging facilities
Use the new TCG temporary leak debugging facilities to
check that each ARM instruction does not leak temporaries.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'target-arm/translate.c')
-rw-r--r-- | target-arm/translate.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/target-arm/translate.c b/target-arm/translate.c index e01c8cd..91203c2 100644 --- a/target-arm/translate.c +++ b/target-arm/translate.c @@ -9149,6 +9149,8 @@ static inline void gen_intermediate_code_internal(CPUState *env, gen_icount_start(); + tcg_clear_temp_count(); + /* A note on handling of the condexec (IT) bits: * * We want to avoid the overhead of having to write the updated condexec @@ -9258,6 +9260,11 @@ static inline void gen_intermediate_code_internal(CPUState *env, gen_set_label(dc->condlabel); dc->condjmp = 0; } + + if (tcg_check_temp_count()) { + fprintf(stderr, "TCG temporary leak before %08x\n", dc->pc); + } + /* Translation stops when a conditional branch is encountered. * Otherwise the subsequent code could get translated several times. * Also stop translation when a page boundary is reached. This |