From: Nicholas Nethercote Date: Fri, 16 Apr 2004 22:21:18 +0000 (+0000) Subject: Added comment clarifying RDTSC. X-Git-Tag: svn/VALGRIND_2_1_2~137 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5c07d8623ba2631aa7eba6f8ffd543bda93f7eff;p=thirdparty%2Fvalgrind.git Added comment clarifying RDTSC. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2370 --- diff --git a/coregrind/vg_to_ucode.c b/coregrind/vg_to_ucode.c index 6e5a4e2363..a375c08d02 100644 --- a/coregrind/vg_to_ucode.c +++ b/coregrind/vg_to_ucode.c @@ -6728,6 +6728,9 @@ static Addr disInstr ( UCodeBlock* cb, Addr eip, Bool* isEnd ) t2 = newTemp(cb); t3 = newTemp(cb); uInstr0(cb, CALLM_S, 0); + // Nb: even though these args aren't used by RDTSC_helper, need + // them to be defined (for Memcheck). The TempRegs pushed must + // also be distinct. uInstr2(cb, MOV, 4, Literal, 0, TempReg, t1); uLiteral(cb, 0); uInstr1(cb, PUSH, 4, TempReg, t1);