Lluís Vilanova | dcdaadb | 2016-06-09 19:31:47 +0200 | [diff] [blame] | 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 | |
| 10 | #ifndef TRACE__MEM_H |
| 11 | #define TRACE__MEM_H |
| 12 | |
| 13 | #include "tcg/tcg.h" |
| 14 | |
| 15 | |
| 16 | /** |
| 17 | * trace_mem_get_info: |
| 18 | * |
| 19 | * Return a value for the 'info' argument in guest memory access traces. |
| 20 | */ |
| 21 | static uint8_t trace_mem_get_info(TCGMemOp op, bool store); |
| 22 | |
| 23 | /** |
| 24 | * trace_mem_build_info: |
| 25 | * |
| 26 | * Return a value for the 'info' argument in guest memory access traces. |
| 27 | */ |
Emilio G. Cota | 3d69b95 | 2018-05-22 18:26:49 -0400 | [diff] [blame] | 28 | static uint8_t trace_mem_build_info(int size_shift, bool sign_extend, |
Lluís Vilanova | dcdaadb | 2016-06-09 19:31:47 +0200 | [diff] [blame] | 29 | TCGMemOp endianness, bool store); |
| 30 | |
| 31 | |
| 32 | #include "trace/mem-internal.h" |
| 33 | |
Markus Armbruster | 175de52 | 2016-06-29 15:29:06 +0200 | [diff] [blame] | 34 | #endif /* TRACE__MEM_H */ |