1 /* 2 * The per-CPU TranslationBlock jump cache. 3 * 4 * Copyright (c) 2003 Fabrice Bellard 5 * 6 * SPDX-License-Identifier: GPL-2.0-or-later 7 */ 8 9 #ifndef ACCEL_TCG_TB_JMP_CACHE_H 10 #define ACCEL_TCG_TB_JMP_CACHE_H 11 12 #define TB_JMP_CACHE_BITS 12 13 #define TB_JMP_CACHE_SIZE (1 << TB_JMP_CACHE_BITS) 14 15 /* 16 * Accessed in parallel; all accesses to 'tb' must be atomic. 17 */ 18 struct CPUJumpCache { 19 struct { 20 TranslationBlock *tb; 21 } array[TB_JMP_CACHE_SIZE]; 22 }; 23 24 #endif /* ACCEL_TCG_TB_JMP_CACHE_H */ 25