inst_mode.h 532 B

1234567891011121314151617181920212223242526
  1. #ifndef INSTMODE_H
  2. #define INSTMODE_H
  3. #include "fixed_types.h"
  4. class InstMode
  5. {
  6. public:
  7. enum inst_mode_t {
  8. INVALID = 0, DETAILED, CACHE_ONLY, FAST_FORWARD
  9. };
  10. static inst_mode_t inst_mode_init, inst_mode_roi, inst_mode_end;
  11. static inst_mode_t fromString(const String str);
  12. private:
  13. static inst_mode_t inst_mode;
  14. static void updateInstrumentationMode();
  15. // Access through Sim()
  16. friend class Simulator;
  17. };
  18. extern const char * inst_mode_names[];
  19. #endif // INSTMODE_H