sim-main.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /* Simulator for TI MSP430 and MSP430X processors.
  2. Copyright (C) 2012-2022 Free Software Foundation, Inc.
  3. Contributed by Red Hat, Inc.
  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 _MSP430_MAIN_SIM_H_
  16. #define _MSP430_MAIN_SIM_H_
  17. #include "sim-basics.h"
  18. #include "msp430-sim.h"
  19. #include "sim-base.h"
  20. struct _sim_cpu
  21. {
  22. /* Simulator specific members. */
  23. struct msp430_cpu_state state;
  24. sim_cpu_base base;
  25. };
  26. #define MSP430_CPU(sd) (STATE_CPU ((sd), 0))
  27. #define MSP430_CPU_STATE(sd) (MSP430_CPU ((sd)->state))
  28. #include "sim-config.h"
  29. #include "sim-types.h"
  30. #include "sim-engine.h"
  31. #include "sim-options.h"
  32. #endif /* _MSP430_MAIN_SIM_H_ */