| 1 | /* Generic remote debugging interface for simulators. |
| 2 | |
| 3 | Copyright (C) 2002, 2007 Free Software Foundation, Inc. |
| 4 | |
| 5 | Contributed by Red Hat, Inc. |
| 6 | |
| 7 | This file is part of GDB. |
| 8 | |
| 9 | This program is free software; you can redistribute it and/or modify |
| 10 | it under the terms of the GNU General Public License as published by |
| 11 | the Free Software Foundation; either version 2 of the License, or |
| 12 | (at your option) any later version. |
| 13 | |
| 14 | This program is distributed in the hope that it will be useful, |
| 15 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 17 | GNU General Public License for more details. |
| 18 | |
| 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, |
| 22 | Boston, MA 02110-1301, USA. */ |
| 23 | |
| 24 | #ifndef SIM_REGNO_H |
| 25 | #define SIM_REGNO_H |
| 26 | |
| 27 | /* The REGISTER_SIM_REGNO(REGNUM) method, when there is a |
| 28 | corresponding simulator register, returns that register number as a |
| 29 | cardinal. When there is no corresponding register, it returns a |
| 30 | negative value. */ |
| 31 | |
| 32 | enum sim_regno { |
| 33 | /* Normal sane architecture. The simulator is known to not model |
| 34 | this register. */ |
| 35 | SIM_REGNO_DOES_NOT_EXIST = -1, |
| 36 | /* For possible backward compatibility. The register cache doesn't |
| 37 | have a corresponding name. Skip the register entirely. */ |
| 38 | LEGACY_SIM_REGNO_IGNORE = -2 |
| 39 | }; |
| 40 | |
| 41 | /* Treat all raw registers as valid. */ |
| 42 | |
| 43 | extern int one2one_register_sim_regno (int regnum); |
| 44 | |
| 45 | #endif |