From: Cerion Armour-Brown Date: Fri, 25 Feb 2005 13:40:31 +0000 (+0000) Subject: Fix flags define & printout last run translation after all... X-Git-Tag: svn/VALGRIND_3_0_1^2~367 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fb8daa10145eb0e9b217f49d884480e3614706d2;p=thirdparty%2Fvalgrind.git Fix flags define & printout last run translation after all... git-svn-id: svn://svn.valgrind.org/vex/trunk@967 --- diff --git a/VEX/switchback/switchback.c b/VEX/switchback/switchback.c index 2f116948f5..3776301dfd 100644 --- a/VEX/switchback/switchback.c +++ b/VEX/switchback/switchback.c @@ -49,17 +49,16 @@ static Int n_bbs_done = 0; # error "Unknown arch" #endif +/* 7: show conversion into IR */ +/* 6: show after initial opt */ +/* 5: show after instrumentation */ +/* 4: show after second opt */ +/* 3: show after tree building */ +/* 2: show selected insns */ +/* 1: show after reg-alloc */ +/* 0: show final assembly */ #define TEST_FLAGS (1<<7)|(1<<3)|(1<<2)|(1<<1) //|(1<<0) - -#define DEBUG_TRACE_FLAGS 0 & (0 \ - | (1 << 7) /* show conversion into IR */ \ - | (0 << 6) /* show after initial opt */ \ - | (0 << 5) /* show after instrumentation */ \ - | (0 << 4) /* show after second opt */ \ - | (1 << 3) /* show after tree building */ \ - | (1 << 2) /* show selected insns */ \ - | (1 << 1) /* show after reg-alloc */ \ - | (1 << 0)) /* show final assembly */ +#define DEBUG_TRACE_FLAGS 0//(1<<7)|(0<<6)|(0<<5)|(0<<4)|(1<<3)|(1<<2)|(1<<1)|(1<<0) /* guest state */ @@ -625,17 +624,18 @@ static void run_simulator ( void ) // Switchback if (n_bbs_done == stopAfter) { printf("---begin SWITCHBACK at bb:%d---\n", n_bbs_done); -#if 0 +#if 1 if (last_guest) { - printf("\n=== Last run translation (bb:%d):\n", n_bbs_done-1); + printf("\n*** Last run translation (bb:%d):\n", n_bbs_done-1); make_translation(last_guest,True); } #endif +#if 0 if (next_guest) { - printf("\n=== Current translation (bb:%d):\n", n_bbs_done); + printf("\n*** Current translation (bb:%d):\n", n_bbs_done); make_translation(next_guest,True); } - +#endif printf("--- end SWITCHBACK at bb:%d ---\n", n_bbs_done); switchback(); assert(0); /*NOTREACHED*/