cpuall.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /* Simulator CPU header for or1k.
  2. THIS FILE IS MACHINE GENERATED WITH CGEN.
  3. Copyright (C) 1996-2022 Free Software Foundation, Inc.
  4. This file is part of the GNU simulators.
  5. This file 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, or (at your option)
  8. any later version.
  9. It is distributed in the hope that it will be useful, but WITHOUT
  10. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  11. or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
  12. License for more details.
  13. You should have received a copy of the GNU General Public License along
  14. with this program; if not, write to the Free Software Foundation, Inc.,
  15. 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
  16. */
  17. #ifndef OR1K_CPUALL_H
  18. #define OR1K_CPUALL_H
  19. /* Include files for each cpu family. */
  20. #ifdef WANT_CPU_OR1K32BF
  21. #include "eng.h"
  22. #include "cpu.h"
  23. #include "decode.h"
  24. #endif
  25. extern const SIM_MACH or32_mach;
  26. extern const SIM_MACH or32nd_mach;
  27. #ifndef WANT_CPU
  28. /* The ARGBUF struct. */
  29. struct argbuf {
  30. /* These are the baseclass definitions. */
  31. IADDR addr;
  32. const IDESC *idesc;
  33. char trace_p;
  34. char profile_p;
  35. /* ??? Temporary hack for skip insns. */
  36. char skip_count;
  37. char unused;
  38. /* cpu specific data follows */
  39. };
  40. #endif
  41. #ifndef WANT_CPU
  42. /* A cached insn.
  43. ??? SCACHE used to contain more than just argbuf. We could delete the
  44. type entirely and always just use ARGBUF, but for future concerns and as
  45. a level of abstraction it is left in. */
  46. struct scache {
  47. struct argbuf argbuf;
  48. };
  49. #endif
  50. #endif /* OR1K_CPUALL_H */