From 3d69b95e5e2ef4c5acfa2b2aaa93e2fad9eeeaa1 Mon Sep 17 00:00:00 2001 From: Emilio G. Cota Date: Tue, 22 May 2018 18:26:49 -0400 Subject: 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 Message-id: 1527028012-21888-3-git-send-email-cota@braap.org Signed-off-by: Stefan Hajnoczi --- trace/mem.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'trace/mem.h') 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); -- cgit v1.2.3-55-g7522