hw/audio/es1370: remove unused dolog macro
[qemu/ar7.git] / accel / tcg / tb-jmp-cache.h
blobbb424c8a05b75c47e99ffe9bbe5c849725b6a549
1 /*
2 * The per-CPU TranslationBlock jump cache.
4 * Copyright (c) 2003 Fabrice Bellard
6 * SPDX-License-Identifier: GPL-2.0-or-later
7 */
9 #ifndef ACCEL_TCG_TB_JMP_CACHE_H
10 #define ACCEL_TCG_TB_JMP_CACHE_H
12 #define TB_JMP_CACHE_BITS 12
13 #define TB_JMP_CACHE_SIZE (1 << TB_JMP_CACHE_BITS)
16 * Accessed in parallel; all accesses to 'tb' must be atomic.
17 * For CF_PCREL, accesses to 'pc' must be protected by a
18 * load_acquire/store_release to 'tb'.
20 struct CPUJumpCache {
21 struct rcu_head rcu;
22 struct {
23 TranslationBlock *tb;
24 vaddr pc;
25 } array[TB_JMP_CACHE_SIZE];
28 #endif /* ACCEL_TCG_TB_JMP_CACHE_H */