]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Added comment clarifying RDTSC.
authorNicholas Nethercote <n.nethercote@gmail.com>
Fri, 16 Apr 2004 22:21:18 +0000 (22:21 +0000)
committerNicholas Nethercote <n.nethercote@gmail.com>
Fri, 16 Apr 2004 22:21:18 +0000 (22:21 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2370

coregrind/vg_to_ucode.c

index 6e5a4e23630084d9dd146daa6b8281eda1f1ef34..a375c08d0276cafca0d9379af0045706cbe81e9d 100644 (file)
@@ -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);