1 /* src/vm/jit/trap.hpp - hardware traps
4 CACAOVM - Verein zur Foerderung der freien virtuellen Maschine CACAO
5 Copyright (C) 2009 Theobroma Systems Ltd.
7 This file is part of CACAO.
9 This program is free software; you can redistribute it and/or
10 modify it under the terms of the GNU General Public License as
11 published by the Free Software Foundation; either version 2, or (at
12 your option) any later version.
14 This program is distributed in the hope that it will be useful, but
15 WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 General Public License for more details.
19 You should have received a copy of the GNU General Public License
20 along with this program; if not, write to the Free Software
21 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
34 #include "vm/options.h"
36 #include "vm/jit/executionstate.h"
40 * Contains information about a decoded trap instruction.
42 typedef struct trapinfo_t {
43 int type; ///< Specific trap type (see md-trap.h).
44 intptr_t value; ///< Value (numeric or address) passed with the trap.
49 * Trap signal number defines. Use these instead of the signal
50 * numbers provided by your specific OS.
66 /* Include machine dependent trap stuff. */
71 /* function prototypes ********************************************************/
74 void trap_handle(int sig, void* xpc, void* context);
76 bool md_trap_decode(trapinfo_t* trp, int sig, void* xpc, executionstate_t* es);
82 #endif /* _TRAP_HPP */
86 * These are local overrides for various environment variables in Emacs.
87 * Please do not remove this and leave it at the end of the file, where
88 * Emacs will automagically detect them.
89 * ---------------------------------------------------------------------
96 * vim:noexpandtab:sw=4:ts=4: