vcs_hook.h 744 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. // $Id: vcs_hook.h,v 1.1 2003/08/12 12:01:06 starvik Exp $
  2. //
  3. // Call simulator hook functions
  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