blob: 91dbf983cf85bce708f11afe564ccdb62e3140dc [file] [log] [blame]
sewardjc4278f42004-11-26 13:18:19 +00001
2/*---------------------------------------------------------------*/
3/*--- ---*/
4/*--- This file (libvex_trc_values.h) is ---*/
sewardjdbcfae72005-08-02 11:14:04 +00005/*--- Copyright (C) OpenWorks LLP. All rights reserved. ---*/
sewardjc4278f42004-11-26 13:18:19 +00006/*--- ---*/
7/*---------------------------------------------------------------*/
8
9/*
10 This file is part of LibVEX, a library for dynamic binary
11 instrumentation and translation.
12
sewardje7441532007-01-08 05:51:05 +000013 Copyright (C) 2004-2007 OpenWorks LLP. All rights reserved.
sewardjc4278f42004-11-26 13:18:19 +000014
sewardj7bd6ffe2005-08-03 16:07:36 +000015 This library is made available under a dual licensing scheme.
sewardjc4278f42004-11-26 13:18:19 +000016
sewardj7bd6ffe2005-08-03 16:07:36 +000017 If you link LibVEX against other code all of which is itself
18 licensed under the GNU General Public License, version 2 dated June
19 1991 ("GPL v2"), then you may use LibVEX under the terms of the GPL
20 v2, as appearing in the file LICENSE.GPL. If the file LICENSE.GPL
21 is missing, you can obtain a copy of the GPL v2 from the Free
22 Software Foundation Inc., 51 Franklin St, Fifth Floor, Boston, MA
23 02110-1301, USA.
24
25 For any other uses of LibVEX, you must first obtain a commercial
26 license from OpenWorks LLP. Please contact info@open-works.co.uk
27 for information about commercial licensing.
28
29 This software is provided by OpenWorks LLP "as is" and any express
30 or implied warranties, including, but not limited to, the implied
31 warranties of merchantability and fitness for a particular purpose
32 are disclaimed. In no event shall OpenWorks LLP be liable for any
33 direct, indirect, incidental, special, exemplary, or consequential
34 damages (including, but not limited to, procurement of substitute
35 goods or services; loss of use, data, or profits; or business
36 interruption) however caused and on any theory of liability,
37 whether in contract, strict liability, or tort (including
38 negligence or otherwise) arising in any way out of the use of this
39 software, even if advised of the possibility of such damage.
sewardjc4278f42004-11-26 13:18:19 +000040
41 Neither the names of the U.S. Department of Energy nor the
42 University of California nor the names of its contributors may be
43 used to endorse or promote products derived from this software
44 without prior written permission.
sewardjc4278f42004-11-26 13:18:19 +000045*/
46
47#ifndef __LIBVEX_TRC_VALUES_H
48#define __LIBVEX_TRC_VALUES_H
49
50
51/* Magic values that the guest state pointer might be set to when
52 returning to the dispatcher. The only other legitimate value is to
53 point to the start of the thread's VEX guest state.
54
55 This file may get included in assembly code, so do not put
56 C-specific constructs in it.
sewardj9dd9cf12006-01-20 14:13:55 +000057
58 These values should be 61 or above so as not to conflict
59 with Valgrind's VG_TRC_ values, which are 60 or below.
sewardjc4278f42004-11-26 13:18:19 +000060*/
sewardj7ce9d152005-03-15 16:54:13 +000061
sewardj4fa325a2005-11-03 13:27:24 +000062#define VEX_TRC_JMP_TINVAL 61 /* invalidate translations before
sewardj7ce9d152005-03-15 16:54:13 +000063 continuing */
sewardjce02aa72006-01-12 12:27:58 +000064#define VEX_TRC_JMP_NOREDIR 81 /* jump to undirected guest addr */
sewardj334870d2006-02-07 16:42:39 +000065#define VEX_TRC_JMP_TRAP 85 /* deliver trap (SIGTRAP?) before
66 continuing */
sewardj4fa325a2005-11-03 13:27:24 +000067#define VEX_TRC_JMP_EMWARN 63 /* deliver emulation warning before
sewardj893aada2004-11-29 19:57:54 +000068 continuing */
sewardj9dd9cf12006-01-20 14:13:55 +000069#define VEX_TRC_JMP_EMFAIL 83 /* emulation fatal error; abort system */
70
sewardj4fa325a2005-11-03 13:27:24 +000071#define VEX_TRC_JMP_CLIENTREQ 65 /* do a client req before continuing */
72#define VEX_TRC_JMP_YIELD 67 /* yield to thread sched
sewardjc4278f42004-11-26 13:18:19 +000073 before continuing */
sewardj4fa325a2005-11-03 13:27:24 +000074#define VEX_TRC_JMP_NODECODE 69 /* next instruction is not decodable */
75#define VEX_TRC_JMP_MAPFAIL 71 /* address translation failed */
sewardj52444cb2004-12-13 14:09:01 +000076
sewardj4fa325a2005-11-03 13:27:24 +000077#define VEX_TRC_JMP_SYS_SYSCALL 73 /* do syscall before continuing */
78#define VEX_TRC_JMP_SYS_INT32 75 /* do syscall before continuing */
79#define VEX_TRC_JMP_SYS_INT128 77 /* do syscall before continuing */
80#define VEX_TRC_JMP_SYS_SYSENTER 79 /* do syscall before continuing */
sewardjc4278f42004-11-26 13:18:19 +000081
82#endif /* ndef __LIBVEX_TRC_VALUES_H */
83
84/*---------------------------------------------------------------*/
85/*--- libvex_trc_values.h ---*/
86/*---------------------------------------------------------------*/