aboutsummaryrefslogtreecommitdiff
path: root/trace/mem.h
diff options
context:
space:
mode:
authorEmilio G. Cota <cota@braap.org>2018-05-22 18:26:49 -0400
committerStefan Hajnoczi <stefanha@redhat.com>2018-06-27 11:09:24 +0100
commit3d69b95e5e2ef4c5acfa2b2aaa93e2fad9eeeaa1 (patch)
treedd21bd0826c8e9fe2d6ced7bc282ec6d128f43e5 /trace/mem.h
parent32c072341f0d17ddc7443bd4c0adb9d2ed55fbd4 (diff)
trace: simplify trace_mem functions
Add some defines for the mem_info bits, simplify trace_mem_build_info, and also simplify trace_mem_get_info by making it a wrapper around trace_mem_build_info. This paves the way for increasing size_shift by one bit. Signed-off-by: Emilio G. Cota <cota@braap.org> Message-id: 1527028012-21888-3-git-send-email-cota@braap.org Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'trace/mem.h')
-rw-r--r--trace/mem.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/trace/mem.h b/trace/mem.h
index 9c88bcb4e6..2b58196e53 100644
--- a/trace/mem.h
+++ b/trace/mem.h
@@ -25,7 +25,7 @@ static uint8_t trace_mem_get_info(TCGMemOp op, bool store);
*
* Return a value for the 'info' argument in guest memory access traces.
*/
-static uint8_t trace_mem_build_info(TCGMemOp size, bool sign_extend,
+static uint8_t trace_mem_build_info(int size_shift, bool sign_extend,
TCGMemOp endianness, bool store);