Updated PATCH: qemu sparc host cleanup
An Update to the previous patch. Some of the variables and defines in Makefile.target were not removed as part of the new sparc host configuration.
Ben
Quoted 22 lines · ---- Ben Taylor
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_v8plusandsparc_v8plusa, as well assparc_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 environmentIf no default target is selected,
sparc_v8plusis used for 32-bit, andsparc_v9is 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_v8plusandsparc_v8plusato use the rtdc. Prior to this patch,sparc_v8plusandsparc_v8plusatargets were not able to use the rtdc, and this makes the guests correctly pull the host clock.
Quoted 5 lines
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 +24 -20
65 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 ) {