2
0

mem.h 869 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * Helper functions for guest memory tracing
  3. *
  4. * Copyright (C) 2016 Lluís Vilanova <vilanova@ac.upc.edu>
  5. *
  6. * This work is licensed under the terms of the GNU GPL, version 2 or later.
  7. * See the COPYING file in the top-level directory.
  8. */
  9. #ifndef TRACE__MEM_H
  10. #define TRACE__MEM_H
  11. #include "tcg/tcg.h"
  12. /**
  13. * trace_mem_get_info:
  14. *
  15. * Return a value for the 'info' argument in guest memory access traces.
  16. */
  17. static uint16_t trace_mem_get_info(MemOp op, unsigned int mmu_idx, bool store);
  18. /**
  19. * trace_mem_build_info:
  20. *
  21. * Return a value for the 'info' argument in guest memory access traces.
  22. */
  23. static uint16_t trace_mem_build_info(int size_shift, bool sign_extend,
  24. MemOp endianness, bool store,
  25. unsigned int mmuidx);
  26. #include "trace/mem-internal.h"
  27. #endif /* TRACE__MEM_H */