sewardj | c4278f4 | 2004-11-26 13:18:19 +0000 | [diff] [blame] | 1 | |
| 2 | /*---------------------------------------------------------------*/ |
sewardj | 752f906 | 2010-05-03 21:38:49 +0000 | [diff] [blame] | 3 | /*--- begin libvex_trc_values.h ---*/ |
sewardj | c4278f4 | 2004-11-26 13:18:19 +0000 | [diff] [blame] | 4 | /*---------------------------------------------------------------*/ |
| 5 | |
| 6 | /* |
sewardj | 752f906 | 2010-05-03 21:38:49 +0000 | [diff] [blame] | 7 | This file is part of Valgrind, a dynamic binary instrumentation |
| 8 | framework. |
sewardj | c4278f4 | 2004-11-26 13:18:19 +0000 | [diff] [blame] | 9 | |
sewardj | 785952d | 2015-08-21 11:29:16 +0000 | [diff] [blame] | 10 | Copyright (C) 2004-2015 OpenWorks LLP |
sewardj | 752f906 | 2010-05-03 21:38:49 +0000 | [diff] [blame] | 11 | info@open-works.net |
sewardj | c4278f4 | 2004-11-26 13:18:19 +0000 | [diff] [blame] | 12 | |
sewardj | 752f906 | 2010-05-03 21:38:49 +0000 | [diff] [blame] | 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. |
sewardj | c4278f4 | 2004-11-26 13:18:19 +0000 | [diff] [blame] | 17 | |
sewardj | 752f906 | 2010-05-03 21:38:49 +0000 | [diff] [blame] | 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., 51 Franklin Street, Fifth Floor, Boston, MA |
sewardj | 7bd6ffe | 2005-08-03 16:07:36 +0000 | [diff] [blame] | 26 | 02110-1301, USA. |
| 27 | |
sewardj | 752f906 | 2010-05-03 21:38:49 +0000 | [diff] [blame] | 28 | The GNU General Public License is contained in the file COPYING. |
sewardj | c4278f4 | 2004-11-26 13:18:19 +0000 | [diff] [blame] | 29 | |
| 30 | Neither the names of the U.S. Department of Energy nor the |
| 31 | University of California nor the names of its contributors may be |
| 32 | used to endorse or promote products derived from this software |
| 33 | without prior written permission. |
sewardj | c4278f4 | 2004-11-26 13:18:19 +0000 | [diff] [blame] | 34 | */ |
| 35 | |
| 36 | #ifndef __LIBVEX_TRC_VALUES_H |
| 37 | #define __LIBVEX_TRC_VALUES_H |
| 38 | |
| 39 | |
| 40 | /* Magic values that the guest state pointer might be set to when |
| 41 | returning to the dispatcher. The only other legitimate value is to |
| 42 | point to the start of the thread's VEX guest state. |
| 43 | |
| 44 | This file may get included in assembly code, so do not put |
| 45 | C-specific constructs in it. |
sewardj | 9dd9cf1 | 2006-01-20 14:13:55 +0000 | [diff] [blame] | 46 | |
| 47 | These values should be 61 or above so as not to conflict |
| 48 | with Valgrind's VG_TRC_ values, which are 60 or below. |
sewardj | c4278f4 | 2004-11-26 13:18:19 +0000 | [diff] [blame] | 49 | */ |
sewardj | 7ce9d15 | 2005-03-15 16:54:13 +0000 | [diff] [blame] | 50 | |
sewardj | 05f5e01 | 2014-05-04 10:52:11 +0000 | [diff] [blame] | 51 | #define VEX_TRC_JMP_INVALICACHE 61 /* invalidate icache (translations) |
| 52 | before continuing */ |
sewardj | 6590299 | 2014-05-03 21:20:56 +0000 | [diff] [blame] | 53 | #define VEX_TRC_JMP_FLUSHDCACHE 103 /* flush dcache before continuing */ |
| 54 | |
sewardj | ce02aa7 | 2006-01-12 12:27:58 +0000 | [diff] [blame] | 55 | #define VEX_TRC_JMP_NOREDIR 81 /* jump to undirected guest addr */ |
sewardj | 0f50004 | 2007-08-29 09:09:17 +0000 | [diff] [blame] | 56 | #define VEX_TRC_JMP_SIGTRAP 85 /* deliver trap (SIGTRAP) before |
| 57 | continuing */ |
| 58 | #define VEX_TRC_JMP_SIGSEGV 87 /* deliver segv (SIGSEGV) before |
sewardj | 334870d | 2006-02-07 16:42:39 +0000 | [diff] [blame] | 59 | continuing */ |
sewardj | e9d8a26 | 2009-07-01 08:06:34 +0000 | [diff] [blame] | 60 | #define VEX_TRC_JMP_SIGBUS 93 /* deliver SIGBUS before continuing */ |
| 61 | |
petarj | a6a1986 | 2012-10-19 14:55:58 +0000 | [diff] [blame] | 62 | #define VEX_TRC_JMP_SIGFPE_INTDIV 97 /* deliver SIGFPE (integer divide |
| 63 | by zero) before continuing */ |
| 64 | |
| 65 | #define VEX_TRC_JMP_SIGFPE_INTOVF 99 /* deliver SIGFPE (integer overflow) |
| 66 | before continuing */ |
| 67 | |
dejanj | 0e006f2 | 2014-02-19 11:56:29 +0000 | [diff] [blame] | 68 | #define VEX_TRC_JMP_SIGILL 101 /* deliver SIGILL (Illegal instruction) |
| 69 | before continuing */ |
| 70 | |
sewardj | 4fa325a | 2005-11-03 13:27:24 +0000 | [diff] [blame] | 71 | #define VEX_TRC_JMP_EMWARN 63 /* deliver emulation warning before |
sewardj | 893aada | 2004-11-29 19:57:54 +0000 | [diff] [blame] | 72 | continuing */ |
sewardj | 9dd9cf1 | 2006-01-20 14:13:55 +0000 | [diff] [blame] | 73 | #define VEX_TRC_JMP_EMFAIL 83 /* emulation fatal error; abort system */ |
| 74 | |
sewardj | 4fa325a | 2005-11-03 13:27:24 +0000 | [diff] [blame] | 75 | #define VEX_TRC_JMP_CLIENTREQ 65 /* do a client req before continuing */ |
| 76 | #define VEX_TRC_JMP_YIELD 67 /* yield to thread sched |
sewardj | c4278f4 | 2004-11-26 13:18:19 +0000 | [diff] [blame] | 77 | before continuing */ |
sewardj | 4fa325a | 2005-11-03 13:27:24 +0000 | [diff] [blame] | 78 | #define VEX_TRC_JMP_NODECODE 69 /* next instruction is not decodable */ |
| 79 | #define VEX_TRC_JMP_MAPFAIL 71 /* address translation failed */ |
sewardj | 52444cb | 2004-12-13 14:09:01 +0000 | [diff] [blame] | 80 | |
sewardj | 4fa325a | 2005-11-03 13:27:24 +0000 | [diff] [blame] | 81 | #define VEX_TRC_JMP_SYS_SYSCALL 73 /* do syscall before continuing */ |
| 82 | #define VEX_TRC_JMP_SYS_INT32 75 /* do syscall before continuing */ |
| 83 | #define VEX_TRC_JMP_SYS_INT128 77 /* do syscall before continuing */ |
sewardj | d660d41 | 2008-12-03 21:29:59 +0000 | [diff] [blame] | 84 | #define VEX_TRC_JMP_SYS_INT129 89 /* do syscall before continuing */ |
| 85 | #define VEX_TRC_JMP_SYS_INT130 91 /* do syscall before continuing */ |
sewardj | 3e5d82d | 2015-07-21 14:43:23 +0000 | [diff] [blame] | 86 | #define VEX_TRC_JMP_SYS_INT145 111 /* do syscall before continuing */ |
| 87 | #define VEX_TRC_JMP_SYS_INT210 113 /* do syscall before continuing */ |
sewardj | d660d41 | 2008-12-03 21:29:59 +0000 | [diff] [blame] | 88 | |
sewardj | 4fa325a | 2005-11-03 13:27:24 +0000 | [diff] [blame] | 89 | #define VEX_TRC_JMP_SYS_SYSENTER 79 /* do syscall before continuing */ |
sewardj | c4278f4 | 2004-11-26 13:18:19 +0000 | [diff] [blame] | 90 | |
sewardj | c6f970f | 2012-04-02 21:54:49 +0000 | [diff] [blame] | 91 | #define VEX_TRC_JMP_BORING 95 /* return to sched, but just |
| 92 | keep going; no special action */ |
| 93 | |
sewardj | c4278f4 | 2004-11-26 13:18:19 +0000 | [diff] [blame] | 94 | #endif /* ndef __LIBVEX_TRC_VALUES_H */ |
| 95 | |
| 96 | /*---------------------------------------------------------------*/ |
| 97 | /*--- libvex_trc_values.h ---*/ |
| 98 | /*---------------------------------------------------------------*/ |