machs.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /* RISC-V simulator.
  2. Copyright (C) 2005-2022 Free Software Foundation, Inc.
  3. Contributed by Mike Frysinger.
  4. This file is part of simulators.
  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 RISCV_SIM_MACHS_H
  16. #define RISCV_SIM_MACHS_H
  17. typedef enum model_type {
  18. #define M(ext) MODEL_RV32##ext,
  19. #include "model_list.def"
  20. #undef M
  21. #define M(ext) MODEL_RV64##ext,
  22. #include "model_list.def"
  23. #undef M
  24. #define M(ext) MODEL_RV128##ext,
  25. #include "model_list.def"
  26. #undef M
  27. MODEL_MAX
  28. } MODEL_TYPE;
  29. typedef enum mach_attr {
  30. MACH_BASE,
  31. MACH_RV32I,
  32. MACH_RV64I,
  33. MACH_RV128I,
  34. MACH_MAX
  35. } MACH_ATTR;
  36. #endif