]> git.proxmox.com Git - mirror_qemu.git/commitdiff
cpu-defs: Move CPU_TEMP_BUF_NLONGS to tcg
authorPeter Crosthwaite <crosthwaitepeter@gmail.com>
Sun, 31 May 2015 06:11:34 +0000 (23:11 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 26 Jun 2015 14:00:50 +0000 (16:00 +0200)
The usages of this define are pure TCG and there is no architecture
specific variation of the value. Localise it to the TCG engine to
remove another architecture agnostic piece from cpu-defs.h.

This follows on from a28177820a868eafda8fab007561cc19f41941f4 where
temp_buf was moved out of the CPU_COMMON obsoleting the need for
the super early definition.

Reviewed-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Peter Crosthwaite <crosthwaite.peter@gmail.com>
Message-Id: <498e8e5325c1a1aff79e5bcfc28cb760ef6b214e.1433052532.git.crosthwaite.peter@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
include/exec/cpu-defs.h
tcg/tcg.h

index d5aecaf49ef19c80b8d047e6ddae73d1c16c11e1..817889bb049ad86eb6e2764e6cfc88537d90dd8a 100644 (file)
@@ -161,7 +161,6 @@ typedef struct CPUIOTLBEntry {
 #endif
 
 
-#define CPU_TEMP_BUF_NLONGS 128
 #define CPU_COMMON                                                      \
     /* soft mmu support */                                              \
     CPU_COMMON_TLB                                                      \
index 41e486959d23cf876e21502a37d875a8479af26b..231a781524cc897b56118ea119044c5d89484c56 100644 (file)
--- a/tcg/tcg.h
+++ b/tcg/tcg.h
@@ -29,6 +29,8 @@
 #include "qemu/bitops.h"
 #include "tcg-target.h"
 
+#define CPU_TEMP_BUF_NLONGS 128
+
 /* Default target word size to pointer size.  */
 #ifndef TCG_TARGET_REG_BITS
 # if UINTPTR_MAX == UINT32_MAX