sim-regno.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /* Generic remote debugging interface for simulators.
  2. Copyright (C) 2002-2022 Free Software Foundation, Inc.
  3. Contributed by Red Hat, Inc.
  4. This file is part of GDB.
  5. This program is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 3 of the License, or
  8. (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program. If not, see <http://www.gnu.org/licenses/>. */
  15. #ifndef SIM_REGNO_H
  16. #define SIM_REGNO_H
  17. /* The gdbarch_register_sim_regno (REGNUM) method, when there is a
  18. corresponding simulator register, returns that register number as a
  19. cardinal. When there is no corresponding register, it returns a
  20. negative value. */
  21. enum sim_regno {
  22. /* Normal sane architecture. The simulator is known to not model
  23. this register. */
  24. SIM_REGNO_DOES_NOT_EXIST = -1,
  25. /* For possible backward compatibility. The register cache doesn't
  26. have a corresponding name. Skip the register entirely. */
  27. LEGACY_SIM_REGNO_IGNORE = -2
  28. };
  29. /* Treat all raw registers as valid. */
  30. extern int one2one_register_sim_regno (struct gdbarch *gdbarch, int regnum);
  31. #endif