]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Clarify NON_SIMD_CALL instructions.
authorNicholas Nethercote <njn@valgrind.org>
Mon, 20 Nov 2006 22:02:40 +0000 (22:02 +0000)
committerNicholas Nethercote <njn@valgrind.org>
Mon, 20 Nov 2006 22:02:40 +0000 (22:02 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6362

include/valgrind.h

index dafc0d910e1c027bf2e5f38241acd4d151b01117..9cc0af9b38978b156c033a356ac099f08f2fe7f9 100644 (file)
@@ -3652,7 +3652,19 @@ VALGRIND_PRINTF_BACKTRACE(const char *format, ...)
 
 
 /* These requests allow control to move from the simulated CPU to the
-   real CPU, calling an arbitary function */
+   real CPU, calling an arbitary function.
+   
+   Note that the current ThreadId is inserted as the first argument.
+   So this call:
+
+     VALGRIND_NON_SIMD_CALL2(f, arg1, arg2)
+
+   requires f to have this signature:
+
+     Word f(Word tid, Word arg1, Word arg2)
+
+   where "Word" is a word-sized type.
+*/
 #define VALGRIND_NON_SIMD_CALL0(_qyy_fn)                          \
    __extension__                                                  \
    ({unsigned long _qyy_res;                                      \