sewardj | c4278f4 | 2004-11-26 13:18:19 +0000 | [diff] [blame] | 1 | |
| 2 | /*---------------------------------------------------------------*/ |
| 3 | /*--- ---*/ |
| 4 | /*--- This file (libvex_trc_values.h) is ---*/ |
sewardj | dbcfae7 | 2005-08-02 11:14:04 +0000 | [diff] [blame] | 5 | /*--- Copyright (C) OpenWorks LLP. All rights reserved. ---*/ |
sewardj | c4278f4 | 2004-11-26 13:18:19 +0000 | [diff] [blame] | 6 | /*--- ---*/ |
| 7 | /*---------------------------------------------------------------*/ |
| 8 | |
| 9 | /* |
| 10 | This file is part of LibVEX, a library for dynamic binary |
| 11 | instrumentation and translation. |
| 12 | |
sewardj | e744153 | 2007-01-08 05:51:05 +0000 | [diff] [blame] | 13 | Copyright (C) 2004-2007 OpenWorks LLP. All rights reserved. |
sewardj | c4278f4 | 2004-11-26 13:18:19 +0000 | [diff] [blame] | 14 | |
sewardj | 7bd6ffe | 2005-08-03 16:07:36 +0000 | [diff] [blame] | 15 | This library is made available under a dual licensing scheme. |
sewardj | c4278f4 | 2004-11-26 13:18:19 +0000 | [diff] [blame] | 16 | |
sewardj | 7bd6ffe | 2005-08-03 16:07:36 +0000 | [diff] [blame] | 17 | 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. |
sewardj | c4278f4 | 2004-11-26 13:18:19 +0000 | [diff] [blame] | 40 | |
| 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. |
sewardj | c4278f4 | 2004-11-26 13:18:19 +0000 | [diff] [blame] | 45 | */ |
| 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. |
sewardj | 9dd9cf1 | 2006-01-20 14:13:55 +0000 | [diff] [blame] | 57 | |
| 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. |
sewardj | c4278f4 | 2004-11-26 13:18:19 +0000 | [diff] [blame] | 60 | */ |
sewardj | 7ce9d15 | 2005-03-15 16:54:13 +0000 | [diff] [blame] | 61 | |
sewardj | 4fa325a | 2005-11-03 13:27:24 +0000 | [diff] [blame] | 62 | #define VEX_TRC_JMP_TINVAL 61 /* invalidate translations before |
sewardj | 7ce9d15 | 2005-03-15 16:54:13 +0000 | [diff] [blame] | 63 | continuing */ |
sewardj | ce02aa7 | 2006-01-12 12:27:58 +0000 | [diff] [blame] | 64 | #define VEX_TRC_JMP_NOREDIR 81 /* jump to undirected guest addr */ |
sewardj | 334870d | 2006-02-07 16:42:39 +0000 | [diff] [blame] | 65 | #define VEX_TRC_JMP_TRAP 85 /* deliver trap (SIGTRAP?) before |
| 66 | continuing */ |
sewardj | 4fa325a | 2005-11-03 13:27:24 +0000 | [diff] [blame] | 67 | #define VEX_TRC_JMP_EMWARN 63 /* deliver emulation warning before |
sewardj | 893aada | 2004-11-29 19:57:54 +0000 | [diff] [blame] | 68 | continuing */ |
sewardj | 9dd9cf1 | 2006-01-20 14:13:55 +0000 | [diff] [blame] | 69 | #define VEX_TRC_JMP_EMFAIL 83 /* emulation fatal error; abort system */ |
| 70 | |
sewardj | 4fa325a | 2005-11-03 13:27:24 +0000 | [diff] [blame] | 71 | #define VEX_TRC_JMP_CLIENTREQ 65 /* do a client req before continuing */ |
| 72 | #define VEX_TRC_JMP_YIELD 67 /* yield to thread sched |
sewardj | c4278f4 | 2004-11-26 13:18:19 +0000 | [diff] [blame] | 73 | before continuing */ |
sewardj | 4fa325a | 2005-11-03 13:27:24 +0000 | [diff] [blame] | 74 | #define VEX_TRC_JMP_NODECODE 69 /* next instruction is not decodable */ |
| 75 | #define VEX_TRC_JMP_MAPFAIL 71 /* address translation failed */ |
sewardj | 52444cb | 2004-12-13 14:09:01 +0000 | [diff] [blame] | 76 | |
sewardj | 4fa325a | 2005-11-03 13:27:24 +0000 | [diff] [blame] | 77 | #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 */ |
sewardj | c4278f4 | 2004-11-26 13:18:19 +0000 | [diff] [blame] | 81 | |
| 82 | #endif /* ndef __LIBVEX_TRC_VALUES_H */ |
| 83 | |
| 84 | /*---------------------------------------------------------------*/ |
| 85 | /*--- libvex_trc_values.h ---*/ |
| 86 | /*---------------------------------------------------------------*/ |