@@ -16,7 +16,9 @@
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
+
#include "config.h"
+#define NEED_GLOBAL_ENV
#include "exec.h"
#include "disas.h"
#include "tcg.h"
@@ -353,4 +353,8 @@ extern int singlestep;
/* cpu-exec.c */
extern volatile sig_atomic_t exit_request;
+#ifdef NEED_GLOBAL_ENV
+register CPUState *env asm(AREG0);
+#endif
+
#endif
@@ -26,8 +26,6 @@
#define TARGET_LONG_BITS 64
-register struct CPUAlphaState *env asm(AREG0);
-
#define FP_STATUS (env->fp_status)
#include "cpu.h"
@@ -17,6 +17,7 @@
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
+#define NEED_GLOBAL_ENV
#include "exec.h"
#include "host-utils.h"
#include "softfloat.h"
@@ -19,8 +19,6 @@
#include "config.h"
#include "dyngen-exec.h"
-register struct CPUARMState *env asm(AREG0);
-
#define M0 env->iwmmxt.val
#include "cpu.h"
@@ -16,6 +16,7 @@
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
+#define NEED_GLOBAL_ENV
#include "exec.h"
#include "helpers.h"
@@ -19,8 +19,6 @@
*/
#include "dyngen-exec.h"
-register struct CPUCRISState *env asm(AREG0);
-
#include "cpu.h"
#include "exec-all.h"
@@ -18,6 +18,7 @@
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
+#define NEED_GLOBAL_ENV
#include "exec.h"
#include "mmu.h"
#include "helper.h"
@@ -28,8 +28,6 @@
#include "cpu-defs.h"
-register struct CPUX86State *env asm(AREG0);
-
#include "qemu-common.h"
#include "qemu-log.h"
@@ -17,6 +17,7 @@
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
+#define NEED_GLOBAL_ENV
#include "exec.h"
#include "exec-all.h"
#include "host-utils.h"
@@ -19,8 +19,6 @@
*/
#include "dyngen-exec.h"
-register struct CPUM68KState *env asm(AREG0);
-
#include "cpu.h"
#include "exec-all.h"
@@ -16,6 +16,8 @@
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
+
+#define NEED_GLOBAL_ENV
#include "exec.h"
#include "helpers.h"
@@ -18,8 +18,6 @@
*/
#include "dyngen-exec.h"
-register struct CPUMBState *env asm(AREG0);
-
#include "cpu.h"
#include "exec-all.h"
@@ -17,6 +17,7 @@
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
+#define NEED_GLOBAL_ENV
#include <assert.h>
#include "exec.h"
#include "helper.h"
@@ -8,8 +8,6 @@
#include "dyngen-exec.h"
#include "cpu-defs.h"
-register struct CPUMIPSState *env asm(AREG0);
-
#include "cpu.h"
#include "exec-all.h"
@@ -16,6 +16,8 @@
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
+
+#define NEED_GLOBAL_ENV
#include <stdlib.h>
#include "exec.h"
@@ -29,8 +29,6 @@
/* Precise emulation is needed to correctly emulate exception flags */
#define USE_PRECISE_EMULATION 1
-register struct CPUPPCState *env asm(AREG0);
-
#if !defined(CONFIG_USER_ONLY)
#include "softmmu_exec.h"
#endif /* !defined(CONFIG_USER_ONLY) */
@@ -16,6 +16,8 @@
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
+
+#define NEED_GLOBAL_ENV
#include <string.h>
#include "exec.h"
#include "host-utils.h"
@@ -19,8 +19,6 @@
#include "dyngen-exec.h"
-register struct CPUS390XState *env asm(AREG0);
-
#include "config.h"
#include "cpu.h"
#include "exec-all.h"
@@ -17,6 +17,7 @@
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
+#define NEED_GLOBAL_ENV
#include "exec.h"
/*****************************************************************************/
@@ -22,8 +22,6 @@
#include "config.h"
#include "dyngen-exec.h"
-register struct CPUSH4State *env asm(AREG0);
-
#include "cpu.h"
#include "exec-all.h"
@@ -18,6 +18,8 @@
*/
#include <assert.h>
#include <stdlib.h>
+
+#define NEED_GLOBAL_ENV
#include "exec.h"
#include "helper.h"
@@ -3,8 +3,6 @@
#include "config.h"
#include "dyngen-exec.h"
-register struct CPUSPARCState *env asm(AREG0);
-
#include "cpu.h"
#include "exec-all.h"
@@ -1,3 +1,4 @@
+#define NEED_GLOBAL_ENV
#include "exec.h"
#include "host-utils.h"
#include "helper.h"
--
1.7.0.1
#include <stdlib.h>
#include "exec.h"
@@ -29,8 +29,6 @@
/* Precise emulation is needed to correctly emulate exception flags */
#define USE_PRECISE_EMULATION 1
-register struct CPUPPCState *env asm(AREG0);
-
#if !defined(CONFIG_USER_ONLY)
#include "softmmu_exec.h"
#endif /* !defined(CONFIG_USER_ONLY) */
@@ -16,6 +16,8 @@
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
+
+#define NEED_GLOBAL_ENV
#include <string.h>
#include "exec.h"
#include "host-utils.h"
@@ -19,8 +19,6 @@
#include "dyngen-exec.h"
-register struct CPUS390XState *env asm(AREG0);
-
#include "config.h"
#include "cpu.h"
#include "exec-all.h"
@@ -17,6 +17,7 @@
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
+#define NEED_GLOBAL_ENV
#include "exec.h"
/*****************************************************************************/
@@ -22,8 +22,6 @@
#include "config.h"
#include "dyngen-exec.h"
-register struct CPUSH4State *env asm(AREG0);
-
#include "cpu.h"
#include "exec-all.h"
@@ -18,6 +18,8 @@
*/
#include <assert.h>
#include <stdlib.h>
+
+#define NEED_GLOBAL_ENV
#include "exec.h"
#include "helper.h"
@@ -3,8 +3,6 @@
#include "config.h"
#include "dyngen-exec.h"
-register struct CPUSPARCState *env asm(AREG0);
-
#include "cpu.h"
#include "exec-all.h"
@@ -1,3 +1,4 @@
+#define NEED_GLOBAL_ENV
#include "exec.h"
#include "host-utils.h"
#include "helper.h"
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> --- cpu-exec.c | 2 ++ exec-all.h | 4 ++++ target-alpha/exec.h | 2 -- target-alpha/op_helper.c | 1 + target-arm/exec.h | 2 -- target-arm/op_helper.c | 1 + target-cris/exec.h | 2 -- target-cris/op_helper.c | 1 + target-i386/exec.h | 2 -- target-i386/op_helper.c | 1 + target-m68k/exec.h | 2 -- target-m68k/op_helper.c | 2 ++ target-microblaze/exec.h | 2 -- target-microblaze/op_helper.c | 1 + target-mips/exec.h | 2 -- target-mips/op_helper.c | 2 ++ target-ppc/exec.h | 2 -- target-ppc/op_helper.c | 2 ++ target-s390x/exec.h | 2 -- target-s390x/op_helper.c | 1 + target-sh4/exec.h | 2 -- target-sh4/op_helper.c | 2 ++ target-sparc/exec.h | 2 -- target-sparc/op_helper.c | 1 + 24 files changed, 21 insertions(+), 22 deletions(-)