15796c8dcSSimon Schubert /* Generic remote debugging interface for simulators. 25796c8dcSSimon Schubert 3*ef5ccd6cSJohn Marino Copyright (C) 2002-2013 Free Software Foundation, Inc. 45796c8dcSSimon Schubert 55796c8dcSSimon Schubert Contributed by Red Hat, Inc. 65796c8dcSSimon Schubert 75796c8dcSSimon Schubert This file is part of GDB. 85796c8dcSSimon Schubert 95796c8dcSSimon Schubert This program is free software; you can redistribute it and/or modify 105796c8dcSSimon Schubert it under the terms of the GNU General Public License as published by 115796c8dcSSimon Schubert the Free Software Foundation; either version 3 of the License, or 125796c8dcSSimon Schubert (at your option) any later version. 135796c8dcSSimon Schubert 145796c8dcSSimon Schubert This program is distributed in the hope that it will be useful, 155796c8dcSSimon Schubert but WITHOUT ANY WARRANTY; without even the implied warranty of 165796c8dcSSimon Schubert MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 175796c8dcSSimon Schubert GNU General Public License for more details. 185796c8dcSSimon Schubert 195796c8dcSSimon Schubert You should have received a copy of the GNU General Public License 205796c8dcSSimon Schubert along with this program. If not, see <http://www.gnu.org/licenses/>. */ 215796c8dcSSimon Schubert 225796c8dcSSimon Schubert #ifndef SIM_REGNO_H 235796c8dcSSimon Schubert #define SIM_REGNO_H 245796c8dcSSimon Schubert 255796c8dcSSimon Schubert /* The gdbarch_register_sim_regno (REGNUM) method, when there is a 265796c8dcSSimon Schubert corresponding simulator register, returns that register number as a 275796c8dcSSimon Schubert cardinal. When there is no corresponding register, it returns a 285796c8dcSSimon Schubert negative value. */ 295796c8dcSSimon Schubert 305796c8dcSSimon Schubert enum sim_regno { 315796c8dcSSimon Schubert /* Normal sane architecture. The simulator is known to not model 325796c8dcSSimon Schubert this register. */ 335796c8dcSSimon Schubert SIM_REGNO_DOES_NOT_EXIST = -1, 345796c8dcSSimon Schubert /* For possible backward compatibility. The register cache doesn't 355796c8dcSSimon Schubert have a corresponding name. Skip the register entirely. */ 365796c8dcSSimon Schubert LEGACY_SIM_REGNO_IGNORE = -2 375796c8dcSSimon Schubert }; 385796c8dcSSimon Schubert 395796c8dcSSimon Schubert /* Treat all raw registers as valid. */ 405796c8dcSSimon Schubert 415796c8dcSSimon Schubert extern int one2one_register_sim_regno (struct gdbarch *gdbarch, int regnum); 425796c8dcSSimon Schubert 435796c8dcSSimon Schubert #endif 44