arch.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /* Simulator 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_ARCH_H
  18. #define OR1K_ARCH_H
  19. #define TARGET_BIG_ENDIAN 1
  20. #define WI SI
  21. #define UWI USI
  22. #define AI USI
  23. #define IAI USI
  24. /* Enum declaration for model types. */
  25. typedef enum model_type {
  26. MODEL_OR1200, MODEL_OR1200ND, MODEL_MAX
  27. } MODEL_TYPE;
  28. #define MAX_MODELS ((int) MODEL_MAX)
  29. /* Enum declaration for unit types. */
  30. typedef enum unit_type {
  31. UNIT_NONE, UNIT_OR1200_U_EXEC, UNIT_OR1200ND_U_EXEC, UNIT_MAX
  32. } UNIT_TYPE;
  33. #define MAX_UNITS (1)
  34. #endif /* OR1K_ARCH_H */