blob: 77a7afecf21a766039d7924887eb9a9a9836436f [file] [log] [blame]
njna733b5f2005-05-12 13:15:38 +00001
2/*--------------------------------------------------------------------*/
3/*--- Asm-only dispatcher stuff. pub_core_dispatch_asm.h ---*/
4/*--------------------------------------------------------------------*/
5
6/*
7 This file is part of Valgrind, a dynamic binary instrumentation
8 framework.
9
sewardj9eecbbb2010-05-03 21:37:12 +000010 Copyright (C) 2000-2010 Julian Seward
njna733b5f2005-05-12 13:15:38 +000011 jseward@acm.org
12
13 This program is free software; you can redistribute it and/or
14 modify it under the terms of the GNU General Public License as
15 published by the Free Software Foundation; either version 2 of the
16 License, or (at your option) any later version.
17
18 This program is distributed in the hope that it will be useful, but
19 WITHOUT ANY WARRANTY; without even the implied warranty of
20 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21 General Public License for more details.
22
23 You should have received a copy of the GNU General Public License
24 along with this program; if not, write to the Free Software
25 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
26 02111-1307, USA.
27
28 The GNU General Public License is contained in the file COPYING.
29*/
30
31#ifndef __PUB_CORE_DISPATCH_ASM_H
32#define __PUB_CORE_DISPATCH_ASM_H
33
34/* Magic values that the guest state might be set to when returning to the
35 dispatcher. The only other legitimate value is to point to the
36 start of the thread's VEX guest state. These also are return values from
37 from VG_(run_innerloop) to the scheduler.
38*/
39/* Defines values for JMP_EMWARN, JMP_SYSCALL, JMP_CLIENTREQ and
40 JMP_YIELD */
41#include "libvex_trc_values.h"
42
43/* And some more of our own. These must not have the same values as
sewardjdc4f2e72011-05-28 11:05:44 +000044 those from libvex_trc_values.h. (viz, 60 or below is safe).
45
46 These values *must* be odd (have bit 0 set) because the dispatchers
47 (coregrind/m_dispatch/dispatch-*-*.S) use this fact to distinguish
48 a TRC value from the unchanged baseblock pointer -- which has 0 as
49 its lowest bit.
50*/
sewardj0ec07f32006-01-12 12:32:32 +000051#define VG_TRC_BORING 29 /* no event; just keep going */
njna733b5f2005-05-12 13:15:38 +000052#define VG_TRC_INNER_FASTMISS 37 /* TRC only; means fast-cache miss. */
53#define VG_TRC_INNER_COUNTERZERO 41 /* TRC only; means bb ctr == 0 */
54#define VG_TRC_FAULT_SIGNAL 43 /* TRC only; got sigsegv/sigbus */
55#define VG_TRC_INVARIANT_FAILED 47 /* TRC only; invariant violation */
56
57#endif // __PUB_CORE_DISPATCH_ASM_H
58
59/*--------------------------------------------------------------------*/
60/*--- end ---*/
61/*--------------------------------------------------------------------*/