sim-main.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /* Moxie Simulator definition.
  2. Copyright (C) 2009-2022 Free Software Foundation, Inc.
  3. Contributed by Anthony Green <green@moxielogic.com>
  4. This file is part of GDB, the GNU debugger.
  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_MAIN_H
  16. #define SIM_MAIN_H
  17. #include "sim-basics.h"
  18. #include "sim-base.h"
  19. #include "bfd.h"
  20. #define PCIDX 17
  21. struct _sim_cpu {
  22. /* The following are internal simulator state variables: */
  23. /* To keep this default simulator simple, and fast, we use a direct
  24. vector of registers. The internal simulator engine then uses
  25. manifests to access the correct slot. */
  26. unsigned_word registers[19];
  27. sim_cpu_base base;
  28. };
  29. #endif