PATCH: qemu sparc host cleanup
This patch is a consolodation of patches and ideas from BlueSwirl, Martin Bochnig and myself.
The patch is comprized of three parts:
1) to more accurately set the compile flags on sparc hosts, with an eye for sparc_v8plus and sparc_v8plusa, as well as sparc_v9, and leaving the option for non-ultrasparc hosts to compile qemu. Use of the ARCH_CFLAGS/ARCH_LDFLAGS at the top level guarantees that specific host information is dissemnated throughout the build environment
If no default target is selected, sparc_v8plus is used for 32-bit, and sparc_v9 is used for 64-bit (sparc64)
2) cleanup of the Makefile.target for Sparc 32/64 and Linux/Solaris hosts, reducing redundnancy of configuration parameters
3) enable sparc_v8plus and sparc_v8plusa to use the rtdc. Prior to this patch, sparc_v8plus and sparc_v8plusa targets were not able to use the rtdc, and this makes the guests correctly pull the host clock.
This patch supercedes a previous patch I posted for Makefile.target cleanup.
Comments?
Ben
Makefile +3 -4
@@ -8,10 +8,9 @@ BASE_CFLAGS= BASE_LDFLAGS= -BASE_CFLAGS += $(OS_CFLAGS) -ifeq ($(ARCH),sparc) -BASE_CFLAGS += -mcpu=ultrasparc -endif +BASE_CFLAGS += $(OS_CFLAGS) $(ARCH_CFLAGS) +BASE_LDFLAGS += $(OS_LDFLAGS) $(ARCH_LDFLAGS) + CPPFLAGS += -I. -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE LIBS= TOOLS=qemu-img$(EXESUF)
Makefile.target +27 -20
68 lines not on this page · raw message
configure +48 -2
98 lines not on this page · raw message
cpu-all.h +1 -1
@@ -1000,7 +1000,7 @@ return val; } -#elif defined(__sparc_v9__) +#elif defined(__sparc_v8plus__) || defined(__sparc_v8plusa__) || defined(__sparc_v9__)static inline int64_t cpu_get_real_ticks (void ) {