2 * The per-CPU TranslationBlock jump cache.
4 * Copyright (c) 2003 Fabrice Bellard
6 * SPDX-License-Identifier: GPL-2.0-or-later
9 #ifndef ACCEL_TCG_TB_JMP_CACHE_H
10 #define ACCEL_TCG_TB_JMP_CACHE_H
13 #include "exec/cpu-common.h"
15 #define TB_JMP_CACHE_BITS 12
16 #define TB_JMP_CACHE_SIZE (1 << TB_JMP_CACHE_BITS)
19 * Invalidated in parallel; all accesses to 'tb' must be atomic.
20 * A valid entry is read/written by a single CPU, therefore there is
21 * no need for qatomic_rcu_read() and pc is always consistent with a
22 * non-NULL value of 'tb'. Strictly speaking pc is only needed for
23 * CF_PCREL, but it's used always for simplicity.
25 typedef struct CPUJumpCache
{
30 } array
[TB_JMP_CACHE_SIZE
];
33 #endif /* ACCEL_TCG_TB_JMP_CACHE_H */