mmu_perf_model.h 695 B

123456789101112131415161718192021222324252627282930313233
  1. #ifndef __MMU_PERF_MODEL_H__
  2. #define __MMU_PERF_MODEL_H__
  3. #include "mmu_perf_model_base.h"
  4. #include "log.h"
  5. class MMUPerfModel : public MMUPerfModelBase
  6. {
  7. private:
  8. public:
  9. MMUPerfModel () : MMUPerfModelBase() { }
  10. ~MMUPerfModel() { }
  11. UInt32 getLatency(MMUActions_t action)
  12. {
  13. switch(action)
  14. {
  15. case SEND_MESSAGE:
  16. return shmem_send_message_delay;
  17. case RECEIVE_MESSAGE:
  18. return shmem_receive_message_delay;
  19. default:
  20. LOG_ASSERT_ERROR(false, "Unsupported MMU Action Type: %u", action);
  21. return 0;
  22. }
  23. }
  24. };
  25. #endif /* __MMU_PERF_MODEL_H__ */