aboutsummaryrefslogtreecommitdiff
path: root/include/valgrind.h
diff options
context:
space:
mode:
authornjn <njn@a5019735-40e9-0310-863c-91ae7b9d1cf9>2006-11-20 22:02:40 +0000
committernjn <njn@a5019735-40e9-0310-863c-91ae7b9d1cf9>2006-11-20 22:02:40 +0000
commit1319b49115bd0763628273b8a3fe08ac30712e31 (patch)
treeb81b582e71a57d6b5d7f30aae3961ae2c705de6a /include/valgrind.h
parent9f6473a06c3dd459950f0e8555838244d71765bf (diff)
downloadvalgrind-1319b49115bd0763628273b8a3fe08ac30712e31.tar.gz
Clarify NON_SIMD_CALL instructions.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6362 a5019735-40e9-0310-863c-91ae7b9d1cf9
Diffstat (limited to 'include/valgrind.h')
-rw-r--r--include/valgrind.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/include/valgrind.h b/include/valgrind.h
index dafc0d910..9cc0af9b3 100644
--- a/include/valgrind.h
+++ b/include/valgrind.h
@@ -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; \