From ab42ada6ecfb81d6e231d5997b5892efd0fde5ad Mon Sep 17 00:00:00 2001 From: Jack Veenstra Date: Thu, 30 Apr 2009 15:07:18 -0700 Subject: Added tracing of exceptions to the emulator. Exceptions used to be traced but that code was deleted during a large merge. --- target-arm/helper.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'target-arm') diff --git a/target-arm/helper.c b/target-arm/helper.c index 7cc8b0f..85753e4 100644 --- a/target-arm/helper.c +++ b/target-arm/helper.c @@ -7,6 +7,9 @@ #include "gdbstub.h" #include "helpers.h" #include "qemu-common.h" +#ifdef CONFIG_TRACE +#include "trace.h" +#endif static uint32_t cortexa8_cp15_c0_c1[8] = { 0x1031, 0x11, 0x400, 0, 0x31100003, 0x20000000, 0x01202000, 0x11 }; @@ -702,6 +705,12 @@ void do_interrupt(CPUARMState *env) int new_mode; uint32_t offset; +#ifdef CONFIG_TRACE + if (tracing) { + trace_exception(env->regs[15]); + } +#endif + if (IS_M(env)) { do_interrupt_v7m(env); return; -- cgit v1.1