mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
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>
This commit is contained in:
parent
32c072341f
commit
3d69b95e5e
2 changed files with 19 additions and 23 deletions
|
@ -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);
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue