]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
tcg: move tb_lock out of translate-all.h
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 3 Jul 2017 15:54:25 +0000 (17:54 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 4 Jul 2017 14:01:16 +0000 (16:01 +0200)
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
bsd-user/main.c
include/exec/exec-all.h
tcg/tcg.h

index 04f95ddd54c76b64d1e708afb6fc82a3a01414f4..fa9c012c9f968ff29809dd237c7a9f84250fb92c 100644 (file)
@@ -25,7 +25,6 @@
 #include "qemu/config-file.h"
 #include "qemu/path.h"
 #include "qemu/help_option.h"
-/* For tb_lock */
 #include "cpu.h"
 #include "exec/exec-all.h"
 #include "tcg.h"
index 724ec73dce4c119facedd02cf876ffc203dfa4bc..0b56432a3a0616bf9a21cad91b5608aedcf3a2ea 100644 (file)
@@ -467,6 +467,10 @@ extern uintptr_t tci_tb_ptr;
    smaller than 4 bytes, so we don't worry about special-casing this.  */
 #define GETPC_ADJ   2
 
+void tb_lock(void);
+void tb_unlock(void);
+void tb_lock_reset(void);
+
 #if !defined(CONFIG_USER_ONLY)
 
 struct MemoryRegion *iotlb_to_region(CPUState *cpu,
index 9e37722799a604a8b07e4430f2bc9d5dec49d9f2..da78721a0d187a2db947b261dc5b79337700f6c0 100644 (file)
--- a/tcg/tcg.h
+++ b/tcg/tcg.h
@@ -757,10 +757,6 @@ void *tcg_malloc_internal(TCGContext *s, int size);
 void tcg_pool_reset(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.  */
 static inline void *tcg_malloc(int size)
 {