Index: Makefile.target =================================================================== RCS file: /sources/qemu/qemu/Makefile.target,v retrieving revision 1.124 diff -u -r1.124 Makefile.target --- Makefile.target 17 Aug 2006 17:41:26 -0000 1.124 +++ Makefile.target 20 Aug 2006 12:39:03 -0000 @@ -17,7 +17,7 @@ VPATH+=:$(SRC_PATH)/linux-user DEFINES+=-I$(SRC_PATH)/linux-user -I$(SRC_PATH)/linux-user/$(TARGET_ARCH) endif -CFLAGS=-Wall -O2 -g -fno-strict-aliasing +CFLAGS=-Wall -O0 -g -fno-strict-aliasing #CFLAGS+=-Werror LDFLAGS=-g LIBS= @@ -66,8 +66,10 @@ endif ifeq ($(ARCH),i386) -HELPER_CFLAGS:=$(CFLAGS) -fomit-frame-pointer -OP_CFLAGS:=$(CFLAGS) -mpreferred-stack-boundary=2 -fomit-frame-pointer +#HELPER_CFLAGS:=$(CFLAGS) -fomit-frame-pointer +#OP_CFLAGS:=$(CFLAGS) -mpreferred-stack-boundary=2 -fomit-frame-pointer +HELPER_CFLAGS:=$(CFLAGS) +OP_CFLAGS:=-Wall -O1 -g -mpreferred-stack-boundary=2 -fomit-frame-pointer ifeq ($(HAVE_GCC3_OPTIONS),yes) OP_CFLAGS+= -falign-functions=0 -fno-gcse else Index: target-i386/exec.h =================================================================== RCS file: /sources/qemu/qemu/target-i386/exec.h,v retrieving revision 1.30 diff -u -r1.30 exec.h --- target-i386/exec.h 10 Jul 2006 19:53:04 -0000 1.30 +++ target-i386/exec.h 20 Aug 2006 12:39:07 -0000 @@ -30,7 +30,8 @@ #include "cpu-defs.h" /* at least 4 register variables are defined */ -register struct CPUX86State *env asm(AREG0); +//register struct CPUX86State *env asm(AREG0); +struct CPUX86State *env; #if TARGET_LONG_BITS > HOST_LONG_BITS @@ -43,9 +44,14 @@ /* XXX: use unsigned long instead of target_ulong - better code will be generated for 64 bit CPUs */ +#if 0 register target_ulong T0 asm(AREG1); register target_ulong T1 asm(AREG2); register target_ulong T2 asm(AREG3); +#endif +target_ulong T0; +target_ulong T1; +target_ulong T2; /* if more registers are available, we define some registers too */ #ifdef AREG4 Index: target-i386/op.c =================================================================== RCS file: /sources/qemu/qemu/target-i386/op.c,v retrieving revision 1.45 diff -u -r1.45 op.c --- target-i386/op.c 10 Jul 2006 19:53:04 -0000 1.45 +++ target-i386/op.c 20 Aug 2006 12:39:09 -0000 @@ -17,8 +17,9 @@ * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ - +#if 0 #define ASM_SOFTMMU +#endif #include "exec.h" /* n must be a constant to be efficient */