* sim-fpu.c (pack_fpu): Handle QUIET_NAN correctly for
[deliverable/binutils-gdb.git] / sim / common / sim-signal.h
CommitLineData
c906108c
SS
1/* Simulator signal support
2 Copyright (C) 1997 Free Software Foundation, Inc.
3 Contributed by Cygnus Support
4
5This file is part of the GNU Simulators.
6
7This program is free software; you can redistribute it and/or modify
8it under the terms of the GNU General Public License as published by
9the Free Software Foundation; either version 2, or (at your option)
10any later version.
11
12This program is distributed in the hope that it will be useful,
13but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License along
18with this program; if not, write to the Free Software Foundation, Inc.,
1959 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
20
21#ifndef SIM_SIGNAL_H
22#define SIM_SIGNAL_H
23
aba6488e
MM
24#include "gdb/signals.h"
25
c906108c
SS
26/* Signals we use.
27 This provides a layer between our values and host/target values. */
28
29typedef enum {
30 SIM_SIGNONE = 64,
31 /* illegal insn */
32 SIM_SIGILL,
33 /* breakpoint */
34 SIM_SIGTRAP,
35 /* misaligned memory access */
36 SIM_SIGBUS,
37 /* tried to read/write memory that's not readable/writable */
38 SIM_SIGSEGV,
39 /* cpu limit exceeded */
40 SIM_SIGXCPU,
41 /* simulation interrupted (sim_stop called) */
42 SIM_SIGINT,
43 /* Floating point or integer divide */
44 SIM_SIGFPE,
45 /* simulation aborted */
46 SIM_SIGABRT
47} SIM_SIGNAL;
48
49int sim_signal_to_host (SIM_DESC sd, SIM_SIGNAL);
aba6488e 50enum target_signal sim_signal_to_target (SIM_DESC sd, SIM_SIGNAL);
c906108c
SS
51
52#endif /* SIM_SIGNAL_H */
This page took 0.299773 seconds and 4 git commands to generate.