vcs_hook.h 688 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. * Call simulator hook functions
  3. */
  4. #ifndef HOOK_H
  5. #define HOOK_H
  6. int hook_call(unsigned id, unsigned pcnt, ...);
  7. enum hook_ids {
  8. hook_debug_on = 1,
  9. hook_debug_off,
  10. hook_stop_sim_ok,
  11. hook_stop_sim_fail,
  12. hook_alloc_shared,
  13. hook_ptr_shared,
  14. hook_free_shared,
  15. hook_file2shared,
  16. hook_cmp_shared,
  17. hook_print_params,
  18. hook_sim_time,
  19. hook_stop_sim,
  20. hook_kick_dog,
  21. hook_dog_timeout,
  22. hook_rand,
  23. hook_srand,
  24. hook_rand_range,
  25. hook_print_str,
  26. hook_print_hex,
  27. hook_cmp_offset_shared,
  28. hook_fill_random_shared,
  29. hook_alloc_random_data,
  30. hook_calloc_random_data,
  31. hook_print_int,
  32. hook_print_uint,
  33. hook_fputc,
  34. hook_init_fd,
  35. hook_sbrk
  36. };
  37. #endif