]>
git.ipfire.org Git - thirdparty/qemu.git/blob - accel/tcg/atomic_common.inc.c
2 * Common Atomic Helper Functions
4 * This file should be included before the various instantiations of
5 * the atomic_template.h helpers.
7 * Copyright (c) 2019 Linaro
8 * Written by Alex Bennée <alex.bennee@linaro.org>
10 * SPDX-License-Identifier: GPL-2.0-or-later
12 * This work is licensed under the terms of the GNU GPL, version 2 or later.
13 * See the COPYING file in the top-level directory.
17 void atomic_trace_rmw_pre(CPUArchState
*env
, target_ulong addr
, uint16_t info
)
19 CPUState
*cpu
= env_cpu(env
);
21 trace_guest_mem_before_exec(cpu
, addr
, info
);
22 trace_guest_mem_before_exec(cpu
, addr
, info
| TRACE_MEM_ST
);
26 atomic_trace_rmw_post(CPUArchState
*env
, target_ulong addr
, uint16_t info
)
31 void atomic_trace_ld_pre(CPUArchState
*env
, target_ulong addr
, uint16_t info
)
33 trace_guest_mem_before_exec(env_cpu(env
), addr
, info
);
37 void atomic_trace_ld_post(CPUArchState
*env
, target_ulong addr
, uint16_t info
)
42 void atomic_trace_st_pre(CPUArchState
*env
, target_ulong addr
, uint16_t info
)
44 trace_guest_mem_before_exec(env_cpu(env
), addr
, info
);
48 void atomic_trace_st_post(CPUArchState
*env
, target_ulong addr
, uint16_t info
)