mirror of https://github.com/xqemu/xqemu.git
tcg: move tb_lock out of translate-all.h
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
a574cf9b41
commit
beeaef55e4
|
@ -25,7 +25,6 @@
|
||||||
#include "qemu/config-file.h"
|
#include "qemu/config-file.h"
|
||||||
#include "qemu/path.h"
|
#include "qemu/path.h"
|
||||||
#include "qemu/help_option.h"
|
#include "qemu/help_option.h"
|
||||||
/* For tb_lock */
|
|
||||||
#include "cpu.h"
|
#include "cpu.h"
|
||||||
#include "exec/exec-all.h"
|
#include "exec/exec-all.h"
|
||||||
#include "tcg.h"
|
#include "tcg.h"
|
||||||
|
|
|
@ -467,6 +467,10 @@ extern uintptr_t tci_tb_ptr;
|
||||||
smaller than 4 bytes, so we don't worry about special-casing this. */
|
smaller than 4 bytes, so we don't worry about special-casing this. */
|
||||||
#define GETPC_ADJ 2
|
#define GETPC_ADJ 2
|
||||||
|
|
||||||
|
void tb_lock(void);
|
||||||
|
void tb_unlock(void);
|
||||||
|
void tb_lock_reset(void);
|
||||||
|
|
||||||
#if !defined(CONFIG_USER_ONLY)
|
#if !defined(CONFIG_USER_ONLY)
|
||||||
|
|
||||||
struct MemoryRegion *iotlb_to_region(CPUState *cpu,
|
struct MemoryRegion *iotlb_to_region(CPUState *cpu,
|
||||||
|
|
|
@ -757,10 +757,6 @@ void *tcg_malloc_internal(TCGContext *s, int size);
|
||||||
void tcg_pool_reset(TCGContext *s);
|
void tcg_pool_reset(TCGContext *s);
|
||||||
TranslationBlock *tcg_tb_alloc(TCGContext *s);
|
TranslationBlock *tcg_tb_alloc(TCGContext *s);
|
||||||
|
|
||||||
void tb_lock(void);
|
|
||||||
void tb_unlock(void);
|
|
||||||
void tb_lock_reset(void);
|
|
||||||
|
|
||||||
/* Called with tb_lock held. */
|
/* Called with tb_lock held. */
|
||||||
static inline void *tcg_malloc(int size)
|
static inline void *tcg_malloc(int size)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue