re-factor and add fp16 using glibc soft-fp
cover re-factor and add fp16 using glibc soft-fp
As discussed on list, the structure and inline function solution that Alex and I have been writing from scratch introduces a sizeable performance regression. Alex and I have done some work earlier in the week that improved things some, but not enough.
Which leaves us with a bit of a problem. The were two existing code bases that we originally considered:
There's softfloat v3, which would need a large structural reorg in order to be able to handle multiple float_status contexts. But when Alex communicated with upstream they weren't ready to accept patches.
Or there's the code from glibc. I know Peter didn't like the idea; debugging this code is fairly painful -- the massive preprocessor macros mean that you can't step through anything. But at least we have a good relationship with glibc, so merging patches back and forth should be easy.
The result seems to perform slightly better than mainline. With an aarch64 guest and a i7-8550U host, nbench gives
- FLOATING-POINT INDEX: 3.095
+ FLOATING-POINT INDEX: 3.438
I've also run this through my usual set of aarch64 RISU tests.
Thoughts?
r~
Alex Bennée (9):
fpu/softfloat: implement float16_squash_input_denormal include/fpu/softfloat: remove USE_SOFTFLOAT_STRUCT_TYPES fpu/softfloat-types: new header to prevent excessive re-builds target/*/cpu.h: remove softfloat.h include/fpu/softfloat: implement float16_abs helper include/fpu/softfloat: implement float16_chs helper include/fpu/softfloat: implement float16_set_sign helper include/fpu/softfloat: add some float16 constants fpu/softfloat: improve comments on ARM NaN propagation
Richard Henderson (15):
fpu/soft-fp: Import soft-fp from glibc fpu/soft-fp: Adjust soft-fp types fpu/soft-fp: Add ties_away and to_odd rounding modes fpu/soft-fp: Add arithmetic macros to half.h fpu/soft-fp: Adjust _FP_CMP_CHECK_NAN
fpu: Implement add/sub/mul/div with soft-fp.h
fpu: Implement float_to_int/uint with soft-fp.h
fpu: Implement int/uint_to_float with soft-fp.h
fpu: Implement compares with soft-fp.h
fpu: Implement min/max with soft-fp.h
fpu: Implement sqrt with soft-fp.h
fpu: Implement scalbn with soft-fp.h
fpu: Implement float_to_float with soft-fp.h
fpu: Implement muladd with soft-fp.h
fpu: Implement round_to_int with soft-fp.h
Makefile.target | 5 + fpu/double.h | 321 +++ fpu/half.h | 180 ++ fpu/op-1.h | 369 +++ fpu/op-2.h | 705 ++++++ fpu/op-4.h | 875 +++++++ fpu/op-8.h | 1 + fpu/op-common.h | 2154 +++++++++++++++++ fpu/quad.h | 328 +++ fpu/sfp-machine.h | 222 ++ fpu/single.h | 197 ++ fpu/soft-fp-specialize.h | 254 ++ fpu/soft-fp.h | 379 +++ fpu/softfloat-specialize.h | 273 +-- include/fpu/softfloat-types.h | 179 ++ include/fpu/softfloat.h | 254 +- include/qemu/bswap.h | 2 +- target/alpha/cpu.h | 2 - target/arm/cpu.h | 2 - target/hppa/cpu.h | 1 - target/i386/cpu.h | 4 - target/m68k/cpu.h | 1 - target/microblaze/cpu.h | 2 +- target/moxie/cpu.h | 1 - target/nios2/cpu.h | 1 - target/openrisc/cpu.h | 1 - target/ppc/cpu.h | 1 - target/s390x/cpu.h | 2 - target/sh4/cpu.h | 2 - target/sparc/cpu.h | 2 - target/tricore/cpu.h | 1 - target/unicore32/cpu.h | 1 - target/xtensa/cpu.h | 1 - fpu/float128.c | 35 + fpu/float16.c | 43 + fpu/float32.c | 35 + fpu/float64.c | 35 + fpu/floatconv.c | 154 ++ fpu/floatxx.inc.c | 541 +++++ fpu/softfloat.c | 5092 +-------------------------------------- target/arm/cpu.c | 1 + target/arm/helper-a64.c | 1 + target/arm/helper.c | 1 + target/arm/neon_helper.c | 1 + target/hppa/cpu.c | 1 + target/hppa/op_helper.c | 1 + target/i386/fpu_helper.c | 1 + target/m68k/cpu.c | 2 +- target/m68k/fpu_helper.c | 1 + target/m68k/helper.c | 1 + target/m68k/translate.c | 2 + target/microblaze/cpu.c | 1 + target/microblaze/op_helper.c | 1 + target/openrisc/fpu_helper.c | 1 + target/ppc/fpu_helper.c | 1 + target/ppc/int_helper.c | 1 + target/ppc/translate_init.c | 1 + target/s390x/cpu.c | 1 + target/s390x/fpu_helper.c | 1 + target/sh4/cpu.c | 1 + target/sh4/op_helper.c | 1 + target/sparc/fop_helper.c | 1 + target/tricore/fpu_helper.c | 1 + target/tricore/helper.c | 1 + target/unicore32/cpu.c | 1 + target/unicore32/ucf64_helper.c | 1 + target/xtensa/op_helper.c | 1 + 67 files changed, 7184 insertions(+), 5503 deletions(-) create mode 100644 fpu/double.h create mode 100644 fpu/half.h create mode 100644 fpu/op-1.h create mode 100644 fpu/op-2.h create mode 100644 fpu/op-4.h create mode 100644 fpu/op-8.h create mode 100644 fpu/op-common.h create mode 100644 fpu/quad.h create mode 100644 fpu/sfp-machine.h create mode 100644 fpu/single.h create mode 100644 fpu/soft-fp-specialize.h create mode 100644 fpu/soft-fp.h create mode 100644 include/fpu/softfloat-types.h create mode 100644 fpu/float128.c create mode 100644 fpu/float16.c create mode 100644 fpu/float32.c create mode 100644 fpu/float64.c create mode 100644 fpu/floatconv.c create mode 100644 fpu/floatxx.inc.c
Signature · 1 line
2.14.3
PATCH 1/24 fpu/softfloat: implement float16_squash_input_denormal
From: Alex Bennée <[email protected]>
This will be required when expanding the MINMAX() macro for 16 bit/half-precision operations.
--- include/fpu/softfloat.h | 1 + fpu/softfloat.c | 15 +++++++++++++++ 2 files changed, 16 insertions(+)
include/fpu/softfloat.h +1 -0
@@ -277,6 +277,7 @@ void float_raise(uint8_t flags, float_status *status);| If `a' is denormal and we are in flush-to-zero mode then set the | input-denormal exception and return zero. Otherwise just return the value. *----------------------------------------------------------------------------*/ +float16 float16_squash_input_denormal (float16 a,float_status *status);float32 float32_squash_input_denormal (float32 a,float_status *status);float64 float64_squash_input_denormal (float64 a,float_status *status);
fpu/softfloat.c +15 -0
@@ -3488,6 +3488,21 @@ static float16 roundAndPackFloat16(flag zSign, int zExp,return packFloat16 (zSign, zExp, zSig >>13 ); } +/*---------------------------------------------------------------------------- +| If `a' is denormal and we are in flush-to-zero mode then set the +| input-denormal exception and return zero. Otherwise just return the value. +*----------------------------------------------------------------------------*/ +float16 float16_squash_input_denormal (float16 a,float_status *status) +{ +if (status->flush_inputs_to_zero) { +if (extractFloat16Exp (a) ==0 &&extractFloat16Frac (a) !=0 ) { +float_raise (float_flag_input_denormal, status); +return make_float16 (float16_val (a) &0x8000 ); + } + } +return a; +} +static void normalizeFloat16Subnormal (uint32_t aSig,int *zExpPtr,uint32_t *zSigPtr) {
Signature · 1 line
2.14.3
PATCH 2/24 include/fpu/softfloat: remove USE_SOFTFLOAT_STRUCT_TYPES
In reply to Richard HendersonFrom: Alex Bennée <[email protected]>
It's not actively built and when enabled things fail to compile. I'm not sure the type-checking is really helping here. Seeing as we "own" our softfloat now lets remove the cruft.
--- include/fpu/softfloat.h | 27 --------------------------- 1 file changed, 27 deletions(-)
include/fpu/softfloat.h +0 -27
@@ -103,32 +103,6 @@ enum {/*---------------------------------------------------------------------------- | Software IEC/IEEE floating-point types. *----------------------------------------------------------------------------*/ -/* Use structures for soft-float types. This prevents accidentally mixing -them with native int/float types. A sufficiently clever compiler and -sane ABI should be able to see though these structs. However -x86/gcc 3.x seems to struggle a bit, so leave them disabled by default. */ -//#define USE_SOFTFLOAT_STRUCT_TYPES -#ifdef USE_SOFTFLOAT_STRUCT_TYPES -typedef struct { -uint16_t v; -}float16 ; -#define float16_val (x) (((float16)(x)).v) -#define make_float16 (x) __extension__ ({ float16 f16_val = {x}; f16_val; }) -#define const_float16 (x) { x } -typedef struct { -uint32_t v; -}float32 ; -/* The cast ensures an error if the wrong type is passed. */ -#define float32_val (x) (((float32)(x)).v) -#define make_float32 (x) __extension__ ({ float32 f32_val = {x}; f32_val; }) -#define const_float32 (x) { x } -typedef struct { -uint64_t v; -}float64 ; -#define float64_val (x) (((float64)(x)).v) -#define make_float64 (x) __extension__ ({ float64 f64_val = {x}; f64_val; }) -#define const_float64 (x) { x } -#else typedef uint16_t float16 ;typedef uint32_t float32 ;typedef uint64_t float64 ;
@@ -141,7 +115,6 @@ typedef uint64_t float64;#define const_float16 (x) (x)#define const_float32 (x) (x)#define const_float64 (x) (x) -#endif typedef struct { uint64_t low; uint16_t high;
Signature · 1 line
2.14.3
PATCH 3/24 fpu/softfloat-types: new header to prevent excessive re-builds
In reply to Richard HendersonFrom: Alex Bennée <[email protected]>
The main culprit here is bswap.h which pulled in softfloat.h so it could use the types in its CPU_Float* and ldfl/stfql functions. As bswap.h is very widely included this added a compile dependency every time we touch softfloat.h. Move the typedefs for each float type into their own file so we don't re-build the world every time we tweak the main softfloat.h header.
---
v3
- new in v3
--- include/fpu/softfloat-types.h | 115 ++++++++++++++++++++++++++++++++++++++++++ include/fpu/softfloat.h | 31 +----------- include/qemu/bswap.h | 2 +- 3 files changed, 117 insertions(+), 31 deletions(-) create mode 100644 include/fpu/softfloat-types.h
include/fpu/softfloat-types.h new file +115 -0
@@ -0,0 +1,115 @@ +/* +* QEMU float support +* +* The code in this source file is derived from release 2a of the SoftFloat +* IEC/IEEE Floating-point Arithmetic Package. Those parts of the code (and +* some later contributions) are provided under that license, as detailed below. +* It has subsequently been modified by contributors to the QEMU Project, +* so some portions are provided under: +* the SoftFloat-2a license +* the BSD license +* GPL-v2-or-later +* +* This header holds definitions for code that might be dealing with +* softfloat types but not need access to the actual library functions. +*/ +/* +=============================================================================== +This C header file is part of the SoftFloat IEC/IEEE Floating-point +Arithmetic Package, Release 2a. + +Written by John R. Hauser. This work was made possible in part by the +International Computer Science Institute, located at Suite 600, 1947 Center +Street, Berkeley, California 94704. Funding was partially provided by the +National Science Foundation under grant MIP-9311980. The original version +of this code was written as part of a project to build a fixed-point vector +processor in collaboration with the University of California at Berkeley, +overseen by Profs. Nelson Morgan and John Wawrzynek. More information +is available through the Web page `http://HTTP.CS.Berkeley.EDU/~jhauser/ +arithmetic/SoftFloat.html'. + +THIS SOFTWARE IS DISTRIBUTED AS IS, FOR FREE. Although reasonable effort +has been made to avoid it, THIS SOFTWARE MAY CONTAIN FAULTS THAT WILL AT +TIMES RESULT IN INCORRECT BEHAVIOR. USE OF THIS SOFTWARE IS RESTRICTED TO +PERSONS AND ORGANIZATIONS WHO CAN AND WILL TAKE FULL RESPONSIBILITY FOR ANY +AND ALL LOSSES, COSTS, OR OTHER PROBLEMS ARISING FROM ITS USE. + +Derivative works are acceptable, even for commercial purposes, so long as +(1) they include prominent notice that the work is derivative, and (2) they +include prominent notice akin to these four paragraphs for those parts of +this code that are retained. + +=============================================================================== +*/ + +/* BSD licensing: +* Copyright (c) 2006, Fabrice Bellard +* All rights reserved. +* +* Redistribution and use in source and binary forms, with or without +* modification, are permitted provided that the following conditions are met: +* +* 1. Redistributions of source code must retain the above copyright notice, +* this list of conditions and the following disclaimer. +* +* 2. Redistributions in binary form must reproduce the above copyright notice, +* this list of conditions and the following disclaimer in the documentation +* and/or other materials provided with the distribution. +* +* 3. Neither the name of the copyright holder nor the names of its contributors +* may be used to endorse or promote products derived from this software without +* specific prior written permission. +* +* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF +* THE POSSIBILITY OF SUCH DAMAGE. +*/ + +/* Portions of this work are licensed under the terms of the GNU GPL, +* version 2 or later. See the COPYING file in the top-level directory. +*/ + +#ifndef SOFTFLOAT_TYPES_H +#define SOFTFLOAT_TYPES_H + +/* +* Software IEC/IEEE floating-point types. +*/ + +typedef uint16_t float16 ; +typedef uint32_t float32 ; +typedef uint64_t float64 ; +#define float16_val (x) (x) +#define float32_val (x) (x) +#define float64_val (x) (x) +#define make_float16 (x) (x) +#define make_float32 (x) (x) +#define make_float64 (x) (x) +#define const_float16 (x) (x) +#define const_float32 (x) (x) +#define const_float64 (x) (x) +typedef struct { +uint64_t low; +uint16_t high; +}floatx80 ; +#define make_floatx80 (exp, mant) ((floatx80) { mant, exp }) +#define make_floatx80_init (exp, mant) { .low = mant, .high = exp } +typedef struct { +#ifdef HOST_WORDS_BIGENDIAN +uint64_t high, low; +#else +uint64_t low, high; +#endif +}float128 ; +#define make_float128 (high_, low_) ((float128) { .high = high_, .low = low_ }) +#define make_float128_init (high_, low_) { .high = high_, .low = low_ } + +#endif /* SOFTFLOAT_TYPES_H */
include/fpu/softfloat.h +1 -30
@@ -100,36 +100,7 @@ enum { float_relation_unordered = 2 }; -/*---------------------------------------------------------------------------- -| Software IEC/IEEE floating-point types. -*----------------------------------------------------------------------------*/ -typedef uint16_t float16 ; -typedef uint32_t float32 ; -typedef uint64_t float64 ; -#define float16_val (x) (x) -#define float32_val (x) (x) -#define float64_val (x) (x) -#define make_float16 (x) (x) -#define make_float32 (x) (x) -#define make_float64 (x) (x) -#define const_float16 (x) (x) -#define const_float32 (x) (x) -#define const_float64 (x) (x) -typedef struct { -uint64_t low; -uint16_t high; -}floatx80 ; -#define make_floatx80 (exp, mant) ((floatx80) { mant, exp }) -#define make_floatx80_init (exp, mant) { .low = mant, .high = exp } -typedef struct { -#ifdef HOST_WORDS_BIGENDIAN -uint64_t high, low; -#else -uint64_t low, high; -#endif -}float128 ; -#define make_float128 (high_, low_) ((float128) { .high = high_, .low = low_ }) -#define make_float128_init (high_, low_) { .high = high_, .low = low_ } +#include "fpu/softfloat-types.h" /*---------------------------------------------------------------------------- | Software IEC/IEEE floating-point underflow tininess-detection mode.
include/qemu/bswap.h +1 -1
@@ -1,7 +1,7 @@#ifndef BSWAP_H #define BSWAP_H -#include "fpu/softfloat.h" +#include "fpu/softfloat-types.h" #ifdef CONFIG_MACHINE_BSWAP_H # include <sys/endian.h>
Signature · 1 line
2.14.3
PATCH 4/24 target/*/cpu.h: remove softfloat.h
In reply to Richard HendersonFrom: Alex Bennée <[email protected]>
As cpu.h is another typically widely included file which doesn't need full access to the softfloat API we can remove the includes from here as well. Where they do need types it's typically for float_status and the rounding modes so we move that to softfloat-types.h as well.
As a result of not having softfloat in every cpu.h call we now need to add it to various helpers that do need the full softfloat.h definitions.
--- include/fpu/softfloat-types.h | 64 +++++++++++++++++++++++++++++++++++++++++ include/fpu/softfloat.h | 53 ---------------------------------- target/alpha/cpu.h | 2 -- target/arm/cpu.h | 2 -- target/hppa/cpu.h | 1 - target/i386/cpu.h | 4 --- target/m68k/cpu.h | 1 - target/microblaze/cpu.h | 2 +- target/moxie/cpu.h | 1 - target/nios2/cpu.h | 1 - target/openrisc/cpu.h | 1 - target/ppc/cpu.h | 1 - target/s390x/cpu.h | 2 -- target/sh4/cpu.h | 2 -- target/sparc/cpu.h | 2 -- target/tricore/cpu.h | 1 - target/unicore32/cpu.h | 1 - target/xtensa/cpu.h | 1 - target/arm/cpu.c | 1 + target/arm/helper-a64.c | 1 + target/arm/helper.c | 1 + target/arm/neon_helper.c | 1 + target/hppa/cpu.c | 1 + target/hppa/op_helper.c | 1 + target/i386/fpu_helper.c | 1 + target/m68k/cpu.c | 2 +- target/m68k/fpu_helper.c | 1 + target/m68k/helper.c | 1 + target/m68k/translate.c | 2 ++ target/microblaze/cpu.c | 1 + target/microblaze/op_helper.c | 1 + target/openrisc/fpu_helper.c | 1 + target/ppc/fpu_helper.c | 1 + target/ppc/int_helper.c | 1 + target/ppc/translate_init.c | 1 + target/s390x/cpu.c | 1 + target/s390x/fpu_helper.c | 1 + target/sh4/cpu.c | 1 + target/sh4/op_helper.c | 1 + target/sparc/fop_helper.c | 1 + target/tricore/fpu_helper.c | 1 + target/tricore/helper.c | 1 + target/unicore32/cpu.c | 1 + target/unicore32/ucf64_helper.c | 1 + target/xtensa/op_helper.c | 1 + 45 files changed, 93 insertions(+), 78 deletions(-)
include/fpu/softfloat-types.h +64 -0
@@ -80,6 +80,12 @@ this code that are retained.#ifndef SOFTFLOAT_TYPES_H #define SOFTFLOAT_TYPES_H +/* This 'flag' type must be able to hold at least 0 and 1. It should +* probably be replaced with 'bool' but the uses would need to be audited +* to check that they weren't accidentally relying on it being a larger type. +*/ +typedef uint8_t flag ; +/* * Software IEC/IEEE floating-point types. */
@@ -112,4 +118,62 @@ typedef struct {#define make_float128 (high_, low_) ((float128) { .high = high_, .low = low_ })#define make_float128_init (high_, low_) { .high = high_, .low = low_ } +/* +* Software IEC/IEEE floating-point underflow tininess-detection mode. +*/ + +enum { + float_tininess_after_rounding =0 , + float_tininess_before_rounding =1 +}; + +/* +*Software IEC/IEEE floating-point rounding mode. +*/ + +enum { + float_round_nearest_even =0 , + float_round_down =1 , + float_round_up =2 , + float_round_to_zero =3 , + float_round_ties_away =4 , +/* Not an IEEE rounding mode: round to the closest odd mantissa value */ + float_round_to_odd =5 , +}; + +/* +* Software IEC/IEEE floating-point exception flags. +*/ + +enum { + float_flag_invalid =1 , + float_flag_divbyzero =4 , + float_flag_overflow =8 , + float_flag_underflow =16 , + float_flag_inexact =32 , + float_flag_input_denormal =64 , + float_flag_output_denormal =128 +}; + + +/* +* Floating Point Status. Individual architectures may maintain +* several versions of float_status for different functions. The +* correct status for the operation is then passed by reference to +* most of the softfloat functions. +*/ + +typedef struct float_status { +signed char float_detect_tininess; +signed char float_rounding_mode; +uint8_t float_exception_flags; +signed char floatx80_rounding_precision; +/* should denormalised results go to zero and set the inexact flag? */ +flag flush_to_zero; +/* should denormalised inputs go to zero and set the input_denormal flag? */ +flag flush_inputs_to_zero; +flag default_nan_mode; +flag snan_bit_is_one; +}float_status ; +#endif /* SOFTFLOAT_TYPES_H */
include/fpu/softfloat.h +0 -53
65 lines not on this page · raw message
target/alpha/cpu.h +0 -2
@@ -33,8 +33,6 @@#include "exec/cpu-defs.h" -#include "fpu/softfloat.h" -#define ICACHE_LINE_SIZE 32#define DCACHE_LINE_SIZE 32
target/arm/cpu.h +0 -2
@@ -39,8 +39,6 @@#include "cpu-qom.h" #include "exec/cpu-defs.h" -#include "fpu/softfloat.h" -#define EXCP_UDEF 1/* undefined instruction */ #define EXCP_SWI 2/* software interrupt */ #define EXCP_PREFETCH_ABORT 3
target/hppa/cpu.h +0 -1
@@ -51,7 +51,6 @@#define CPUArchState struct CPUHPPAState#include "exec/cpu-defs.h" -#include "fpu/softfloat.h" #define TARGET_PAGE_BITS 12
target/i386/cpu.h +0 -4
@@ -52,10 +52,6 @@#define CPUArchState struct CPUX86State -#ifdef CONFIG_TCG -#include "fpu/softfloat.h" -#endif -enum {R_EAX =0 ,R_ECX =1 ,
target/m68k/cpu.h +0 -1
@@ -28,7 +28,6 @@#include "qemu-common.h" #include "exec/cpu-defs.h" #include "cpu-qom.h" -#include "fpu/softfloat.h" #define OS_BYTE 0#define OS_WORD 1
target/microblaze/cpu.h +1 -1
@@ -28,7 +28,7 @@#define CPUArchState struct CPUMBState#include "exec/cpu-defs.h" -#include "fpu/softfloat.h" +#include "fpu/softfloat-types.h" struct CPUMBState ;typedef struct CPUMBState CPUMBState ;#if !defined(CONFIG_USER_ONLY )
target/moxie/cpu.h +0 -1
@@ -34,7 +34,6 @@#define MOXIE_EX_BREAK 16#include "exec/cpu-defs.h" -#include "fpu/softfloat.h" #define TARGET_PAGE_BITS 12/* 4k */
target/nios2/cpu.h +0 -1
@@ -27,7 +27,6 @@#define CPUArchState struct CPUNios2State#include "exec/cpu-defs.h" -#include "fpu/softfloat.h" #include "qom/cpu.h" struct CPUNios2State ;typedef struct CPUNios2State CPUNios2State ;
target/openrisc/cpu.h +0 -1
@@ -29,7 +29,6 @@ struct OpenRISCCPU;#include "qemu-common.h" #include "exec/cpu-defs.h" -#include "fpu/softfloat.h" #include "qom/cpu.h" #define TYPE_OPENRISC_CPU "or1k-cpu"
target/ppc/cpu.h +0 -1
@@ -79,7 +79,6 @@#include "exec/cpu-defs.h" #include "cpu-qom.h" -#include "fpu/softfloat.h" #if defined (TARGET_PPC64 )#define PPC_ELF_MACHINE EM_PPC64
target/s390x/cpu.h +0 -2
@@ -41,8 +41,6 @@#include "exec/cpu-all.h" -#include "fpu/softfloat.h" -#define NB_MMU_MODES 4#define TARGET_INSN_START_EXTRA_WORDS 1
target/sh4/cpu.h +0 -2
@@ -40,8 +40,6 @@#include "exec/cpu-defs.h" -#include "fpu/softfloat.h" -#define TARGET_PAGE_BITS 12/* 4k XXXXX */ #define TARGET_PHYS_ADDR_SPACE_BITS 32
target/sparc/cpu.h +0 -2
@@ -29,8 +29,6 @@#include "exec/cpu-defs.h" -#include "fpu/softfloat.h" -/*#define EXCP_INTERRUPT 0x100*/ /* trap definitions */
target/tricore/cpu.h +0 -1
@@ -24,7 +24,6 @@#include "qemu-common.h" #include "cpu-qom.h" #include "exec/cpu-defs.h" -#include "fpu/softfloat.h" #define CPUArchState struct CPUTriCoreState
target/unicore32/cpu.h +0 -1
@@ -23,7 +23,6 @@#include "qemu-common.h" #include "cpu-qom.h" #include "exec/cpu-defs.h" -#include "fpu/softfloat.h" #define NB_MMU_MODES 2
target/xtensa/cpu.h +0 -1
@@ -36,7 +36,6 @@#include "qemu-common.h" #include "cpu-qom.h" #include "exec/cpu-defs.h" -#include "fpu/softfloat.h" #include "xtensa-isa.h" #define NB_MMU_MODES 4
target/arm/cpu.c +1 -0
@@ -34,6 +34,7 @@#include "sysemu/hw_accel.h" #include "kvm_arm.h" #include "disas/capstone.h" +#include "fpu/softfloat.h" static void arm_cpu_set_pc (CPUState *cs,vaddr value) {
target/arm/helper-a64.c +1 -0
@@ -31,6 +31,7 @@#include "exec/cpu_ldst.h" #include "qemu/int128.h" #include "tcg.h" +#include "fpu/softfloat.h" #include <zlib.h> /* For crc32 */ /* C2.4.7 Multiply and divide */
target/arm/helper.c +1 -0
@@ -15,6 +15,7 @@#include <zlib.h> /* For crc32 */ #include "exec/semihost.h" #include "sysemu/kvm.h" +#include "fpu/softfloat.h" #define ARM_CPU_FREQ 1000000000/* FIXME: 1 GHz, should be configurable */
target/arm/neon_helper.c +1 -0
@@ -11,6 +11,7 @@#include "cpu.h" #include "exec/exec-all.h" #include "exec/helper-proto.h" +#include "fpu/softfloat.h" #define SIGNBIT (uint32_t)0x80000000#define SIGNBIT64 ((uint64_t)1 << 63)
target/hppa/cpu.c +1 -0
@@ -23,6 +23,7 @@#include "cpu.h" #include "qemu-common.h" #include "exec/exec-all.h" +#include "fpu/softfloat.h" static void hppa_cpu_set_pc (CPUState *cs,vaddr value)
target/hppa/op_helper.c +1 -0
@@ -24,6 +24,7 @@#include "exec/cpu_ldst.h" #include "sysemu/sysemu.h" #include "qemu/timer.h" +#include "fpu/softfloat.h" void QEMU_NORETURN HELPER(excp)(CPUHPPAState *env, int excp)
target/i386/fpu_helper.c +1 -0
@@ -24,6 +24,7 @@#include "qemu/host-utils.h" #include "exec/exec-all.h" #include "exec/cpu_ldst.h" +#include "fpu/softfloat.h" #define FPU_RC_MASK 0xc00#define FPU_RC_NEAR 0x000
target/m68k/cpu.c +1 -1
@@ -24,7 +24,7 @@#include "qemu-common.h" #include "migration/vmstate.h" #include "exec/exec-all.h" - +#include "fpu/softfloat.h" static void m68k_cpu_set_pc (CPUState *cs,vaddr value) {
target/m68k/fpu_helper.c +1 -0
@@ -23,6 +23,7 @@#include "exec/helper-proto.h" #include "exec/exec-all.h" #include "exec/cpu_ldst.h" +#include "fpu/softfloat.h" /* Undefined offsets may be different on various FPU. * On 68040 they return 0.0 (floatx80_zero)
target/m68k/helper.c +1 -0
@@ -24,6 +24,7 @@#include "exec/gdbstub.h" #include "exec/helper-proto.h" +#include "fpu/softfloat.h" #define SIGNBIT (1u << 31)
target/m68k/translate.c +2 -0
@@ -32,6 +32,8 @@#include "trace-tcg.h" #include "exec/log.h" +#include "fpu/softfloat.h" +//#define DEBUG_DISPATCH 1
target/microblaze/cpu.c +1 -0
@@ -28,6 +28,7 @@#include "hw/qdev-properties.h" #include "migration/vmstate.h" #include "exec/exec-all.h" +#include "fpu/softfloat.h" static const struct { const char *name;
target/microblaze/op_helper.c +1 -0
@@ -24,6 +24,7 @@#include "qemu/host-utils.h" #include "exec/exec-all.h" #include "exec/cpu_ldst.h" +#include "fpu/softfloat.h" #define D (x)
target/openrisc/fpu_helper.c +1 -0
@@ -22,6 +22,7 @@#include "cpu.h" #include "exec/helper-proto.h" #include "exception.h" +#include "fpu/softfloat.h" static inline uint32_t ieee_ex_to_openrisc (OpenRISCCPU *cpu,int fexcp) {
target/ppc/fpu_helper.c +1 -0
@@ -21,6 +21,7 @@#include "exec/helper-proto.h" #include "exec/exec-all.h" #include "internal.h" +#include "fpu/softfloat.h" static inline float128 float128_snan_to_qnan (float128 x) {
target/ppc/int_helper.c +1 -0
@@ -23,6 +23,7 @@#include "qemu/host-utils.h" #include "exec/helper-proto.h" #include "crypto/aes.h" +#include "fpu/softfloat.h" #include "helper_regs.h" /*****************************************************************************/
target/ppc/translate_init.c +1 -0
@@ -36,6 +36,7 @@#include "sysemu/qtest.h" #include "qemu/cutils.h" #include "disas/capstone.h" +#include "fpu/softfloat.h" //#define PPC_DUMP_CPU //#define PPC_DEBUG_SPR
target/s390x/cpu.c +1 -0
@@ -42,6 +42,7 @@#include "sysemu/arch_init.h" #include "sysemu/sysemu.h" #endif +#include "fpu/softfloat.h" #define CR0_RESET 0xE0UL#define CR14_RESET 0xC2000000UL;
target/s390x/fpu_helper.c +1 -0
@@ -24,6 +24,7 @@#include "exec/exec-all.h" #include "exec/cpu_ldst.h" #include "exec/helper-proto.h" +#include "fpu/softfloat.h" /* #define DEBUG_HELPER */ #ifdef DEBUG_HELPER
target/sh4/cpu.c +1 -0
@@ -25,6 +25,7 @@#include "qemu-common.h" #include "migration/vmstate.h" #include "exec/exec-all.h" +#include "fpu/softfloat.h" static void superh_cpu_set_pc (CPUState *cs,vaddr value)
target/sh4/op_helper.c +1 -0
@@ -21,6 +21,7 @@#include "exec/helper-proto.h" #include "exec/exec-all.h" #include "exec/cpu_ldst.h" +#include "fpu/softfloat.h" #ifndef CONFIG_USER_ONLY
target/sparc/fop_helper.c +1 -0
@@ -21,6 +21,7 @@#include "cpu.h" #include "exec/exec-all.h" #include "exec/helper-proto.h" +#include "fpu/softfloat.h" #define QT0 (env->qt0)#define QT1 (env->qt1)
target/tricore/fpu_helper.c +1 -0
@@ -20,6 +20,7 @@#include "qemu/osdep.h" #include "cpu.h" #include "exec/helper-proto.h" +#include "fpu/softfloat.h" #define QUIET_NAN 0x7fc00000#define ADD_NAN 0x7fc00001
target/tricore/helper.c +1 -0
@@ -19,6 +19,7 @@#include "cpu.h" #include "exec/exec-all.h" +#include "fpu/softfloat.h" enum {TLBRET_DIRTY =-4 ,
target/unicore32/cpu.c +1 -0
@@ -18,6 +18,7 @@#include "qemu-common.h" #include "migration/vmstate.h" #include "exec/exec-all.h" +#include "fpu/softfloat.h" static void uc32_cpu_set_pc (CPUState *cs,vaddr value) {
target/unicore32/ucf64_helper.c +1 -0
@@ -11,6 +11,7 @@#include "qemu/osdep.h" #include "cpu.h" #include "exec/helper-proto.h" +#include "fpu/softfloat.h" /* * The convention used for UniCore-F64 instructions:
target/xtensa/op_helper.c +1 -0
@@ -34,6 +34,7 @@#include "exec/cpu_ldst.h" #include "exec/address-spaces.h" #include "qemu/timer.h" +#include "fpu/softfloat.h" void xtensa_cpu_do_unaligned_access(CPUState *cs, vaddr addr, MMUAccessType access_type,
Signature · 1 line
2.14.3
PATCH 5/24 include/fpu/softfloat: implement float16_abs helper
In reply to Richard HendersonFrom: Alex Bennée <[email protected]>
This will be required when expanding the MINMAX() macro for 16 bit/half-precision operations.
--- include/fpu/softfloat.h | 7 +++++++ 1 file changed, 7 insertions(+)
include/fpu/softfloat.h +7 -0
@@ -265,6 +265,13 @@ static inline int float16_is_zero_or_denormal(float16 a)return (float16_val (a) &0x7c00 ) ==0 ; } +static inline float16 float16_abs (float16 a) +{ +/* Note that abs does *not* handle NaN specially, nor does +* it flush denormal inputs to zero. +*/ +return make_float16 (float16_val (a) &0x7fff ); +}/*---------------------------------------------------------------------------- | The pattern for a default generated half-precision NaN. *----------------------------------------------------------------------------*/
Signature · 1 line
2.14.3
PATCH 6/24 include/fpu/softfloat: implement float16_chs helper
In reply to Richard HendersonFrom: Alex Bennée <[email protected]>
--- include/fpu/softfloat.h | 9 +++++++++ 1 file changed, 9 insertions(+)
include/fpu/softfloat.h +9 -0
@@ -272,6 +272,15 @@ static inline float16 float16_abs(float16 a)*/ return make_float16 (float16_val (a) &0x7fff ); } + +static inline float16 float16_chs (float16 a) +{ +/* Note that chs does *not* handle NaN specially, nor does +* it flush denormal inputs to zero. +*/ +return make_float16 (float16_val (a) ^0x8000 ); +} +/*---------------------------------------------------------------------------- | The pattern for a default generated half-precision NaN. *----------------------------------------------------------------------------*/
Signature · 1 line
2.14.3
PATCH 7/24 include/fpu/softfloat: implement float16_set_sign helper
In reply to Richard HendersonFrom: Alex Bennée <[email protected]>
--- include/fpu/softfloat.h | 5 +++++ 1 file changed, 5 insertions(+)
include/fpu/softfloat.h +5 -0
@@ -281,6 +281,11 @@ static inline float16 float16_chs(float16 a)return make_float16 (float16_val (a) ^0x8000 ); } +static inline float16 float16_set_sign (float16 a,int sign) +{ +return make_float16 ((float16_val (a) &0x7fff ) | (sign <<15 )); +} +/*---------------------------------------------------------------------------- | The pattern for a default generated half-precision NaN. *----------------------------------------------------------------------------*/
Signature · 1 line
2.14.3
PATCH 8/24 include/fpu/softfloat: add some float16 constants
In reply to Richard HendersonFrom: Alex Bennée <[email protected]>
This defines the same set of common constants for float 16 as defined for 32 and 64 bit floats. These are often used by target helper functions. I've also removed constants that are not used by anybody.
---
v2
- fixup constants, remove unused onces
--- include/fpu/softfloat.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)
include/fpu/softfloat.h +5 -3
@@ -286,6 +286,11 @@ static inline float16 float16_set_sign(float16 a, int sign)return make_float16 ((float16_val (a) &0x7fff ) | (sign <<15 )); } +#define float16_zero make_float16(0) +#define float16_one make_float16(0x3c00) +#define float16_half make_float16(0x3800) +#define float16_infinity make_float16(0x7c00) +/*---------------------------------------------------------------------------- | The pattern for a default generated half-precision NaN. *----------------------------------------------------------------------------*/
@@ -392,8 +397,6 @@ static inline float32 float32_set_sign(float32 a, int sign)#define float32_zero make_float32(0)#define float32_one make_float32(0x3f800000) -#define float32_ln2 make_float32(0x3f317218) -#define float32_pi make_float32(0x40490fdb)#define float32_half make_float32(0x3f000000)#define float32_infinity make_float32(0x7f800000)
@@ -506,7 +509,6 @@ static inline float64 float64_set_sign(float64 a, int sign)#define float64_zero make_float64(0)#define float64_one make_float64(0x3ff0000000000000LL)#define float64_ln2 make_float64(0x3fe62e42fefa39efLL) -#define float64_pi make_float64(0x400921fb54442d18LL)#define float64_half make_float64(0x3fe0000000000000LL)#define float64_infinity make_float64(0x7ff0000000000000LL)
Signature · 1 line
2.14.3
PATCH 9/24 fpu/softfloat: improve comments on ARM NaN propagation
In reply to Richard HendersonFrom: Alex Bennée <[email protected]>
Mention the pseudo-code fragment from which this is based.
--- fpu/softfloat-specialize.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
fpu/softfloat-specialize.h +3 -2
@@ -445,9 +445,10 @@ static float32 commonNaNToFloat32(commonNaNT a, float_status *status)#if defined(TARGET_ARM )static int pickNaN (flag aIsQNaN,flag aIsSNaN,flag bIsQNaN,flag bIsSNaN, -flag aIsLargerSignificand) +flag aIsLargerSignificand) { -/* ARM mandated NaN propagation rules: take the first of: +/* ARM mandated NaN propagation rules (see FPProcessNaNs()), take +* the first of: * 1. A if it is signaling * 2. B if it is signaling * 3. A (quiet)
Signature · 1 line
2.14.3
PATCH 10/24 fpu/soft-fp: Import soft-fp from glibc
In reply to Richard HendersonThis has support for 16, 32, 64, and 128-bit floats. Upstream has some support for floatx80, but it is specific to Intel and has not been updated for Motorola differences.
--- fpu/double.h | 323 +++++++++ fpu/half.h | 170 +++++ fpu/op-1.h | 369 ++++++++++ fpu/op-2.h | 705 ++++++++++++++++++ fpu/op-4.h | 875 +++++++++++++++++++++++ fpu/op-8.h | 1 + fpu/op-common.h | 2134 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ fpu/quad.h | 330 +++++++++ fpu/single.h | 199 ++++++ fpu/soft-fp.h | 354 +++++++++ 10 files changed, 5460 insertions(+) create mode 100644 fpu/double.h create mode 100644 fpu/half.h create mode 100644 fpu/op-1.h create mode 100644 fpu/op-2.h create mode 100644 fpu/op-4.h create mode 100644 fpu/op-8.h create mode 100644 fpu/op-common.h create mode 100644 fpu/quad.h create mode 100644 fpu/single.h create mode 100644 fpu/soft-fp.h
fpu/double.h new file +323 -0
@@ -0,0 +1,323 @@ +/* Software floating-point emulation. +Definitions for IEEE Double Precision +Copyright (C) 1997-2018 Free Software Foundation, Inc. +This file is part of the GNU C Library. +Contributed by Richard Henderson ([email protected]), +Jakub Jelinek ([email protected]), +David S. Miller ([email protected]) and +Peter Maydell ([email protected]). + +The GNU C Library is free software; you can redistribute it and/or +modify it under the terms of the GNU Lesser General Public +License as published by the Free Software Foundation; either +version 2.1 of the License, or (at your option) any later version. + +In addition to the permissions in the GNU Lesser General Public +License, the Free Software Foundation gives you unlimited +permission to link the compiled version of this file into +combinations with other programs, and to distribute those +combinations without any restriction coming from the use of this +file. (The Lesser General Public License restrictions do apply in +other respects; for example, they cover modification of the file, +and distribution when not linked into a combine executable.) + +The GNU C Library is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +Lesser General Public License for more details. + +You should have received a copy of the GNU Lesser General Public +License along with the GNU C Library; if not, see +<http://www.gnu.org/licenses/>. */ + +#ifndef SOFT_FP_DOUBLE_H +#define SOFT_FP_DOUBLE_H 1 + +#if _FP_W_TYPE_SIZE <32 +# error "Here's a nickel kid. Go buy yourself a real computer." +#endif + +#if _FP_W_TYPE_SIZE <64 +# define _FP_FRACTBITS_D (2 * _FP_W_TYPE_SIZE) +# define _FP_FRACTBITS_DW_D (4 * _FP_W_TYPE_SIZE) +#else +# define _FP_FRACTBITS_D _FP_W_TYPE_SIZE +# define _FP_FRACTBITS_DW_D (2 * _FP_W_TYPE_SIZE) +#endif + +#define _FP_FRACBITS_D 53 +#define _FP_FRACXBITS_D (_FP_FRACTBITS_D - _FP_FRACBITS_D) +#define _FP_WFRACBITS_D (_FP_WORKBITS + _FP_FRACBITS_D) +#define _FP_WFRACXBITS_D (_FP_FRACTBITS_D - _FP_WFRACBITS_D) +#define _FP_EXPBITS_D 11 +#define _FP_EXPBIAS_D 1023 +#define _FP_EXPMAX_D 2047 + +#define _FP_QNANBIT_D \ + ((_FP_W_TYPE) 1 << (_FP_FRACBITS_D-2) % _FP_W_TYPE_SIZE) +#define _FP_QNANBIT_SH_D \ + ((_FP_W_TYPE) 1 << (_FP_FRACBITS_D-2+_FP_WORKBITS) % _FP_W_TYPE_SIZE) +#define _FP_IMPLBIT_D \ + ((_FP_W_TYPE) 1 << (_FP_FRACBITS_D-1) % _FP_W_TYPE_SIZE) +#define _FP_IMPLBIT_SH_D \ + ((_FP_W_TYPE) 1 << (_FP_FRACBITS_D-1+_FP_WORKBITS) % _FP_W_TYPE_SIZE) +#define _FP_OVERFLOW_D \ + ((_FP_W_TYPE) 1 << _FP_WFRACBITS_D % _FP_W_TYPE_SIZE) + +#define _FP_WFRACBITS_DW_D (2 * _FP_WFRACBITS_D) +#define _FP_WFRACXBITS_DW_D (_FP_FRACTBITS_DW_D - _FP_WFRACBITS_DW_D) +#define _FP_HIGHBIT_DW_D \ + ((_FP_W_TYPE) 1 << (_FP_WFRACBITS_DW_D - 1) % _FP_W_TYPE_SIZE) + +typedef float DFtype __attribute__ ((mode (DF ))); + +#if _FP_W_TYPE_SIZE <64 + +union _FP_UNION_D +{ +DFtype flt; +struct _FP_STRUCT_LAYOUT + { +# if __BYTE_ORDER == __BIG_ENDIAN +unsigned sign :1 ; +unsigned exp : _FP_EXPBITS_D; +unsigned frac1 : _FP_FRACBITS_D - (_FP_IMPLBIT_D !=0 ) - _FP_W_TYPE_SIZE; +unsigned frac0 : _FP_W_TYPE_SIZE; +# else +unsigned frac0 : _FP_W_TYPE_SIZE; +unsigned frac1 : _FP_FRACBITS_D - (_FP_IMPLBIT_D !=0 ) - _FP_W_TYPE_SIZE; +unsigned exp : _FP_EXPBITS_D; +unsigned sign :1 ; +# endif + } bits __attribute__ ((packed)); +}; + +# define FP_DECL_D (X ) _FP_DECL (2, X) +# define FP_UNPACK_RAW_D (X , val) _FP_UNPACK_RAW_2 (D, X, (val)) +# define FP_UNPACK_RAW_DP (X , val) _FP_UNPACK_RAW_2_P (D, X, (val)) +# define FP_PACK_RAW_D (val,X ) _FP_PACK_RAW_2 (D, (val), X) +# define FP_PACK_RAW_DP (val,X ) \ + do \ + { \ + if (!FP_INHIBIT_RESULTS) \ + _FP_PACK_RAW_2_P (D, (val), X); \ + } \ + while (0) + +# define FP_UNPACK_D (X , val) \ + do \ + { \ + _FP_UNPACK_RAW_2 (D, X, (val)); \ + _FP_UNPACK_CANONICAL (D, 2, X); \ + } \ + while (0) + +# define FP_UNPACK_DP (X , val) \ + do \ + { \ + _FP_UNPACK_RAW_2_P (D, X, (val)); \ + _FP_UNPACK_CANONICAL (D, 2, X); \ + } \ + while (0) + +# define FP_UNPACK_SEMIRAW_D (X , val) \ + do \ + { \ + _FP_UNPACK_RAW_2 (D, X, (val)); \ + _FP_UNPACK_SEMIRAW (D, 2, X); \ + } \ + while (0) + +# define FP_UNPACK_SEMIRAW_DP (X , val) \ + do \ + { \ + _FP_UNPACK_RAW_2_P (D, X, (val)); \ + _FP_UNPACK_SEMIRAW (D, 2, X); \ + } \ + while (0) + +# define FP_PACK_D (val,X ) \ + do \ + { \ + _FP_PACK_CANONICAL (D, 2, X); \ + _FP_PACK_RAW_2 (D, (val), X); \ + } \ + while (0) + +# define FP_PACK_DP (val,X ) \ + do \ + { \ + _FP_PACK_CANONICAL (D, 2, X); \ + if (!FP_INHIBIT_RESULTS) \ + _FP_PACK_RAW_2_P (D, (val), X); \ + } \ + while (0) + +# define FP_PACK_SEMIRAW_D (val,X ) \ + do \ + { \ + _FP_PACK_SEMIRAW (D, 2, X); \ + _FP_PACK_RAW_2 (D, (val), X); \ + } \ + while (0) + +# define FP_PACK_SEMIRAW_DP (val,X ) \ + do \ + { \ + _FP_PACK_SEMIRAW (D, 2, X); \ + if (!FP_INHIBIT_RESULTS) \ + _FP_PACK_RAW_2_P (D, (val), X); \ + } \ + while (0) + +# define FP_ISSIGNAN_D (X ) _FP_ISSIGNAN (D, 2, X) +# define FP_NEG_D (R ,X ) _FP_NEG (D, 2, R, X) +# define FP_ADD_D (R ,X ,Y ) _FP_ADD (D, 2, R, X, Y) +# define FP_SUB_D (R ,X ,Y ) _FP_SUB (D, 2, R, X, Y) +# define FP_MUL_D (R ,X ,Y ) _FP_MUL (D, 2, R, X, Y) +# define FP_DIV_D (R ,X ,Y ) _FP_DIV (D, 2, R, X, Y) +# define FP_SQRT_D (R ,X ) _FP_SQRT (D, 2, R, X) +# define _FP_SQRT_MEAT_D (R ,S ,T ,X ,Q ) _FP_SQRT_MEAT_2 (R, S, T, X, (Q)) +# define FP_FMA_D (R ,X ,Y ,Z ) _FP_FMA (D, 2, 4, R, X, Y, Z) + +# define FP_CMP_D (r,X ,Y , un, ex) _FP_CMP (D, 2, (r), X, Y, (un), (ex)) +# define FP_CMP_EQ_D (r,X ,Y , ex) _FP_CMP_EQ (D, 2, (r), X, Y, (ex)) +# define FP_CMP_UNORD_D (r,X ,Y , ex) _FP_CMP_UNORD (D, 2, (r), X, Y, (ex)) + +# define FP_TO_INT_D (r,X , rsz, rsg) _FP_TO_INT (D, 2, (r), X, (rsz), (rsg)) +# define FP_TO_INT_ROUND_D (r,X , rsz, rsg) \ + _FP_TO_INT_ROUND (D, 2, (r), X, (rsz), (rsg)) +# define FP_FROM_INT_D (X , r, rs, rt) _FP_FROM_INT (D, 2, X, (r), (rs), rt) + +# define _FP_FRAC_HIGH_D (X ) _FP_FRAC_HIGH_2 (X) +# define _FP_FRAC_HIGH_RAW_D (X ) _FP_FRAC_HIGH_2 (X) + +# define _FP_FRAC_HIGH_DW_D (X ) _FP_FRAC_HIGH_4 (X) + +#else + +union _FP_UNION_D +{ +DFtype flt; +struct _FP_STRUCT_LAYOUT + { +# if __BYTE_ORDER == __BIG_ENDIAN +unsigned sign :1 ; +unsigned exp : _FP_EXPBITS_D; +_FP_W_TYPE frac : _FP_FRACBITS_D - (_FP_IMPLBIT_D !=0 ); +# else +_FP_W_TYPE frac : _FP_FRACBITS_D - (_FP_IMPLBIT_D !=0 ); +unsigned exp : _FP_EXPBITS_D; +unsigned sign :1 ; +# endif + } bits __attribute__ ((packed)); +}; + +# define FP_DECL_D (X ) _FP_DECL (1, X) +# define FP_UNPACK_RAW_D (X , val) _FP_UNPACK_RAW_1 (D, X, (val)) +# define FP_UNPACK_RAW_DP (X , val) _FP_UNPACK_RAW_1_P (D, X, (val)) +# define FP_PACK_RAW_D (val,X ) _FP_PACK_RAW_1 (D, (val), X) +# define FP_PACK_RAW_DP (val,X ) \ + do \ + { \ + if (!FP_INHIBIT_RESULTS) \ + _FP_PACK_RAW_1_P (D, (val), X); \ + } \ + while (0) + +# define FP_UNPACK_D (X , val) \ + do \ + { \ + _FP_UNPACK_RAW_1 (D, X, (val)); \ + _FP_UNPACK_CANONICAL (D, 1, X); \ + } \ + while (0) + +# define FP_UNPACK_DP (X , val) \ + do \ + { \ + _FP_UNPACK_RAW_1_P (D, X, (val)); \ + _FP_UNPACK_CANONICAL (D, 1, X); \ + } \ + while (0) + +# define FP_UNPACK_SEMIRAW_D (X , val) \ + do \ + { \ + _FP_UNPACK_RAW_1 (D, X, (val)); \ + _FP_UNPACK_SEMIRAW (D, 1, X); \ + } \ + while (0) + +# define FP_UNPACK_SEMIRAW_DP (X , val) \ + do \ + { \ + _FP_UNPACK_RAW_1_P (D, X, (val)); \ + _FP_UNPACK_SEMIRAW (D, 1, X); \ + } \ + while (0) + +# define FP_PACK_D (val,X ) \ + do \ + { \ + _FP_PACK_CANONICAL (D, 1, X); \ + _FP_PACK_RAW_1 (D, (val), X); \ + } \ + while (0) + +# define FP_PACK_DP (val,X ) \ + do \ + { \ + _FP_PACK_CANONICAL (D, 1, X); \ + if (!FP_INHIBIT_RESULTS) \ + _FP_PACK_RAW_1_P (D, (val), X); \ + } \ + while (0) + +# define FP_PACK_SEMIRAW_D (val,X ) \ + do \ + { \ + _FP_PACK_SEMIRAW (D, 1, X); \ + _FP_PACK_RAW_1 (D, (val), X); \ + } \ + while (0) + +# define FP_PACK_SEMIRAW_DP (val,X ) \ + do \ + { \ + _FP_PACK_SEMIRAW (D, 1, X); \ + if (!FP_INHIBIT_RESULTS) \ + _FP_PACK_RAW_1_P (D, (val), X); \ + } \ + while (0) + +# define FP_ISSIGNAN_D (X ) _FP_ISSIGNAN (D, 1, X) +# define FP_NEG_D (R ,X ) _FP_NEG (D, 1, R, X) +# define FP_ADD_D (R ,X ,Y ) _FP_ADD (D, 1, R, X, Y) +# define FP_SUB_D (R ,X ,Y ) _FP_SUB (D, 1, R, X, Y) +# define FP_MUL_D (R ,X ,Y ) _FP_MUL (D, 1, R, X, Y) +# define FP_DIV_D (R ,X ,Y ) _FP_DIV (D, 1, R, X, Y) +# define FP_SQRT_D (R ,X ) _FP_SQRT (D, 1, R, X) +# define _FP_SQRT_MEAT_D (R ,S ,T ,X ,Q ) _FP_SQRT_MEAT_1 (R, S, T, X, (Q)) +# define FP_FMA_D (R ,X ,Y ,Z ) _FP_FMA (D, 1, 2, R, X, Y, Z) + +/* The implementation of _FP_MUL_D and _FP_DIV_D should be chosen by +the target machine. */ + +# define FP_CMP_D (r,X ,Y , un, ex) _FP_CMP (D, 1, (r), X, Y, (un), (ex)) +# define FP_CMP_EQ_D (r,X ,Y , ex) _FP_CMP_EQ (D, 1, (r), X, Y, (ex)) +# define FP_CMP_UNORD_D (r,X ,Y , ex) _FP_CMP_UNORD (D, 1, (r), X, Y, (ex)) + +# define FP_TO_INT_D (r,X , rsz, rsg) _FP_TO_INT (D, 1, (r), X, (rsz), (rsg)) +# define FP_TO_INT_ROUND_D (r,X , rsz, rsg) \ + _FP_TO_INT_ROUND (D, 1, (r), X, (rsz), (rsg)) +# define FP_FROM_INT_D (X , r, rs, rt) _FP_FROM_INT (D, 1, X, (r), (rs), rt) + +# define _FP_FRAC_HIGH_D (X ) _FP_FRAC_HIGH_1 (X) +# define _FP_FRAC_HIGH_RAW_D (X ) _FP_FRAC_HIGH_1 (X) + +# define _FP_FRAC_HIGH_DW_D (X ) _FP_FRAC_HIGH_2 (X) + +#endif /* W_TYPE_SIZE < 64 */ + +#endif /* !SOFT_FP_DOUBLE_H */
fpu/half.h new file +170 -0
170 lines not on this page · raw message
fpu/op-1.h new file +369 -0
369 lines not on this page · raw message
fpu/op-2.h new file +705 -0
705 lines not on this page · raw message
fpu/op-4.h new file +875 -0
875 lines not on this page · raw message
fpu/op-8.h new file +1 -0
@@ -0,0 +1 @@ +/* Stubbed out because we don't use it in QEMU. */
fpu/op-common.h new file +2134 -0
557 lines not on this page · raw message
fpu/quad.h new file +330 -0
330 lines not on this page · raw message
fpu/single.h new file +199 -0
199 lines not on this page · raw message
fpu/soft-fp.h new file +354 -0
354 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
2.14.3
Part of the diff is not shown here. View the raw message.
PATCH 11/24 fpu/soft-fp: Adjust soft-fp types
In reply to Richard HendersonGlibc uses host compiler floating-point types for packing. We need to use softfloat.h types.
--- fpu/double.h | 6 ++---- fpu/half.h | 4 +--- fpu/quad.h | 6 ++---- fpu/single.h | 4 +--- 4 files changed, 6 insertions(+), 14 deletions(-)
fpu/double.h +2 -4
@@ -69,13 +69,11 @@#define _FP_HIGHBIT_DW_D \ ((_FP_W_TYPE) 1 << (_FP_WFRACBITS_DW_D - 1) % _FP_W_TYPE_SIZE) -typedef float DFtype __attribute__ ((mode (DF ))); - #if _FP_W_TYPE_SIZE < 64 union _FP_UNION_D { - DFtype flt; + float64 flt; struct _FP_STRUCT_LAYOUT { # if __BYTE_ORDER == __BIG_ENDIAN
@@ -198,7 +196,7 @@ union _FP_UNION_Dunion _FP_UNION_D { -DFtype flt; +float64 flt;struct _FP_STRUCT_LAYOUT {# if __BYTE_ORDER == __BIG_ENDIAN
fpu/half.h +1 -3
@@ -59,11 +59,9 @@/* The implementation of _FP_MUL_MEAT_H and _FP_DIV_MEAT_H should be chosen by the target machine. */ -typedef float HFtype __attribute__ ((mode (HF ))); -union _FP_UNION_H { -HFtype flt; +float16 flt;struct _FP_STRUCT_LAYOUT {#if __BYTE_ORDER == __BIG_ENDIAN
fpu/quad.h +2 -4
@@ -69,13 +69,11 @@#define _FP_HIGHBIT_DW_Q \ ((_FP_W_TYPE) 1 << (_FP_WFRACBITS_DW_Q - 1) % _FP_W_TYPE_SIZE) -typedef float TFtype __attribute__ ((mode (TF ))); - #if _FP_W_TYPE_SIZE < 64 union _FP_UNION_Q { - TFtype flt; + float128 flt; struct _FP_STRUCT_LAYOUT { # if __BYTE_ORDER == __BIG_ENDIAN
@@ -202,7 +200,7 @@ union _FP_UNION_Q #else /* not _FP_W_TYPE_SIZE < 64 */ union _FP_UNION_Q { - TFtype flt /* __attribute__ ((mode (TF))) */ ; + float128 flt; struct _FP_STRUCT_LAYOUT { _FP_W_TYPE a, b;
fpu/single.h +1 -3
@@ -66,11 +66,9 @@/* The implementation of _FP_MUL_MEAT_S and _FP_DIV_MEAT_S should be chosen by the target machine. */ -typedef float SFtype __attribute__ ((mode (SF ))); -union _FP_UNION_S { -SFtype flt; +float32 flt;struct _FP_STRUCT_LAYOUT {#if __BYTE_ORDER == __BIG_ENDIAN
Signature · 1 line
2.14.3
PATCH 12/24 fpu/soft-fp: Add ties_away and to_odd rounding modes
In reply to Richard HendersonThese rounding modes are used by ARM and PowerPC respectively.
--- fpu/op-common.h | 20 ++++++++++++++++++++ fpu/soft-fp.h | 25 +++++++++++++++++++++++++ 2 files changed, 45 insertions(+)
fpu/op-common.h +20 -0
@@ -130,6 +130,7 @@ do \ { \ if (FP_ROUNDMODE == FP_RND_NEAREST \ + || FP_ROUNDMODE == FP_RND_TIESAWAY \ || (FP_ROUNDMODE == FP_RND_PINF && !X##_s) \ || (FP_ROUNDMODE == FP_RND_MINF && X##_s)) \ { \
@@ -287,6 +288,7 @@switch (FP_ROUNDMODE ) \ { \case FP_RND_NEAREST : \ +case FP_RND_TIESAWAY : \ X##_c = FP_CLS_INF; \break ; \case FP_RND_PINF : \
@@ -297,6 +299,10 @@ if (X##_s) \ X##_c = FP_CLS_INF; \break ; \ +case FP_RND_ODD : \ +break ; \ +default : \ + _FP_UNREACHABLE; \ } \ if (X##_c == FP_CLS_INF) \ { \
@@ -1610,10 +1616,14 @@switch (FP_ROUNDMODE ) \ { \case FP_RND_NEAREST : \ +case FP_RND_TIESAWAY : \ _FP_TO_INT_ROUND_rounds_away \ = (X##_e == _FP_EXPBIAS_##fs - 1 \ && !_FP_FRAC_ZEROP_##wc (X)); \ break; \ + case FP_RND_ODD: \ + _FP_TO_INT_ROUND_rounds_away = 1; \ + break; \ case FP_RND_ZERO: \/* _FP_TO_INT_ROUND_rounds_away is already 0. */ \break ; \
@@ -1623,6 +1633,8 @@case FP_RND_MINF : \ _FP_TO_INT_ROUND_rounds_away = X##_s; \break ; \ +default : \ + _FP_UNREACHABLE; \ } \ if ((rsigned) == 0 && _FP_TO_INT_ROUND_rounds_away && X##_s) \ { \
@@ -1740,6 +1752,14 @@case FP_RND_MINF : \_FP_ROUND_MINF (wc,X ); \break ; \ +case FP_RND_TIESAWAY : \ +_FP_ROUND_TIESAWAY (wc,X ); \ +break ; \ +case FP_RND_ODD : \ +_FP_ROUND_ODD (wc,X ); \ +break ; \ +default : \ + _FP_UNREACHABLE; \ } \ } \ _FP_FRAC_SRL_##wc (X, _FP_WORKBITS); \
fpu/soft-fp.h +25 -0
@@ -93,6 +93,8 @@# define FP_RND_ZERO 1# define FP_RND_PINF 2# define FP_RND_MINF 3 +# define FP_RND_TIESAWAY 4 +# define FP_RND_ODD 5#endif #ifndef FP_ROUNDMODE # define FP_ROUNDMODE FP_RND_NEAREST
@@ -282,6 +284,21 @@ } \ while (0) +#define _FP_ROUND_TIESAWAY (wc,X ) \ + do \ + { \ + _FP_FRAC_ADDI_##wc (X, _FP_WORK_ROUND); \ + } \ + while (0) + +#define _FP_ROUND_ODD (wc,X ) \ + do \ + { \ + if (!(_FP_FRAC_LOW_##wc (X) & _FP_WORK_LSB)) \ + _FP_FRAC_ADDI_##wc (X, _FP_WORK_LSB - 1); \ + } \ + while (0) +#define _FP_ROUND (wc,X ) \ do \ { \
@@ -302,6 +319,14 @@case FP_RND_MINF : \_FP_ROUND_MINF (wc,X ); \break ; \ +case FP_RND_TIESAWAY : \ +_FP_ROUND_TIESAWAY (wc,X ); \ +break ; \ +case FP_RND_ODD : \ +_FP_ROUND_ODD (wc,X ); \ +break ; \ +default : \ + _FP_UNREACHABLE; \ } \ } \ } \
Signature · 1 line
2.14.3
PATCH 13/24 fpu/soft-fp: Add arithmetic macros to half.h
In reply to Richard HendersonThese were omitted from upstream glibc for some reason.
--- fpu/half.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-)
fpu/half.h +13 -1
@@ -159,7 +159,19 @@ union _FP_UNION_H _FP_TO_INT_ROUND (H, 1, (r), X, (rsz), (rsg))#define FP_FROM_INT_H (X , r, rs, rt) _FP_FROM_INT (H, 1, X, (r), (rs), rt) -/* HFmode arithmetic is not implemented. */ +#define FP_ISSIGNAN_H (X ) _FP_ISSIGNAN (H, 1, X) +#define FP_NEG_H (R ,X ) _FP_NEG (H, 1, R, X) +#define FP_ADD_H (R ,X ,Y ) _FP_ADD (H, 1, R, X, Y) +#define FP_SUB_H (R ,X ,Y ) _FP_SUB (H, 1, R, X, Y) +#define FP_MUL_H (R ,X ,Y ) _FP_MUL (H, 1, R, X, Y) +#define FP_DIV_H (R ,X ,Y ) _FP_DIV (H, 1, R, X, Y) +#define FP_SQRT_H (R ,X ) _FP_SQRT (H, 1, R, X) +#define _FP_SQRT_MEAT_H (R ,S ,T ,X ,Q ) _FP_SQRT_MEAT_1 (R, S, T, X, (Q)) +#define FP_FMA_H (R ,X ,Y ,Z ) _FP_FMA (H, 1, 1, R, X, Y, Z) + +#define FP_CMP_H (r,X ,Y , un, ex) _FP_CMP (H, 1, (r), X, Y, (un), (ex)) +#define FP_CMP_EQ_H (r,X ,Y , ex) _FP_CMP_EQ (H, 1, (r), X, Y, (ex)) +#define FP_CMP_UNORD_H (r,X ,Y , ex) _FP_CMP_UNORD (H, 1, (r), X, Y, (ex))#define _FP_FRAC_HIGH_H (X ) _FP_FRAC_HIGH_1 (X)#define _FP_FRAC_HIGH_RAW_H (X ) _FP_FRAC_HIGH_1 (X)
Signature · 1 line
2.14.3
PATCH 14/24 fpu/soft-fp: Adjust _FP_CMP_CHECK_NAN
In reply to Richard HendersonThe fourth argument to _FP_CMP is a 4-state integer operand that controls the operation wrt raising exceptions. However, the usage that we need within QEMU produces a -Werror=int-in-bool-context:
error: ?: using integer constants in boolean context, \
the expression will always evaluate to ‘true’
glue(FP_CMP_, FS)(r, A, B, float_relation_unordered, (quiet ? 1 : 2));
note: in definition of macro ‘_FP_CMP_CHECK_NAN’
if (ex) \
^~Adding an explicit comparison avoids this.
--- fpu/op-common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fpu/op-common.h +1 -1
@@ -1242,7 +1242,7 @@ { \/* The arguments are unordered, which may or may not result in \ an exception. */ \ -if (ex) \ +if ((ex) !=0 ) \ { \/* At least some cases of unordered arguments result in \ exceptions; check whether this is one. */ \
Signature · 1 line
2.14.3
PATCH 15/24 fpu: Implement add/sub/mul/div with soft-fp.h
In reply to Richard HendersonPort the implementation of these 4 routines to the code imported from glibc. This allows the trivial addition of float16 support.
--- Makefile.target | 4 + fpu/sfp-machine.h | 222 ++++++++++ fpu/soft-fp-specialize.h | 131 ++++++ include/fpu/softfloat.h | 6 + fpu/float128.c | 35 ++ fpu/float16.c | 43 ++ fpu/float32.c | 35 ++ fpu/float64.c | 35 ++ fpu/floatxx.inc.c | 98 +++++ fpu/softfloat.c | 1075 ---------------------------------------------- 10 files changed, 609 insertions(+), 1075 deletions(-) create mode 100644 fpu/sfp-machine.h create mode 100644 fpu/soft-fp-specialize.h create mode 100644 fpu/float128.c create mode 100644 fpu/float16.c create mode 100644 fpu/float32.c create mode 100644 fpu/float64.c create mode 100644 fpu/floatxx.inc.c
Makefile.target +4 -0
@@ -98,6 +98,10 @@ obj-$(CONFIG_TCG) += tcg/tcg-common.o obj-$(CONFIG_TCG_INTERPRETER) += tcg/tci.o obj-$(CONFIG_TCG_INTERPRETER) += disas/tci.o obj-y += fpu/softfloat.o +obj-y += fpu/float16.o +obj-y += fpu/float32.o +obj-y += fpu/float64.o +obj-y += fpu/float128.o obj-y += target/$(TARGET_BASE_ARCH)/ obj-y += disas.o obj-$(call notempty,$(TARGET_XML_FILES)) += gdbstub-xml.o
fpu/sfp-machine.h new file +222 -0
222 lines not on this page · raw message
fpu/soft-fp-specialize.h new file +131 -0
131 lines not on this page · raw message
include/fpu/softfloat.h +6 -0
@@ -236,6 +236,12 @@ float64 float16_to_float64(float16 a, flag ieee, float_status *status);/*---------------------------------------------------------------------------- | Software half-precision operations. *----------------------------------------------------------------------------*/ + +float16 float16_add (float16 ,float16 ,float_status *status); +float16 float16_sub (float16 ,float16 ,float_status *status); +float16 float16_mul (float16 ,float16 ,float_status *status); +float16 float16_div (float16 ,float16 ,float_status *status); +int float16_is_quiet_nan (float16 ,float_status *status);int float16_is_signaling_nan (float16 ,float_status *status);float16 float16_maybe_silence_nan (float16 ,float_status *status);
fpu/float128.c new file +35 -0
@@ -0,0 +1,35 @@ +/* +* Software floating point for size float64 +* +* This library is free software; you can redistribute it and/or +* modify it under the terms of the GNU Lesser General Public +* License as published by the Free Software Foundation; either +* version 2 of the License, or (at your option) any later version. +* +* This library is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +* Lesser General Public License for more details. +* +* 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 "qemu/osdep.h" +#include "fpu/softfloat.h" +#include "soft-fp.h" +#include "soft-fp-specialize.h" +#include "quad.h" + +#define FLOATXX float128 +#define FS Q +#define WC 2 + +#define _FP_MUL_MEAT_Q (R ,X ,Y ) \ + _FP_MUL_MEAT_2_wide(_FP_WFRACBITS_Q, R, X, Y, umul_ppmm) +#define _FP_MUL_MEAT_DW_Q (R ,X ,Y ) \ + _FP_MUL_MEAT_DW_2_wide(_FP_WFRACBITS_Q, R, X, Y, umul_ppmm) +#define _FP_DIV_MEAT_Q (R ,X ,Y ) \ + _FP_DIV_MEAT_2_udiv(Q, R, X, Y) + +#include "floatxx.inc.c"
fpu/float16.c new file +43 -0
43 lines not on this page · raw message
fpu/float32.c new file +35 -0
@@ -0,0 +1,35 @@ +/* +* Software floating point for size float32 +* +* This library is free software; you can redistribute it and/or +* modify it under the terms of the GNU Lesser General Public +* License as published by the Free Software Foundation; either +* version 2 of the License, or (at your option) any later version. +* +* This library is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +* Lesser General Public License for more details. +* +* 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 "qemu/osdep.h" +#include "fpu/softfloat.h" +#include "soft-fp.h" +#include "soft-fp-specialize.h" +#include "single.h" + +#define FLOATXX float32 +#define FS S +#define WC 1 + +#define _FP_MUL_MEAT_S (R ,X ,Y ) \ + _FP_MUL_MEAT_1_imm(_FP_WFRACBITS_S, R, X, Y) +#define _FP_MUL_MEAT_DW_S (R ,X ,Y ) \ + _FP_MUL_MEAT_DW_1_imm(_FP_WFRACBITS_S, R, X, Y) +#define _FP_DIV_MEAT_S (R ,X ,Y ) \ + _FP_DIV_MEAT_1_imm(S, R, X, Y, _FP_DIV_HELP_imm) + +#include "floatxx.inc.c"
fpu/float64.c new file +35 -0
@@ -0,0 +1,35 @@ +/* +* Software floating point for size float64 +* +* This library is free software; you can redistribute it and/or +* modify it under the terms of the GNU Lesser General Public +* License as published by the Free Software Foundation; either +* version 2 of the License, or (at your option) any later version. +* +* This library is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +* Lesser General Public License for more details. +* +* 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 "qemu/osdep.h" +#include "fpu/softfloat.h" +#include "soft-fp.h" +#include "soft-fp-specialize.h" +#include "double.h" + +#define FLOATXX float64 +#define FS D +#define WC 1 + +#define _FP_MUL_MEAT_D (R ,X ,Y ) \ + _FP_MUL_MEAT_1_wide(_FP_WFRACBITS_D, R, X, Y, umul_ppmm) +#define _FP_MUL_MEAT_DW_D (R ,X ,Y ) \ + _FP_MUL_MEAT_DW_1_wide(_FP_WFRACBITS_D, R, X, Y, umul_ppmm) +#define _FP_DIV_MEAT_D (R ,X ,Y ) \ + _FP_DIV_MEAT_1_udiv_norm(D, R, X, Y) + +#include "floatxx.inc.c"
fpu/floatxx.inc.c new file +98 -0
98 lines not on this page · raw message
fpu/softfloat.c +0 -1075
1,093 lines not on this page · raw message
Signature · 1 line
2.14.3
PATCH 16/24 fpu: Implement float_to_int/uint with soft-fp.h
In reply to Richard HendersonAdd float16 conversions. For consistency, add missing float128 conversions to uint32_t.
--- include/fpu/softfloat.h | 20 +- fpu/floatxx.inc.c | 45 ++ fpu/softfloat.c | 1088 ----------------------------------------------- 3 files changed, 64 insertions(+), 1089 deletions(-)
include/fpu/softfloat.h +19 -1
@@ -228,6 +228,19 @@ static inline float64 uint16_to_float64(uint16_t v, float_status *status)/*---------------------------------------------------------------------------- | Software half-precision conversion routines. *----------------------------------------------------------------------------*/ +int16_t float16_to_int16 (float16 ,float_status *status); +uint16_t float16_to_uint16 (float16 ,float_status *status); +int16_t float16_to_int16_round_to_zero (float16 ,float_status *status); +uint16_t float16_to_uint16_round_to_zero (float16 ,float_status *status); +int32_t float16_to_int32 (float16 ,float_status *status); +int32_t float16_to_int32_round_to_zero (float16 ,float_status *status); +uint32_t float16_to_uint32 (float16 ,float_status *status); +uint32_t float16_to_uint32_round_to_zero (float16 ,float_status *status); +int64_t float16_to_int64 (float16 ,float_status *status); +uint64_t float16_to_uint64 (float16 ,float_status *status); +uint64_t float16_to_uint64_round_to_zero (float16 ,float_status *status); +int64_t float16_to_int64_round_to_zero (float16 ,float_status *status); +float16 float32_to_float16 (float32 ,flag ,float_status *status);float32 float16_to_float32 (float16 ,flag ,float_status *status);float16 float64_to_float16 (float64 a,flag ieee,float_status *status);
@@ -627,13 +640,18 @@ floatx80 floatx80_default_nan(float_status *status);/*---------------------------------------------------------------------------- | Software IEC/IEEE quadruple-precision conversion routines. *----------------------------------------------------------------------------*/ +int16_t float128_to_int16 (float128 ,float_status *status); +int16_t float128_to_int16_round_to_zero (float128 ,float_status *status); +uint16_t float128_to_uint16 (float128 ,float_status *status); +uint16_t float128_to_uint16_round_to_zero (float128 ,float_status *status);int32_t float128_to_int32 (float128 ,float_status *status);int32_t float128_to_int32_round_to_zero (float128 ,float_status *status); +uint32_t float128_to_uint32 (float128 ,float_status *status); +uint32_t float128_to_uint32_round_to_zero (float128 ,float_status *status);int64_t float128_to_int64 (float128 ,float_status *status);int64_t float128_to_int64_round_to_zero (float128 ,float_status *status);uint64_t float128_to_uint64 (float128 ,float_status *status);uint64_t float128_to_uint64_round_to_zero (float128 ,float_status *status); -uint32_t float128_to_uint32_round_to_zero (float128 ,float_status *status);float32 float128_to_float32 (float128 ,float_status *status);float64 float128_to_float64 (float128 ,float_status *status);floatx80 float128_to_floatx80 (float128 ,float_status *status);
fpu/floatxx.inc.c +45 -0
48 lines not on this page · raw message
fpu/softfloat.c +0 -1088
1,118 lines not on this page · raw message
Signature · 1 line
2.14.3
PATCH 17/24 fpu: Implement int/uint_to_float with soft-fp.h
In reply to Richard HendersonAdd conversions to float16. For consistency, add float128 conversions from int16_t/uint16_t.
--- include/fpu/softfloat.h | 50 +++++------ fpu/floatxx.inc.c | 55 ++++++++++++ fpu/softfloat.c | 227 ------------------------------------------------ 3 files changed, 78 insertions(+), 254 deletions(-)
include/fpu/softfloat.h +23 -27
@@ -190,41 +190,37 @@ enum {/*---------------------------------------------------------------------------- | Software IEC/IEEE integer-to-floating-point conversion routines. *----------------------------------------------------------------------------*/ +float16 int16_to_float16 (int16_t ,float_status *status); +float16 int32_to_float16 (int32_t ,float_status *status); +float16 int64_to_float16 (int64_t ,float_status *status); +float16 uint16_to_float16 (uint16_t ,float_status *status); +float16 uint32_to_float16 (uint32_t ,float_status *status); +float16 uint64_to_float16 (uint64_t ,float_status *status); + +float32 int16_to_float32 (int16_t ,float_status *status);float32 int32_to_float32 (int32_t ,float_status *status); -float64 int32_to_float64 (int32_t ,float_status *status); +float32 int64_to_float32 (int64_t ,float_status *status); +float32 uint16_to_float32 (uint16_t ,float_status *status);float32 uint32_to_float32 (uint32_t ,float_status *status); +float32 uint64_to_float32 (uint64_t ,float_status *status); + +float64 int16_to_float64 (int16_t ,float_status *status); +float64 int32_to_float64 (int32_t ,float_status *status); +float64 int64_to_float64 (int64_t ,float_status *status); +float64 uint16_to_float64 (uint16_t ,float_status *status);float64 uint32_to_float64 (uint32_t ,float_status *status); +float64 uint64_to_float64 (uint64_t ,float_status *status); +floatx80 int32_to_floatx80 (int32_t ,float_status *status); -float128 int32_to_float128 (int32_t ,float_status *status); -float32 int64_to_float32 (int64_t ,float_status *status); -float64 int64_to_float64 (int64_t ,float_status *status);floatx80 int64_to_floatx80 (int64_t ,float_status *status); + +float128 int16_to_float128 (int16_t ,float_status *status); +float128 int32_to_float128 (int32_t ,float_status *status);float128 int64_to_float128 (int64_t ,float_status *status); -float32 uint64_to_float32 (uint64_t ,float_status *status); -float64 uint64_to_float64 (uint64_t ,float_status *status); +float128 uint16_to_float128 (uint16_t ,float_status *status); +float128 uint32_to_float128 (uint32_t ,float_status *status);float128 uint64_to_float128 (uint64_t ,float_status *status); -/* We provide the int16 versions for symmetry of API with float-to-int */ -static inline float32 int16_to_float32 (int16_t v,float_status *status) -{ -return int32_to_float32 (v, status); -} - -static inline float32 uint16_to_float32 (uint16_t v,float_status *status) -{ -return uint32_to_float32 (v, status); -} - -static inline float64 int16_to_float64 (int16_t v,float_status *status) -{ -return int32_to_float64 (v, status); -} - -static inline float64 uint16_to_float64 (uint16_t v,float_status *status) -{ -return uint32_to_float64 (v, status); -} -/*---------------------------------------------------------------------------- | Software half-precision conversion routines. *----------------------------------------------------------------------------*/
fpu/floatxx.inc.c +55 -0
58 lines not on this page · raw message
fpu/softfloat.c +0 -227
251 lines not on this page · raw message
Signature · 1 line
2.14.3
PATCH 18/24 fpu: Implement compares with soft-fp.h
In reply to Richard HendersonAdd float16 comparisons.
--- include/fpu/softfloat.h | 10 + fpu/floatxx.inc.c | 67 +++ fpu/softfloat.c | 1051 ++--------------------------------------------- 3 files changed, 109 insertions(+), 1019 deletions(-)
include/fpu/softfloat.h +10 -0
@@ -250,6 +250,16 @@ float16 float16_add(float16, float16, float_status *status);float16 float16_sub (float16 ,float16 ,float_status *status);float16 float16_mul (float16 ,float16 ,float_status *status);float16 float16_div (float16 ,float16 ,float_status *status); +int float16_eq (float16 ,float16 ,float_status *status); +int float16_le (float16 ,float16 ,float_status *status); +int float16_lt (float16 ,float16 ,float_status *status); +int float16_unordered (float16 ,float16 ,float_status *status); +int float16_eq_quiet (float16 ,float16 ,float_status *status); +int float16_le_quiet (float16 ,float16 ,float_status *status); +int float16_lt_quiet (float16 ,float16 ,float_status *status); +int float16_unordered_quiet (float16 ,float16 ,float_status *status); +int float16_compare (float16 ,float16 ,float_status *status); +int float16_compare_quiet (float16 ,float16 ,float_status *status);int float16_is_quiet_nan (float16 ,float_status *status);int float16_is_signaling_nan (float16 ,float_status *status);
fpu/floatxx.inc.c +67 -0
70 lines not on this page · raw message
fpu/softfloat.c +32 -1019
1,089 lines not on this page · raw message
Signature · 1 line
2.14.3
PATCH 19/24 fpu: Implement min/max with soft-fp.h
In reply to Richard HendersonAdd routines for float16 and float128.
--- include/fpu/softfloat.h | 12 ++++++ fpu/floatxx.inc.c | 89 ++++++++++++++++++++++++++++++++++++++++ fpu/softfloat.c | 107 ------------------------------------------------ 3 files changed, 101 insertions(+), 107 deletions(-)
include/fpu/softfloat.h +12 -0
@@ -260,6 +260,12 @@ int float16_lt_quiet(float16, float16, float_status *status);int float16_unordered_quiet (float16 ,float16 ,float_status *status);int float16_compare (float16 ,float16 ,float_status *status);int float16_compare_quiet (float16 ,float16 ,float_status *status); +float16 float16_min (float16 ,float16 ,float_status *status); +float16 float16_max (float16 ,float16 ,float_status *status); +float16 float16_minnum (float16 ,float16 ,float_status *status); +float16 float16_maxnum (float16 ,float16 ,float_status *status); +float16 float16_minnummag (float16 ,float16 ,float_status *status); +float16 float16_maxnummag (float16 ,float16 ,float_status *status);int float16_is_quiet_nan (float16 ,float_status *status);int float16_is_signaling_nan (float16 ,float_status *status);
@@ -682,6 +688,12 @@ int float128_lt_quiet(float128, float128, float_status *status);int float128_unordered_quiet (float128 ,float128 ,float_status *status);int float128_compare (float128 ,float128 ,float_status *status);int float128_compare_quiet (float128 ,float128 ,float_status *status); +float128 float128_min (float128 ,float128 ,float_status *status); +float128 float128_max (float128 ,float128 ,float_status *status); +float128 float128_minnum (float128 ,float128 ,float_status *status); +float128 float128_maxnum (float128 ,float128 ,float_status *status); +float128 float128_minnummag (float128 ,float128 ,float_status *status); +float128 float128_maxnummag (float128 ,float128 ,float_status *status);int float128_is_quiet_nan (float128 ,float_status *status);int float128_is_signaling_nan (float128 ,float_status *status);float128 float128_maybe_silence_nan (float128 ,float_status *status);
fpu/floatxx.inc.c +89 -0
98 lines not on this page · raw message
fpu/softfloat.c +0 -107
113 lines not on this page · raw message
Signature · 1 line
2.14.3
PATCH 20/24 fpu: Implement sqrt with soft-fp.h
In reply to Richard HendersonAdd float16 support.
--- include/fpu/softfloat.h | 1 + fpu/floatxx.inc.c | 16 +++++ fpu/softfloat.c | 179 ------------------------------------------------ 3 files changed, 17 insertions(+), 179 deletions(-)
include/fpu/softfloat.h +1 -0
@@ -250,6 +250,7 @@ float16 float16_add(float16, float16, float_status *status);float16 float16_sub (float16 ,float16 ,float_status *status);float16 float16_mul (float16 ,float16 ,float_status *status);float16 float16_div (float16 ,float16 ,float_status *status); +float16 float16_sqrt (float16 ,float_status *status);int float16_eq (float16 ,float16 ,float_status *status);int float16_le (float16 ,float16 ,float_status *status);int float16_lt (float16 ,float16 ,float_status *status);
fpu/floatxx.inc.c +16 -0
@@ -101,6 +101,22 @@ FLOATXX glue(FLOATXX,_div)(FLOATXX a, FLOATXX b, float_status *status)return r; } +FLOATXX glue (FLOATXX ,_sqrt )(FLOATXX a,float_status *status) +{ +FP_DECL_EX ; +glue (FP_DECL_ ,FS )(A ); +glue (FP_DECL_ ,FS )(R ); +FLOATXX r; + +FP_INIT_ROUNDMODE ; +glue (FP_UNPACK_ ,FS )(A , a); +glue (FP_SQRT_ ,FS )(R ,A ); +glue (FP_PACK_ ,FS )(r,R ); +FP_HANDLE_EXCEPTIONS ; + +return r; +} +#define DO_FLOAT_TO_INT (NAME ,SZ ,FP_TO_INT_WHICH ) \ int##SZ##_t NAME(FLOATXX a, float_status *status) \ { \
fpu/softfloat.c +0 -179
197 lines not on this page · raw message
Signature · 1 line
2.14.3
PATCH 21/24 fpu: Implement scalbn with soft-fp.h
In reply to Richard HendersonAdd float16 support.
--- include/fpu/softfloat.h | 1 + fpu/floatxx.inc.c | 28 +++++++++++++ fpu/softfloat.c | 109 ------------------------------------------------ 3 files changed, 29 insertions(+), 109 deletions(-)
include/fpu/softfloat.h +1 -0
@@ -267,6 +267,7 @@ float16 float16_minnum(float16, float16, float_status *status);float16 float16_maxnum (float16 ,float16 ,float_status *status);float16 float16_minnummag (float16 ,float16 ,float_status *status);float16 float16_maxnummag (float16 ,float16 ,float_status *status); +float16 float16_scalbn (float16 ,int ,float_status *status);int float16_is_quiet_nan (float16 ,float_status *status);int float16_is_signaling_nan (float16 ,float_status *status);
fpu/floatxx.inc.c +28 -0
@@ -117,6 +117,34 @@ FLOATXX glue(FLOATXX,_sqrt)(FLOATXX a, float_status *status)return r; } +FLOATXX glue (FLOATXX ,_scalbn )(FLOATXX a,int n,float_status *status) +{ +FP_DECL_EX ; +glue (FP_DECL_ ,FS )(A ); + +FP_INIT_ROUNDMODE ; +glue (FP_UNPACK_ ,FS )(A , a); + +if (likely (A_c ==FP_CLS_NORMAL )) { +/* Bound N such that the exponent can safely adjusted without +overflowing. The maximum is large enough to take the smallest +denormal up beyond the largest normal, which will overflow +to infinity when we repack. */ +int max =glue (_FP_EXPMAX_,FS ) +glue (_FP_FRACBITS_,FS ); +if (n > max) { + n = max; + }else if (n < -max) { + n = -max; + } + A_e += n; + } + +glue (FP_PACK_ ,FS )(a,A ); +FP_HANDLE_EXCEPTIONS ; + +return a; +} +#define DO_FLOAT_TO_INT (NAME ,SZ ,FP_TO_INT_WHICH ) \ int##SZ##_t NAME(FLOATXX a, float_status *status) \ { \
fpu/softfloat.c +0 -109
118 lines not on this page · raw message
Signature · 1 line
2.14.3
PATCH 22/24 fpu: Implement float_to_float with soft-fp.h
In reply to Richard Henderson--- Makefile.target | 1 + fpu/softfloat-specialize.h | 40 ---- include/fpu/softfloat.h | 8 +- fpu/floatconv.c | 154 ++++++++++++++ fpu/softfloat.c | 489 --------------------------------------------- 5 files changed, 159 insertions(+), 533 deletions(-) create mode 100644 fpu/floatconv.c
Makefile.target +1 -0
@@ -102,6 +102,7 @@ obj-y += fpu/float16.o obj-y += fpu/float32.o obj-y += fpu/float64.o obj-y += fpu/float128.o +obj-y += fpu/floatconv.o obj-y += target/$(TARGET_BASE_ARCH)/ obj-y += disas.o obj-$(call notempty,$(TARGET_XML_FILES)) += gdbstub-xml.o
fpu/softfloat-specialize.h +0 -40
@@ -278,46 +278,6 @@ float16 float16_maybe_silence_nan(float16 a_, float_status *status)return a_; } -/*---------------------------------------------------------------------------- -| Returns the result of converting the half-precision floating-point NaN -| `a' to the canonical NaN format. If `a' is a signaling NaN, the invalid -| exception is raised. -*----------------------------------------------------------------------------*/ - -static commonNaNT float16ToCommonNaN (float16 a,float_status *status) -{ -commonNaNT z; - -if (float16_is_signaling_nan (a, status)) { -float_raise (float_flag_invalid, status); - } - z.sign =float16_val (a) >>15 ; - z.low =0 ; - z.high = ((uint64_t )float16_val (a)) <<54 ; -return z; -} - -/*---------------------------------------------------------------------------- -| Returns the result of converting the canonical NaN `a' to the half- -| precision floating-point format. -*----------------------------------------------------------------------------*/ - -static float16 commonNaNToFloat16 (commonNaNT a,float_status *status) -{ -uint16_t mantissa = a.high >>54 ; - -if (status->default_nan_mode) { -return float16_default_nan (status); - } - -if (mantissa) { -return make_float16 (((((uint16_t ) a.sign) <<15 ) - | (0x1F <<10 ) | mantissa)); - }else { -return float16_default_nan (status); - } -} -#ifdef NO_SIGNALING_NANS int float32_is_quiet_nan (float32 a_,float_status *status) {
include/fpu/softfloat.h +4 -4
@@ -237,10 +237,10 @@ uint64_t float16_to_uint64(float16, float_status *status);uint64_t float16_to_uint64_round_to_zero (float16 ,float_status *status);int64_t float16_to_int64_round_to_zero (float16 ,float_status *status); -float16 float32_to_float16 (float32 ,flag ,float_status *status); -float32 float16_to_float32 (float16 ,flag ,float_status *status); -float16 float64_to_float16 (float64 a,flag ieee,float_status *status); -float64 float16_to_float64 (float16 a,flag ieee,float_status *status); +float16 float32_to_float16 (float32 ,bool ieee,float_status *status); +float32 float16_to_float32 (float16 ,bool ieee,float_status *status); +float16 float64_to_float16 (float64 a,bool ieee,float_status *status); +float64 float16_to_float64 (float16 a,bool ieee,float_status *status);/*---------------------------------------------------------------------------- | Software half-precision operations.
fpu/floatconv.c new file +154 -0
154 lines not on this page · raw message
fpu/softfloat.c +0 -489
525 lines not on this page · raw message
Signature · 1 line
2.14.3
PATCH 23/24 fpu: Implement muladd with soft-fp.h
In reply to Richard HendersonAdd routines for float16 and float128.
--- fpu/soft-fp-specialize.h | 123 ++++++++++++ fpu/softfloat-specialize.h | 228 ---------------------- include/fpu/softfloat.h | 3 + fpu/floatxx.inc.c | 68 +++++++ fpu/softfloat.c | 473 --------------------------------------------- 5 files changed, 194 insertions(+), 701 deletions(-)
fpu/soft-fp-specialize.h +123 -0
@@ -129,3 +129,126 @@ static inline int pick_nan(int a_nan, int b_nan, bool a_larger,return a_larger ^1 ;#endif } + + +/* +* Select which NaN to propagate for a three-input FMA operation. +* +* A_SNAN etc are set iff the operand is an SNaN; QNaN can be +* determined from (A_CLS == FP_CLS_NAN && !A_SNAN). +* +* The return value is 0 to select NaN A, 1 for NaN B, 2 for NaN C, +* or 3 to build a new default QNaN. +* +* Note that signalling NaNs are always squashed to quiet NaNs +* by the caller before returning them. +*/ +static inline int pick_nan_muladd (int a_cls,bool a_snan, +int b_cls,bool b_snan, +int c_cls,bool c_snan, +float_status *status) +{ +/* True if the inner product would itself generate a default NaN. */ +bool infzero = (a_cls ==FP_CLS_INF && b_cls ==FP_CLS_ZERO ) + || (b_cls ==FP_CLS_INF && a_cls ==FP_CLS_ZERO ); + +#if defined(TARGET_ARM ) +/* For ARM, the (inf,zero,qnan) case sets InvalidOp +* and returns the default NaN. +*/ +if (infzero && c_cls ==FP_CLS_NAN && !c_snan) { +float_raise (float_flag_invalid, status); +return 3 ; + } + +/* This looks different from the ARM ARM pseudocode, because the ARM ARM +* puts the operands to a fused mac operation (a*b)+c in the order c,a,b. +*/ +if (c_snan) { +return 2 ; + }else if (a_snan) { +return 0 ; + }else if (b_snan) { +return 1 ; + }else if (c_cls ==FP_CLS_NAN ) { +return 2 ; + }else if (a_cls ==FP_CLS_NAN ) { +return 0 ; + }else { +return 1 ; + } +#elif defined(TARGET_MIPS ) +/* For MIPS, the (inf,zero,*) case sets InvalidOp +* and returns the default NaN. +*/ +if (infzero) { +float_raise (float_flag_invalid, status); +return 3 ; + } +if (status->snan_bit_is_one) { +/* Prefer sNaN over qNaN, in the a, b, c order. */ +if (a_snan) { +return 0 ; + }else if (b_snan) { +return 1 ; + }else if (c_snan) { +return 2 ; + }else if (a_cls ==FP_CLS_NAN ) { +return 0 ; + }else if (b_cls ==FP_CLS_NAN ) { +return 1 ; + }else { +return 2 ; + } + }else { +/* Prefer sNaN over qNaN, in the c, a, b order. */ +if (c_snan) { +return 2 ; + }else if (a_snan) { +return 0 ; + }else if (b_snan) { +return 1 ; + }else if (c_cls ==FP_CLS_NAN ) { +return 2 ; + }else if (a_cls ==FP_CLS_NAN ) { +return 0 ; + }else { +return 1 ; + } + } +#elif defined(TARGET_PPC ) +/* For PPC, the (inf,zero,qnan) case sets InvalidOp, but we prefer +* to return an input NaN if we have one (ie c) rather than generating +* a default NaN +*/ +if (infzero) { +float_raise (float_flag_invalid, status); +return 2 ; + } + +/* If fRA is a NaN return it; otherwise if fRB is a NaN return it; +* otherwise return fRC. Note that muladd on PPC is (fRA * fRC) + frB +*/ +if (a_cls ==FP_CLS_NAN ) { +return 0 ; + }else if (c_cls ==FP_CLS_NAN ) { +return 2 ; + }else { +return 1 ; + } +#else +/* A default implementation, which is unlikely to match any +* real implementation. +*/ +if (infzero) { +float_raise (float_flag_invalid, status); + } +if (a_cls ==FP_CLS_NAN ) { +return 0 ; + }else if (b_cls ==FP_CLS_NAN ) { +return 1 ; + }else { +return 2 ; + } +#endif +}
fpu/softfloat-specialize.h +0 -228
246 lines not on this page · raw message
include/fpu/softfloat.h +3 -0
@@ -250,6 +250,7 @@ float16 float16_add(float16, float16, float_status *status);float16 float16_sub (float16 ,float16 ,float_status *status);float16 float16_mul (float16 ,float16 ,float_status *status);float16 float16_div (float16 ,float16 ,float_status *status); +float16 float16_muladd (float16 ,float16 ,float16 ,int ,float_status *status);float16 float16_sqrt (float16 ,float_status *status);int float16_eq (float16 ,float16 ,float_status *status);int float16_le (float16 ,float16 ,float_status *status);
@@ -679,6 +680,8 @@ float128 float128_sub(float128, float128, float_status *status);float128 float128_mul (float128 ,float128 ,float_status *status);float128 float128_div (float128 ,float128 ,float_status *status);float128 float128_rem (float128 ,float128 ,float_status *status); +float128 float128_muladd (float128 ,float128 ,float128 ,int , +float_status *status);float128 float128_sqrt (float128 ,float_status *status);int float128_eq (float128 ,float128 ,float_status *status);int float128_le (float128 ,float128 ,float_status *status);
fpu/floatxx.inc.c +68 -0
80 lines not on this page · raw message
fpu/softfloat.c +0 -473
485 lines not on this page · raw message
Signature · 1 line
2.14.3
PATCH 24/24 fpu: Implement round_to_int with soft-fp.h
In reply to Richard HendersonAdd float16 support. Remove float64_trunc_to_int as unused rather than recreating it within the new framework.
--- include/fpu/softfloat.h | 2 +- fpu/floatxx.inc.c | 75 ++++++++++++ fpu/softfloat.c | 311 ------------------------------------------------ 3 files changed, 76 insertions(+), 312 deletions(-)
include/fpu/softfloat.h +1 -1
@@ -246,6 +246,7 @@ float64 float16_to_float64(float16 a, bool ieee, float_status *status);| Software half-precision operations. *----------------------------------------------------------------------------*/ +float16 float16_round_to_int (float16 ,float_status *status);float16 float16_add (float16 ,float16 ,float_status *status);float16 float16_sub (float16 ,float16 ,float_status *status);float16 float16_mul (float16 ,float16 ,float_status *status);
@@ -463,7 +464,6 @@ float128 float64_to_float128(float64, float_status *status);| Software IEC/IEEE double-precision operations. *----------------------------------------------------------------------------*/ float64 float64_round_to_int (float64 ,float_status *status); -float64 float64_trunc_to_int (float64 ,float_status *status);float64 float64_add (float64 ,float64 ,float_status *status);float64 float64_sub (float64 ,float64 ,float_status *status);float64 float64_mul (float64 ,float64 ,float_status *status);
fpu/floatxx.inc.c +75 -0
84 lines not on this page · raw message
fpu/softfloat.c +0 -311
329 lines not on this page · raw message
Signature · 1 line
2.14.3
Quoted 21 lines · Richard Henderson
As discussed on list, the structure and inline function solution that Alex and I have been writing from scratch introduces a sizeable performance regression. Alex and I have done some work earlier in the week that improved things some, but not enough.
Which leaves us with a bit of a problem. The were two existing code bases that we originally considered:
There's softfloat v3, which would need a large structural reorg in order to be able to handle multiple
float_statuscontexts. But when Alex communicated with upstream they weren't ready to accept patches.Or there's the code from glibc. I know Peter didn't like the idea; debugging this code is fairly painful -- the massive preprocessor macros mean that you can't step through anything. But at least we have a good relationship with glibc, so merging patches back and forth should be easy.
The result seems to perform slightly better than mainline. With an aarch64 guest and a i7-8550U host, nbench gives
Quoted 8 lines
- FLOATING-POINT INDEX: 3.095
+ FLOATING-POINT INDEX: 3.438I've also run this through my usual set of aarch64 RISU tests.
Thoughts?
Hi,
Thanks for looking into this. It seems this code does not build on OSX Sierra nor while cross compiling for Windows on Fedora 27:
In file included from /Users/hsp/src/qemu-softfloatglibc/fpu/float16.c:20:
/Users/hsp/src/qemu-softfloatglibc/fpu/soft-fp.h:50:4: error:
"endianness not defined by sfp-machine.h"
# error "endianness not defined by sfp-machine.h"
Best,
Howard
Quoted 5 lines · Richard Henderson
Or there's the code from glibc. I know Peter didn't like the idea; debugging this code is fairly painful -- the massive preprocessor macros mean that you can't step through anything. But at least we have a good relationship with glibc, so merging patches back and forth should be easy.
Yeah. I didn't like dealing with this code two decades ago when I first encountered it, and it hasn't improved any. It's pretty much write-only code, and it isn't going to be any fun for debugging.
thanks
-- PMM
Quoted 8 lines · Peter Maydell
Quoted 5 lines · Richard Henderson
Or there's the code from glibc. I know Peter didn't like the idea; debugging this code is fairly painful -- the massive preprocessor macros mean that you can't step through anything. But at least we have a good relationship with glibc, so merging patches back and forth should be easy.
Quoted 4 lines
Yeah. I didn't like dealing with this code two decades ago when I first encountered it, and it hasn't improved any. It's pretty much write-only code, and it isn't going to be any fun for debugging.
I think I've managed to pull the performance back on softfloat-v4 thanks to the attribute(flatten) changes to addsub/div/mul/mulladd.
--
Alex Bennée
This series seems to have some coding style problems. See output below for more information:
Hi,
This series seems to have some coding style problems. See output below for more information:
Type: series
Message-id: [email protected]
Subject: [Qemu-devel] [PATCH 00/24] re-factor and add fp16 using glibc soft-fp
=== TEST SCRIPT BEGIN ===
#!/bin/bash
BASE=base
n=1
total=$(git log --oneline $BASE.. | wc -l)
failed=0
git config --local diff.renamelimit 0
git config --local diff.renames True
commits="$(git log --format=%H --reverse $BASE..)" for c in $commits; do
echo "Checking PATCH $n/$total: $(git log -n 1 --format=%s $c)..."
if ! git show $c --format=email | ./scripts/checkpatch.pl --mailback -; then
failed=1
echo
fi
n=$((n+1))done
exit $failed
=== TEST SCRIPT END ===
Updating 3c8cf5a9c21ff8782164d1def7f44bd888713384
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
fatal: The remote end hung up unexpectedly
error: Could not fetch 3c8cf5a9c21ff8782164d1def7f44bd888713384 Traceback (most recent call last):
File "/usr/bin/patchew", line 442, in test_one
git_clone_repo(clone, r["repo"], r["head"], logf)
File "/usr/bin/patchew", line 48, in git_clone_repo
stdout=logf, stderr=logf)
File "/usr/lib64/python3.6/subprocess.py", line 291, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['git', 'remote', 'add', '-f', '--mirror=fetch', '3c8cf5a9c21ff8782164d1def7f44bd888713384', 'https://github.com/patchew-project/qemu']' returned non-zero exit status 1.
---
Email generated automatically by Patchew [http://patchew.org/].
Please send your feedback to [email protected]
This series failed docker-mingw@fedora build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally.
Hi,
This series failed docker-mingw@fedora build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally.
Type: series
Message-id: [email protected]
Subject: [Qemu-devel] [PATCH 00/24] re-factor and add fp16 using glibc soft-fp
=== TEST SCRIPT BEGIN ===
#!/bin/bash
set -e
git submodule update --init dtc
# Let docker tests dump environment info
export SHOW_ENV=1
export J=8
time make docker-test-mingw@fedora
=== TEST SCRIPT END ===
Updating 3c8cf5a9c21ff8782164d1def7f44bd888713384
Switched to a new branch 'test'54bfdc61a5 fpu: Implement round_to_int with soft-fp.h cea1e682ca fpu: Implement muladd with soft-fp.h70b4528db0 fpu: Implement float_to_float with soft-fp.h b4c110b84f fpu: Implement scalbn with soft-fp.h5b30da2aa0 fpu: Implement sqrt with soft-fp.ha4e5a62d79 fpu: Implement min/max with soft-fp.h14c4d2bcdf fpu: Implement compares with soft-fp.hf54c32c68c fpu: Implement int/uint_to_float with soft-fp.h a8f491ad0e fpu: Implement float_to_int/uint with soft-fp.h 6d17d64dde fpu: Implement add/sub/mul/div with soft-fp.h 017e0c5da1 fpu/soft-fp: Adjust _FP_CMP_CHECK_NAN4017e90c32 fpu/soft-fp: Add arithmetic macros to half.h b60dd3e9a3 fpu/soft-fp: Add ties_away and to_odd rounding modes 207fb14412 fpu/soft-fp: Adjust soft-fp typesc319fb5b30 fpu/soft-fp: Import soft-fp from glibcc45db50d7c fpu/softfloat: improve comments on ARM NaN propagation 1e8300958f include/fpu/softfloat: add some float16 constants c1f9b7e53d include/fpu/softfloat: implement float16_set_sign helper b592870a92 include/fpu/softfloat: implement float16_chs helper 6044c4568a include/fpu/softfloat: implement float16_abs helper e08ee277b9 target/*/cpu.h: remove softfloat.h5e9ee7ddaa fpu/softfloat-types: new header to prevent excessive re-builds 7f1df09de5 include/fpu/softfloat: remove USE_SOFTFLOAT_STRUCT_TYPES ed6075583d fpu/softfloat: implement float16_squash_input_denormal
=== OUTPUT BEGIN ===
Submodule 'dtc' (git://git.qemu-project.org/dtc.git) registered for path 'dtc'
Cloning into '/var/tmp/patchew-tester-tmp-cgiev8vr/src/dtc'...
Submodule path 'dtc': checked out 'e54388015af1fb4bf04d0bca99caba1074d9cc42'
BUILD fedora
GEN /var/tmp/patchew-tester-tmp-cgiev8vr/src/docker-src.2018-02-08-16.06.27.17466/qemu.tar
Cloning into '/var/tmp/patchew-tester-tmp-cgiev8vr/src/docker-src.2018-02-08-16.06.27.17466/qemu.tar.vroot'... done.
Checking out files: 29% (1729/5796) Checking out files: 30% (1739/5796) Checking out files: 31% (1797/5796) Checking out files: 32% (1855/5796) Checking out files: 33% (1913/5796) Checking out files: 34% (1971/5796) Checking out files: 35% (2029/5796) Checking out files: 36% (2087/5796) Checking out files: 37% (2145/5796) Checking out files: 38% (2203/5796) Checking out files: 39% (2261/5796) Checking out files: 40% (2319/5796) Checking out files: 41% (2377/5796) Checking out files: 42% (2435/5796) Checking out files: 43% (2493/5796) Checking out files: 44% (2551/5796) Checking out files: 45% (2609/5796) Checking out files: 46% (2667/5796) Checking out files: 47% (2725/5796) Checking out files: 48% (2783/5796) Checking out files: 49% (2841/5796) Checking out files: 50% (2898/5796) Checking out files: 51% (2956/5796) Checking out files: 52% (3014/5796) Checking out files: 53% (3072/5796) Checking out files: 54% (3130/5796) Checking out files: 55% (3188/5796) Checking out files: 56% (3246/5796) Checking out files: 57% (3304/5796) Checking out files: 58% (3362/5796) Checking out files: 59% (3420/5796) Checking out files: 60% (3478/5796) Checking out files: 61% (3536/5796) Checking out files: 62% (3594/5796) Checking out files: 63% (3652/5796) Checking out files: 64% (3710/5796) Checking out files: 65% (3768/5796) Checking out files: 66% (3826/5796) Checking out files: 67% (3884/5796) Checking out files: 68% (3942/5796) Checking out files: 69% (4000/5796) Checking out files: 70% (4058/5796) Checking out files: 71% (4116/5796) Checking out files: 72% (4174/5796) Checking out files: 73% (4232/5796) Checking out files: 74% (4290/5796) Checking out files: 75% (4347/5796) Checking out files: 76% (4405/5796) Checking out files: 77% (4463/5796) Checking out files: 78% (4521/5796) Checking out files: 79% (4579/5796) Checking out files: 80% (4637/5796) Checking out files: 81% (4695/5796) Checking out files: 82% (4753/5796) Checking out files: 83% (4811/5796) Checking out files: 84% (4869/5796) Checking out files: 85% (4927/5796) Checking out files: 86% (4985/5796) Checking out files: 87% (5043/5796) Checking out files: 88% (5101/5796) Checking out files: 89% (5159/5796) Checking out files: 90% (5217/5796) Checking out files: 91% (5275/5796) Checking out files: 92% (5333/5796) Checking out files: 93% (5391/5796) Checking out files: 94% (5449/5796) Checking out files: 95% (5507/5796) Checking out files: 96% (5565/5796) Checking out files: 97% (5623/5796) Checking out files: 98% (5681/5796) Checking out files: 99% (5739/5796) Checking out files: 100% (5796/5796) Checking out files: 100% (5796/5796), done.
Your branch is up-to-date with 'origin/test'.
Submodule 'dtc' (git://git.qemu-project.org/dtc.git) registered for path 'dtc'
Cloning into '/var/tmp/patchew-tester-tmp-cgiev8vr/src/docker-src.2018-02-08-16.06.27.17466/qemu.tar.vroot/dtc'... Submodule path 'dtc': checked out 'e54388015af1fb4bf04d0bca99caba1074d9cc42'
Submodule 'ui/keycodemapdb' (git://git.qemu.org/keycodemapdb.git) registered for path 'ui/keycodemapdb' Cloning into '/var/tmp/patchew-tester-tmp-cgiev8vr/src/docker-src.2018-02-08-16.06.27.17466/qemu.tar.vroot/ui/keycodemapdb'... Submodule path 'ui/keycodemapdb': checked out '10739aa26051a5d49d88132604539d3ed085e72e'
COPY RUNNER
RUN test-mingw in qemu:fedora
Packages installed:
PyYAML-3.11-13.fc25.x86_64
SDL-devel-1.2.15-21.fc24.x86_64
bc-1.06.95-16.fc24.x86_64
bison-3.0.4-4.fc24.x86_64
bzip2-1.0.6-21.fc25.x86_64
ccache-3.3.4-1.fc25.x86_64
clang-3.9.1-2.fc25.x86_64
findutils-4.6.0-8.fc25.x86_64
flex-2.6.0-3.fc25.x86_64
gcc-6.4.1-1.fc25.x86_64
gcc-c++-6.4.1-1.fc25.x86_64
gettext-0.19.8.1-3.fc25.x86_64
git-2.9.5-3.fc25.x86_64
glib2-devel-2.50.3-1.fc25.x86_64
hostname-3.15-8.fc25.x86_64
libaio-devel-0.3.110-6.fc24.x86_64
libasan-6.4.1-1.fc25.x86_64
libfdt-devel-1.4.2-1.fc25.x86_64
libubsan-6.4.1-1.fc25.x86_64
make-4.1-6.fc25.x86_64
mingw32-SDL-1.2.15-7.fc24.noarch
mingw32-bzip2-1.0.6-7.fc24.noarch
mingw32-curl-7.47.0-1.fc24.noarch
mingw32-glib2-2.50.3-1.fc25.noarch
mingw32-gmp-6.1.1-1.fc25.noarch
mingw32-gnutls-3.5.5-2.fc25.noarch
mingw32-gtk2-2.24.31-2.fc25.noarch
mingw32-gtk3-3.22.17-1.fc25.noarch
mingw32-libjpeg-turbo-1.5.1-1.fc25.noarch
mingw32-libpng-1.6.27-1.fc25.noarch
mingw32-libssh2-1.4.3-5.fc24.noarch
mingw32-libtasn1-4.9-1.fc25.noarch
mingw32-nettle-3.3-1.fc25.noarch
mingw32-pixman-0.34.0-1.fc25.noarch
mingw32-pkg-config-0.28-6.fc24.x86_64
mingw64-SDL-1.2.15-7.fc24.noarch
mingw64-bzip2-1.0.6-7.fc24.noarch
mingw64-curl-7.47.0-1.fc24.noarch
mingw64-glib2-2.50.3-1.fc25.noarch
mingw64-gmp-6.1.1-1.fc25.noarch
mingw64-gnutls-3.5.5-2.fc25.noarch
mingw64-gtk2-2.24.31-2.fc25.noarch
mingw64-gtk3-3.22.17-1.fc25.noarch
mingw64-libjpeg-turbo-1.5.1-1.fc25.noarch
mingw64-libpng-1.6.27-1.fc25.noarch
mingw64-libssh2-1.4.3-5.fc24.noarch
mingw64-libtasn1-4.9-1.fc25.noarch
mingw64-nettle-3.3-1.fc25.noarch
mingw64-pixman-0.34.0-1.fc25.noarch
mingw64-pkg-config-0.28-6.fc24.x86_64
nettle-devel-3.3-1.fc25.x86_64
package python2 is not installed
perl-5.24.3-389.fc25.x86_64
pixman-devel-0.34.0-2.fc24.x86_64
sparse-0.5.0-10.fc25.x86_64
tar-1.29-3.fc25.x86_64
which-2.21-1.fc25.x86_64
zlib-devel-1.2.8-10.fc24.x86_64
Environment variables:
PACKAGES=ccache gettext git tar PyYAML sparse flex bison python2 bzip2 hostname glib2-devel pixman-devel zlib-devel SDL-devel libfdt-devel gcc gcc-c++ clang make perl which bc findutils libaio-devel nettle-devel libasan libubsan mingw32-pixman mingw32-glib2 mingw32-gmp mingw32-SDL mingw32-pkg-config mingw32-gtk2 mingw32-gtk3 mingw32-gnutls mingw32-nettle mingw32-libtasn1 mingw32-libjpeg-turbo mingw32-libpng mingw32-curl mingw32-libssh2 mingw32-bzip2 mingw64-pixman mingw64-glib2 mingw64-gmp mingw64-SDL mingw64-pkg-config mingw64-gtk2 mingw64-gtk3 mingw64-gnutls mingw64-nettle mingw64-libtasn1 mingw64-libjpeg-turbo mingw64-libpng mingw64-curl mingw64-libssh2 mingw64-bzip2
HOSTNAME=8679f613d69d
MAKEFLAGS= -j8
J=8
CCACHE_DIR=/var/tmp/ccache
EXTRA_CONFIGURE_OPTS=
V=
SHOW_ENV=1 PATH=/usr/lib/ccache:/usr/lib64/ccache:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin PWD=/
TARGET_LIST=
FGC=f25
SHLVL=1
HOME=/root
TEST_DIR=/tmp/qemu-test
DISTTAG=f25container
FEATURES=mingw clang pyyaml asan dtc
DEBUG=
_=/usr/bin/env
Configure options:
--enable-werror --target-list=x86_64-softmmu,aarch64-softmmu --prefix=/tmp/qemu-test/install --cross-prefix=x86_64-w64-mingw32- --enable-trace-backends=simple --enable-gnutls --enable-nettle --enable-curl --enable-vnc --enable-bzip2 --enable-guest-agent --with-sdlabi=1.2 --with-gtkabi=2.0
Install prefix /tmp/qemu-test/install BIOS directory /tmp/qemu-test/install firmware path /tmp/qemu-test/install/share/qemu-firmware binary directory /tmp/qemu-test/install
library directory /tmp/qemu-test/install/lib
module directory /tmp/qemu-test/install/lib
libexec directory /tmp/qemu-test/install/libexec
include directory /tmp/qemu-test/install/include
config directory /tmp/qemu-test/install
local state directory queried at runtime
Windows SDK no Source path /tmp/qemu-test/src GIT binary git GIT submodules C compiler x86_64-w64-mingw32-gcc Host C compiler cc C++ compiler x86_64-w64-mingw32-g++ Objective-C compiler clang ARFLAGS rv CFLAGS -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -g QEMU_CFLAGS -I/usr/x86_64-w64-mingw32/sys-root/mingw/include/pixman-1 -I$(SRC_PATH)/dtc/libfdt -Werror -mms-bitfields -I/usr/x86_64-w64-mingw32/sys-root/mingw/include/glib-2.0 -I/usr/x86_64-w64-mingw32/sys-root/mingw/lib/glib-2.0/include -I/usr/x86_64-w64-mingw32/sys-root/mingw/include -m64 -mcx16 -mthreads -D__USE_MINGW_ANSI_STDIO=1 -DWIN32_LEAN_AND_MEAN -DWINVER=0x501 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fno-common -fwrapv -Wendif-labels -Wno-shift-negative-value -Wno-missing-include-dirs -Wempty-body -Wnested-externs -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wold-style-declaration -Wold-style-definition -Wtype-limits -fstack-protector-strong -I/usr/x86_64-w64-mingw32/sys-root/mingw/include -I/usr/x86_64-w64-mingw32/sys-root/mingw/include/p11-kit-1 -I/usr/x86_64-w64-mingw32/sys-root/mingw/include -I/usr/x86_64-w64-mingw32/sys-root/mingw/include -I/usr/x86_64-w64-mingw32/sys-root/mingw/include/libpng16 LDFLAGS -Wl,--nxcompat -Wl,--no-seh -Wl,--dynamicbase -Wl,--warn-common -m64 -g make make install install python python -B smbd /usr/sbin/smbd module support no host CPU x86_64 host big endian no target list x86_64-softmmu aarch64-softmmu gprof enabled no sparse enabled no strip binaries yes profiler no static build no SDL support yes (1.2.15) GTK support yes (2.24.31) GTK GL support no VTE support no TLS priority NORMAL GNUTLS support yes GNUTLS rnd yes libgcrypt no libgcrypt kdf no nettle yes (3.3) nettle kdf yes libtasn1 yes curses support no virgl support no curl support yes mingw32 support yes Audio drivers dsound
Block whitelist (rw)
Block whitelist (ro)
VirtFS support no
Multipath support no
VNC support yes VNC SASL support no VNC JPEG support yes VNC PNG support yes xen support no brlapi support no bluez support no Documentation no PIE no vde support no netmap support no Linux AIO support no ATTR/XATTR support no Install blobs yes KVM support no HAX support yes HVF support no TCG support yes TCG debug enabled no TCG interpreter no malloc trim support no RDMA support no fdt support yes preadv support no fdatasync no madvise no posix_madvise no
libcap-ng support no
vhost-net support no
vhost-scsi support no
vhost-vsock support no
vhost-user support no
Trace backends simple
Trace output file trace-<pid>
spice support no rbd support no xfsctl support no smartcard support no libusb no usb net redir no OpenGL support no OpenGL dmabufs no libiscsi support no libnfs support no
build guest agent yes
QGA VSS support no
QGA w32 disk info yes
QGA MSI support no
seccomp support no
coroutine backend win32
coroutine pool yes
debug stack usage no
crypto afalg no
GlusterFS support no
gcov gcov gcov enabled no TPM support yes libssh2 support yes TPM passthrough no TPM emulator no QOM debugging yes Live block migration yes lzo support no snappy support no bzip2 support yes NUMA host support no libxml2 no tcmalloc support no jemalloc support no
avx2 optimization yes
replication support yes
VxHS block device no
capstone no
WARNING: Use of GTK 2.0 is deprecated and will be removed in
WARNING: future releases. Please switch to using GTK 3.0
WARNING: Use of SDL 1.2 is deprecated and will be removed in
WARNING: future releases. Please switch to using SDL 2.0
GEN x86_64-softmmu/config-devices.mak.tmp GEN aarch64-softmmu/config-devices.mak.tmp GEN config-host.h GEN qapi-visit.h GEN qemu-options.def GEN qapi-types.h GEN qmp-commands.h GEN qapi-event.h GEN qmp-marshal.c GEN x86_64-softmmu/config-devices.mak GEN aarch64-softmmu/config-devices.mak GEN qapi-types.c GEN qapi-visit.c GEN qapi-event.c GEN qmp-introspect.h GEN qmp-introspect.c GEN trace/generated-tcg-tracers.h GEN trace/generated-helpers-wrappers.h GEN trace/generated-helpers.h GEN trace/generated-helpers.c GEN module_block.h GEN ui/input-keymap-atset1-to-qcode.c GEN ui/input-keymap-linux-to-qcode.c GEN ui/input-keymap-qcode-to-atset1.c GEN ui/input-keymap-qcode-to-atset2.c GEN ui/input-keymap-qcode-to-atset3.c GEN ui/input-keymap-qcode-to-linux.c GEN ui/input-keymap-qcode-to-qnum.c GEN ui/input-keymap-qcode-to-sun.c GEN ui/input-keymap-qnum-to-qcode.c GEN ui/input-keymap-usb-to-qcode.c GEN ui/input-keymap-win32-to-qcode.c GEN ui/input-keymap-x11-to-qcode.c GEN ui/input-keymap-xorgevdev-to-qcode.c GEN ui/input-keymap-xorgkbd-to-qcode.c GEN ui/input-keymap-xorgxquartz-to-qcode.c GEN ui/input-keymap-xorgxwin-to-qcode.c GEN tests/test-qapi-types.h GEN tests/test-qapi-visit.h GEN tests/test-qmp-commands.h GEN tests/test-qapi-event.h GEN tests/test-qmp-introspect.h GEN trace-root.h GEN util/trace.h GEN crypto/trace.h GEN io/trace.h GEN migration/trace.h GEN block/trace.h GEN chardev/trace.h GEN hw/block/trace.h GEN hw/block/dataplane/trace.h GEN hw/char/trace.h GEN hw/intc/trace.h GEN hw/net/trace.h GEN hw/virtio/trace.h GEN hw/audio/trace.h GEN hw/misc/trace.h GEN hw/usb/trace.h GEN hw/scsi/trace.h GEN hw/nvram/trace.h GEN hw/display/trace.h GEN hw/input/trace.h GEN hw/timer/trace.h GEN hw/dma/trace.h GEN hw/sparc/trace.h GEN hw/sparc64/trace.h GEN hw/sd/trace.h GEN hw/isa/trace.h GEN hw/mem/trace.h GEN hw/i386/trace.h GEN hw/i386/xen/trace.h GEN hw/9pfs/trace.h GEN hw/ppc/trace.h GEN hw/pci/trace.h GEN hw/pci-host/trace.h GEN hw/s390x/trace.h GEN hw/vfio/trace.h GEN hw/acpi/trace.h GEN hw/arm/trace.h GEN hw/alpha/trace.h GEN hw/hppa/trace.h GEN hw/xen/trace.h GEN hw/ide/trace.h GEN ui/trace.h GEN audio/trace.h GEN net/trace.h GEN target/i386/trace.h GEN target/arm/trace.h GEN target/mips/trace.h GEN target/sparc/trace.h GEN target/s390x/trace.h GEN target/ppc/trace.h GEN qom/trace.h GEN linux-user/trace.h GEN qapi/trace.h GEN accel/tcg/trace.h GEN accel/kvm/trace.h GEN nbd/trace.h GEN scsi/trace.h GEN trace-root.c GEN util/trace.c GEN crypto/trace.c GEN io/trace.c GEN migration/trace.c GEN block/trace.c GEN chardev/trace.c GEN hw/block/trace.c GEN hw/block/dataplane/trace.c GEN hw/char/trace.c GEN hw/intc/trace.c GEN hw/net/trace.c GEN hw/virtio/trace.c GEN hw/audio/trace.c GEN hw/misc/trace.c GEN hw/usb/trace.c GEN hw/scsi/trace.c GEN hw/nvram/trace.c GEN hw/display/trace.c GEN hw/input/trace.c GEN hw/timer/trace.c GEN hw/dma/trace.c GEN hw/sparc/trace.c GEN hw/sparc64/trace.c GEN hw/sd/trace.c GEN hw/isa/trace.c GEN hw/mem/trace.c GEN hw/i386/trace.c GEN hw/i386/xen/trace.c GEN hw/9pfs/trace.c GEN hw/ppc/trace.c GEN hw/pci/trace.c GEN hw/pci-host/trace.c GEN hw/s390x/trace.c GEN hw/vfio/trace.c GEN hw/acpi/trace.c GEN hw/arm/trace.c GEN hw/alpha/trace.c GEN hw/hppa/trace.c GEN hw/xen/trace.c GEN hw/ide/trace.c GEN ui/trace.c GEN audio/trace.c GEN net/trace.c GEN target/arm/trace.c GEN target/i386/trace.c GEN target/mips/trace.c GEN target/sparc/trace.c GEN target/s390x/trace.c GEN target/ppc/trace.c GEN qom/trace.c GEN linux-user/trace.c GEN qapi/trace.c GEN accel/tcg/trace.c GEN accel/kvm/trace.c GEN nbd/trace.c GEN scsi/trace.c GEN config-all-devices.mak
DEP /tmp/qemu-test/src/dtc/tests/trees.S
DEP /tmp/qemu-test/src/dtc/tests/dumptrees.c
DEP /tmp/qemu-test/src/dtc/tests/testutils.c
DEP /tmp/qemu-test/src/dtc/tests/value-labels.c DEP /tmp/qemu-test/src/dtc/tests/asm_tree_dump.c DEP /tmp/qemu-test/src/dtc/tests/truncated_property.c DEP /tmp/qemu-test/src/dtc/tests/check_path.c
DEP /tmp/qemu-test/src/dtc/tests/overlay_bad_fixup.c DEP /tmp/qemu-test/src/dtc/tests/overlay.c
DEP /tmp/qemu-test/src/dtc/tests/subnode_iterate.c DEP /tmp/qemu-test/src/dtc/tests/property_iterate.c DEP /tmp/qemu-test/src/dtc/tests/integer-expressions.c DEP /tmp/qemu-test/src/dtc/tests/path_offset_aliases.c DEP /tmp/qemu-test/src/dtc/tests/utilfdt_test.c DEP /tmp/qemu-test/src/dtc/tests/add_subnode_with_nops.c DEP /tmp/qemu-test/src/dtc/tests/dtbs_equal_unordered.c DEP /tmp/qemu-test/src/dtc/tests/dtbs_equal_ordered.c DEP /tmp/qemu-test/src/dtc/tests/dtb_reverse.c DEP /tmp/qemu-test/src/dtc/tests/extra-terminating-null.c DEP /tmp/qemu-test/src/dtc/tests/boot-cpuid.c
DEP /tmp/qemu-test/src/dtc/tests/phandle_format.c DEP /tmp/qemu-test/src/dtc/tests/path-references.c DEP /tmp/qemu-test/src/dtc/tests/incbin.c
DEP /tmp/qemu-test/src/dtc/tests/string_escapes.c DEP /tmp/qemu-test/src/dtc/tests/propname_escapes.c DEP /tmp/qemu-test/src/dtc/tests/references.c
DEP /tmp/qemu-test/src/dtc/tests/appendprop1.c DEP /tmp/qemu-test/src/dtc/tests/appendprop2.c DEP /tmp/qemu-test/src/dtc/tests/del_node.c
DEP /tmp/qemu-test/src/dtc/tests/del_property.c DEP /tmp/qemu-test/src/dtc/tests/setprop.c
DEP /tmp/qemu-test/src/dtc/tests/set_name.c
DEP /tmp/qemu-test/src/dtc/tests/open_pack.c
DEP /tmp/qemu-test/src/dtc/tests/nopulate.c
DEP /tmp/qemu-test/src/dtc/tests/rw_tree1.c
DEP /tmp/qemu-test/src/dtc/tests/mangle-layout.c DEP /tmp/qemu-test/src/dtc/tests/move_and_save.c DEP /tmp/qemu-test/src/dtc/tests/sw_tree1.c
DEP /tmp/qemu-test/src/dtc/tests/nop_node.c
DEP /tmp/qemu-test/src/dtc/tests/nop_property.c DEP /tmp/qemu-test/src/dtc/tests/setprop_inplace.c DEP /tmp/qemu-test/src/dtc/tests/stringlist.c
DEP /tmp/qemu-test/src/dtc/tests/notfound.c
DEP /tmp/qemu-test/src/dtc/tests/addr_size_cells.c DEP /tmp/qemu-test/src/dtc/tests/sized_cells.c DEP /tmp/qemu-test/src/dtc/tests/char_literal.c DEP /tmp/qemu-test/src/dtc/tests/get_alias.c
DEP /tmp/qemu-test/src/dtc/tests/node_offset_by_compatible.c DEP /tmp/qemu-test/src/dtc/tests/node_check_compatible.c DEP /tmp/qemu-test/src/dtc/tests/node_offset_by_phandle.c DEP /tmp/qemu-test/src/dtc/tests/node_offset_by_prop_value.c DEP /tmp/qemu-test/src/dtc/tests/parent_offset.c DEP /tmp/qemu-test/src/dtc/tests/supernode_atdepth_offset.c DEP /tmp/qemu-test/src/dtc/tests/get_path.c
DEP /tmp/qemu-test/src/dtc/tests/get_phandle.c DEP /tmp/qemu-test/src/dtc/tests/getprop.c
DEP /tmp/qemu-test/src/dtc/tests/get_name.c
DEP /tmp/qemu-test/src/dtc/tests/path_offset.c DEP /tmp/qemu-test/src/dtc/tests/subnode_offset.c DEP /tmp/qemu-test/src/dtc/tests/root_node.c
DEP /tmp/qemu-test/src/dtc/tests/find_property.c DEP /tmp/qemu-test/src/dtc/tests/get_mem_rsv.c DEP /tmp/qemu-test/src/dtc/libfdt/fdt_overlay.c DEP /tmp/qemu-test/src/dtc/libfdt/fdt_addresses.c DEP /tmp/qemu-test/src/dtc/libfdt/fdt_empty_tree.c DEP /tmp/qemu-test/src/dtc/libfdt/fdt_strerror.c DEP /tmp/qemu-test/src/dtc/libfdt/fdt_rw.c
DEP /tmp/qemu-test/src/dtc/libfdt/fdt_sw.c
DEP /tmp/qemu-test/src/dtc/libfdt/fdt_ro.c
DEP /tmp/qemu-test/src/dtc/libfdt/fdt_wip.c
DEP /tmp/qemu-test/src/dtc/libfdt/fdt.c
DEP /tmp/qemu-test/src/dtc/util.c
DEP /tmp/qemu-test/src/dtc/fdtoverlay.c
DEP /tmp/qemu-test/src/dtc/fdtput.c
DEP /tmp/qemu-test/src/dtc/fdtget.c
DEP /tmp/qemu-test/src/dtc/fdtdump.c
LEX convert-dtsv0-lexer.lex.c
DEP /tmp/qemu-test/src/dtc/srcpos.c
BISON dtc-parser.tab.c
LEX dtc-lexer.lex.c
DEP /tmp/qemu-test/src/dtc/livetree.c
DEP /tmp/qemu-test/src/dtc/treesource.c
DEP /tmp/qemu-test/src/dtc/fstree.c
DEP /tmp/qemu-test/src/dtc/flattree.c
DEP /tmp/qemu-test/src/dtc/dtc.c
DEP /tmp/qemu-test/src/dtc/data.c
DEP /tmp/qemu-test/src/dtc/checks.c
DEP convert-dtsv0-lexer.lex.c
DEP dtc-parser.tab.c
DEP dtc-lexer.lex.c
CHK version_gen.h
UPD version_gen.h
DEP /tmp/qemu-test/src/dtc/util.c
CC libfdt/fdt.o
CC libfdt/fdt_ro.o
CC libfdt/fdt_wip.o
CC libfdt/fdt_rw.o
CC libfdt/fdt_strerror.o
CC libfdt/fdt_empty_tree.o
CC libfdt/fdt_addresses.o
CC libfdt/fdt_sw.o
CC libfdt/fdt_overlay.o
AR libfdt/libfdt.a
x86_64-w64-mingw32-ar: creating libfdt/libfdt.a
a - libfdt/fdt.o
a - libfdt/fdt_ro.o
a - libfdt/fdt_wip.o
a - libfdt/fdt_sw.o
a - libfdt/fdt_rw.o
a - libfdt/fdt_strerror.o
a - libfdt/fdt_empty_tree.o
a - libfdt/fdt_addresses.o
a - libfdt/fdt_overlay.o
RC version.o
GEN qga/qapi-generated/qga-qapi-types.h
GEN qga/qapi-generated/qga-qapi-visit.h
GEN qga/qapi-generated/qga-qmp-commands.h
GEN qga/qapi-generated/qga-qmp-marshal.c
CC qmp-introspect.o
CC qapi-types.o
GEN qga/qapi-generated/qga-qapi-types.c
GEN qga/qapi-generated/qga-qapi-visit.c
CC qapi-visit.o
CC qapi/qapi-visit-core.o
CC qapi/qapi-dealloc-visitor.o
CC qapi-event.o
CC qapi/qobject-input-visitor.o
CC qapi/qobject-output-visitor.o
CC qapi/qmp-registry.o
CC qapi/qmp-dispatch.o
CC qapi/string-input-visitor.o
CC qapi/string-output-visitor.o
CC qapi/opts-visitor.o
CC qapi/qapi-clone-visitor.o
CC qapi/qmp-event.o
CC qapi/qapi-util.o
CC qobject/qnull.o
CC qobject/qnum.o
CC qobject/qstring.o
CC qobject/qdict.o
CC qobject/qlist.o
CC qobject/qbool.o
CC qobject/qlit.o
CC qobject/qjson.o
CC qobject/qobject.o
CC qobject/json-lexer.o
CC qobject/json-streamer.o
CC qobject/json-parser.o
CC trace/simple.o
CC trace/control.o
CC trace/qmp.o
CC util/osdep.o
CC util/cutils.o
CC util/unicode.o
CC util/qemu-timer-common.o
CC util/bufferiszero.o
CC util/lockcnt.o
CC util/aiocb.o
CC util/async.o
CC util/thread-pool.o
CC util/qemu-timer.o
CC util/main-loop.o
CC util/iohandler.o
CC util/aio-win32.o
CC util/event_notifier-win32.o
CC util/oslib-win32.o
CC util/qemu-thread-win32.o
CC util/envlist.o
CC util/path.o
CC util/module.o
CC util/host-utils.o
CC util/bitmap.o
CC util/bitops.o
CC util/hbitmap.o
CC util/fifo8.o
CC util/acl.o
CC util/cacheinfo.o
CC util/error.o
CC util/qemu-error.o
CC util/id.o
CC util/iov.o
CC util/qemu-config.o
CC util/qemu-sockets.o
CC util/uri.o
CC util/notify.o
CC util/qemu-progress.o
CC util/qemu-option.o
CC util/keyval.o
CC util/hexdump.o
CC util/crc32c.o
CC util/uuid.o
CC util/throttle.o
CC util/getauxval.o
CC util/readline.o
CC util/rcu.o
CC util/qemu-coroutine.o
CC util/qemu-coroutine-lock.o
CC util/qemu-coroutine-io.o
CC util/qemu-coroutine-sleep.o
CC util/coroutine-win32.o
CC util/buffer.o
CC util/timed-average.o
CC util/base64.o
CC util/log.o
CC util/pagesize.o
CC util/qdist.o
CC util/qht.o
CC util/range.o
CC util/stats64.o
CC util/systemd.o
CC trace-root.o
CC util/trace.o
CC crypto/trace.o
CC io/trace.o
CC migration/trace.o
CC block/trace.o
CC chardev/trace.o
CC hw/block/trace.o
CC hw/block/dataplane/trace.o
CC hw/char/trace.o
CC hw/intc/trace.o
CC hw/net/trace.o
CC hw/virtio/trace.o
CC hw/audio/trace.o
CC hw/misc/trace.o
CC hw/usb/trace.o
CC hw/scsi/trace.o
CC hw/nvram/trace.o
CC hw/display/trace.o
CC hw/input/trace.o
CC hw/timer/trace.o
CC hw/dma/trace.o
CC hw/sparc/trace.o
CC hw/sparc64/trace.o
CC hw/sd/trace.o
CC hw/isa/trace.o
CC hw/mem/trace.o
CC hw/i386/trace.o
CC hw/i386/xen/trace.o
CC hw/9pfs/trace.o
CC hw/ppc/trace.o
CC hw/pci/trace.o
CC hw/pci-host/trace.o
CC hw/s390x/trace.o
CC hw/vfio/trace.o
CC hw/acpi/trace.o
CC hw/arm/trace.o
CC hw/alpha/trace.o
CC hw/hppa/trace.o
CC hw/xen/trace.o
CC hw/ide/trace.o
CC ui/trace.o
CC audio/trace.o
CC net/trace.o
CC target/arm/trace.o
CC target/i386/trace.o
CC target/mips/trace.o
CC target/sparc/trace.o
CC target/s390x/trace.o
CC target/ppc/trace.o
CC qom/trace.o
CC linux-user/trace.o
CC qapi/trace.o
CC accel/tcg/trace.o
CC accel/kvm/trace.o
CC nbd/trace.o
CC scsi/trace.o
CC crypto/pbkdf-stub.o
CC stubs/arch-query-cpu-def.o
CC stubs/arch-query-cpu-model-expansion.o
CC stubs/arch-query-cpu-model-comparison.o
CC stubs/arch-query-cpu-model-baseline.o
CC stubs/bdrv-next-monitor-owned.o
CC stubs/blk-commit-all.o
CC stubs/blockdev-close-all-bdrv-states.o
CC stubs/clock-warp.o
CC stubs/cpu-get-clock.o
CC stubs/cpu-get-icount.o
CC stubs/dump.o
CC stubs/error-printf.o
CC stubs/fdset.o
CC stubs/gdbstub.o
CC stubs/get-vm-name.o
CC stubs/iothread.o
CC stubs/iothread-lock.o
CC stubs/is-daemonized.o
CC stubs/machine-init-done.o
CC stubs/migr-blocker.o
CC stubs/change-state-handler.o
CC stubs/monitor.o
CC stubs/notify-event.o
CC stubs/qtest.o
CC stubs/replay.o
CC stubs/runstate-check.o
CC stubs/set-fd-handler.o
CC stubs/slirp.o
CC stubs/sysbus.o
CC stubs/tpm.o
CC stubs/trace-control.o
CC stubs/uuid.o
CC stubs/vm-stop.o
CC stubs/vmstate.o
CC stubs/fd-register.o
CC stubs/qmp_pc_dimm.o
CC stubs/target-monitor-defs.o
CC stubs/target-get-monitor-def.o
CC stubs/pc_madt_cpu_entry.o
CC stubs/vmgenid.o
CC stubs/xen-common.o
CC stubs/xen-hvm.o
CC stubs/pci-host-piix.o
GEN qemu-img-cmds.h
CC block.o
CC blockjob.o
CC qemu-io-cmds.o
CC replication.o
CC block/raw-format.o
CC block/qcow.o
CC block/vdi.o
CC block/vmdk.o
CC block/cloop.o
CC block/bochs.o
CC block/vpc.o
CC block/vvfat.o
CC block/dmg.o
CC block/qcow2.o
CC block/qcow2-refcount.o
CC block/qcow2-cluster.o
CC block/qcow2-snapshot.o
CC block/qcow2-cache.o
CC block/qcow2-bitmap.o
CC block/qed.o
CC block/qed-l2-cache.o
CC block/qed-table.o
CC block/qed-cluster.o
CC block/qed-check.o
CC block/vhdx.o
CC block/vhdx-endian.o
CC block/vhdx-log.o
CC block/quorum.o
CC block/parallels.o
CC block/blkdebug.o
CC block/blkverify.o
CC block/blkreplay.o
CC block/block-backend.o
CC block/snapshot.o
CC block/qapi.o
CC block/file-win32.o
CC block/win32-aio.o
CC block/null.o
CC block/mirror.o
CC block/commit.o
CC block/io.o
CC block/throttle-groups.o
CC block/nbd.o
CC block/nbd-client.o
CC block/sheepdog.o
CC block/accounting.o
CC block/dirty-bitmap.o
CC block/write-threshold.o
CC block/backup.o
CC block/replication.o
CC block/throttle.o
CC block/crypto.o
CC nbd/server.o
CC nbd/client.o
CC nbd/common.o
CC scsi/utils.o
CC block/curl.o
CC block/ssh.o
CC block/dmg-bz2.o
CC crypto/init.o
CC crypto/hash.o
CC crypto/hash-nettle.o
CC crypto/hmac.o
CC crypto/hmac-nettle.o
CC crypto/aes.o
CC crypto/desrfb.o
CC crypto/cipher.o
CC crypto/tlscreds.o
CC crypto/tlscredsanon.o
CC crypto/tlscredsx509.o
CC crypto/tlssession.o
CC crypto/secret.o
CC crypto/random-gnutls.o
CC crypto/pbkdf.o
CC crypto/pbkdf-nettle.o
CC crypto/ivgen.o
CC crypto/ivgen-essiv.o
CC crypto/ivgen-plain.o
CC crypto/ivgen-plain64.o
CC crypto/afsplit.o
CC crypto/xts.o
CC crypto/block.o
CC crypto/block-qcow.o
CC crypto/block-luks.o
CC io/channel.o
CC io/channel-buffer.o
CC io/channel-command.o
CC io/channel-file.o
CC io/channel-socket.o
CC io/channel-tls.o
CC io/channel-watch.o
CC io/channel-util.o
CC io/channel-websock.o
CC io/dns-resolver.o
CC io/net-listener.o
CC io/task.o
CC qom/object.o
CC qom/container.o
CC qom/qom-qobject.o
CC qom/object_interfaces.o
CC qemu-io.o
CC blockdev.o
CC blockdev-nbd.o
CC bootdevice.o
CC iothread.o
CC qdev-monitor.o
CC device-hotplug.o
CC os-win32.o
CC bt-host.o
CC bt-vhci.o
CC dma-helpers.o
CC vl.o
CC tpm.o
CC device_tree.o
CC qmp-marshal.o
CC qmp.o
CC hmp.o
CC cpus-common.o
CC audio/audio.o
CC audio/noaudio.o
CC audio/wavaudio.o
CC audio/mixeng.o
CC audio/sdlaudio.o
CC audio/dsoundaudio.o
CC audio/audio_win_int.o
CC audio/wavcapture.o
CC backends/rng.o
CC backends/rng-egd.o
CC backends/tpm.o
CC backends/hostmem.o
CC backends/hostmem-ram.o
CC backends/cryptodev.o
CC backends/cryptodev-builtin.o
CC block/stream.o
CC chardev/msmouse.o
CC chardev/wctablet.o
CC chardev/testdev.o
CC disas/arm.o
CXX disas/arm-a64.o
CC disas/i386.o
CXX disas/libvixl/vixl/utils.o
CXX disas/libvixl/vixl/compiler-intrinsics.o
CXX disas/libvixl/vixl/a64/instructions-a64.o
CXX disas/libvixl/vixl/a64/decoder-a64.o
CXX disas/libvixl/vixl/a64/disasm-a64.o
CC hw/acpi/core.o
CC hw/acpi/piix4.o
CC hw/acpi/pcihp.o
CC hw/acpi/ich9.o
CC hw/acpi/tco.o
CC hw/acpi/cpu_hotplug.o
CC hw/acpi/memory_hotplug.o
CC hw/acpi/cpu.o
CC hw/acpi/nvdimm.o
CC hw/acpi/vmgenid.o
CC hw/acpi/acpi_interface.o
CC hw/acpi/aml-build.o
CC hw/acpi/bios-linker-loader.o
CC hw/acpi/ipmi.o
CC hw/acpi/acpi-stub.o
CC hw/acpi/ipmi-stub.o
CC hw/audio/sb16.o
CC hw/audio/es1370.o
CC hw/audio/ac97.o
CC hw/audio/fmopl.o
CC hw/audio/gus.o
CC hw/audio/adlib.o
CC hw/audio/gusemu_hal.o
CC hw/audio/gusemu_mixer.o
CC hw/audio/cs4231a.o
CC hw/audio/intel-hda.o
CC hw/audio/hda-codec.o
CC hw/audio/pcspk.o
CC hw/audio/wm8750.o
CC hw/audio/pl041.o
CC hw/audio/lm4549.o
CC hw/audio/marvell_88w8618.o
CC hw/audio/soundhw.o
CC hw/block/block.o
CC hw/block/cdrom.o
CC hw/block/hd-geometry.o
CC hw/block/fdc.o
CC hw/block/m25p80.o
CC hw/block/nand.o
CC hw/block/pflash_cfi01.o
CC hw/block/pflash_cfi02.o
CC hw/block/ecc.o
CC hw/block/onenand.o
CC hw/block/nvme.o
CC hw/bt/core.o
CC hw/bt/l2cap.o
CC hw/bt/sdp.o
CC hw/bt/hci.o
CC hw/bt/hid.o
CC hw/bt/hci-csr.o
CC hw/char/ipoctal232.o
CC hw/char/parallel.o
CC hw/char/pl011.o
CC hw/char/serial.o
CC hw/char/serial-isa.o
CC hw/char/serial-pci.o
CC hw/char/virtio-console.o
CC hw/char/cadence_uart.o
CC hw/char/cmsdk-apb-uart.o
CC hw/char/debugcon.o
CC hw/char/imx_serial.o
CC hw/core/qdev.o
CC hw/core/qdev-properties.o
CC hw/core/bus.o
CC hw/core/reset.o
CC hw/core/qdev-fw.o
CC hw/core/fw-path-provider.o
CC hw/core/irq.o
CC hw/core/hotplug.o
CC hw/core/nmi.o
CC hw/core/stream.o
CC hw/core/ptimer.o
CC hw/core/sysbus.o
CC hw/core/machine.o
CC hw/core/loader.o
CC hw/core/qdev-properties-system.o
CC hw/core/register.o
CC hw/core/or-irq.o
CC hw/core/platform-bus.o
CC hw/cpu/core.o
CC hw/display/ads7846.o
CC hw/display/cirrus_vga.o
CC hw/display/pl110.o
CC hw/display/ssd0303.o
CC hw/display/ssd0323.o
CC hw/display/vga-pci.o
CC hw/display/vga-isa.o
CC hw/display/vmware_vga.o
CC hw/display/blizzard.o
CC hw/display/exynos4210_fimd.o
CC hw/display/framebuffer.o
CC hw/display/tc6393xb.o
CC hw/dma/pl080.o
CC hw/dma/pl330.o
CC hw/dma/i8257.o
CC hw/dma/xilinx_axidma.o
CC hw/dma/xlnx-zynq-devcfg.o
CC hw/gpio/max7310.o
CC hw/gpio/pl061.o
CC hw/gpio/zaurus.o
CC hw/gpio/gpio_key.o
CC hw/i2c/core.o
CC hw/i2c/smbus.o
CC hw/i2c/smbus_eeprom.o
CC hw/i2c/i2c-ddc.o
CC hw/i2c/versatile_i2c.o
CC hw/i2c/smbus_ich9.o
CC hw/i2c/pm_smbus.o
CC hw/i2c/bitbang_i2c.o
CC hw/i2c/exynos4210_i2c.o
CC hw/i2c/imx_i2c.o
CC hw/i2c/aspeed_i2c.o
CC hw/ide/core.o
CC hw/ide/atapi.o
CC hw/ide/qdev.o
CC hw/ide/pci.o
CC hw/ide/isa.o
CC hw/ide/piix.o
CC hw/ide/microdrive.o
CC hw/ide/ahci.o
CC hw/ide/ich.o
CC hw/ide/ahci-allwinner.o
CC hw/input/hid.o
CC hw/input/lm832x.o
CC hw/input/pckbd.o
CC hw/input/pl050.o
CC hw/input/ps2.o
CC hw/input/stellaris_input.o
CC hw/input/tsc2005.o
CC hw/input/virtio-input.o
CC hw/input/virtio-input-hid.o
CC hw/intc/i8259_common.o
CC hw/intc/i8259.o
CC hw/intc/pl190.o
CC hw/intc/xlnx-pmu-iomod-intc.o
CC hw/intc/xlnx-zynqmp-ipi.o
CC hw/intc/imx_avic.o
CC hw/intc/realview_gic.o
CC hw/intc/ioapic_common.o
CC hw/intc/arm_gic_common.o
CC hw/intc/arm_gic.o
CC hw/intc/arm_gicv2m.o
CC hw/intc/arm_gicv3_common.o
CC hw/intc/arm_gicv3.o
CC hw/intc/arm_gicv3_dist.o
CC hw/intc/arm_gicv3_redist.o
CC hw/intc/arm_gicv3_its_common.o
CC hw/intc/intc.o
CC hw/ipack/ipack.o
CC hw/ipack/tpci200.o
CC hw/ipmi/ipmi.o
CC hw/ipmi/ipmi_bmc_extern.o
CC hw/ipmi/ipmi_bmc_sim.o
CC hw/ipmi/isa_ipmi_kcs.o
CC hw/ipmi/isa_ipmi_bt.o
CC hw/isa/isa-bus.o
CC hw/isa/apm.o
CC hw/mem/pc-dimm.o
CC hw/mem/nvdimm.o
CC hw/misc/applesmc.o
CC hw/misc/max111x.o
CC hw/misc/tmp105.o
CC hw/misc/tmp421.o
CC hw/misc/debugexit.o
CC hw/misc/sga.o
CC hw/misc/pc-testdev.o
CC hw/misc/pci-testdev.o
CC hw/misc/edu.o
CC hw/misc/unimp.o
CC hw/misc/vmcoreinfo.o
CC hw/misc/arm_l2x0.o
CC hw/misc/arm_integrator_debug.o
CC hw/misc/a9scu.o
CC hw/misc/arm11scu.o
CC hw/net/ne2000.o
CC hw/net/eepro100.o
CC hw/net/pcnet-pci.o
CC hw/net/pcnet.o
CC hw/net/e1000.o
CC hw/net/e1000x_common.o
CC hw/net/net_tx_pkt.o
CC hw/net/net_rx_pkt.o
CC hw/net/e1000e.o
CC hw/net/e1000e_core.o
CC hw/net/rtl8139.o
CC hw/net/vmxnet3.o
CC hw/net/smc91c111.o
CC hw/net/lan9118.o
CC hw/net/ne2000-isa.o
CC hw/net/xgmac.o
CC hw/net/xilinx_axienet.o
CC hw/net/allwinner_emac.o
CC hw/net/imx_fec.o
CC hw/net/cadence_gem.o
CC hw/net/stellaris_enet.o
CC hw/net/ftgmac100.o
CC hw/net/rocker/rocker.o
CC hw/net/rocker/rocker_fp.o
CC hw/net/rocker/rocker_desc.o
CC hw/net/rocker/rocker_world.o
CC hw/net/rocker/rocker_of_dpa.o
CC hw/nvram/eeprom93xx.o
CC hw/nvram/eeprom_at24c.o
CC hw/nvram/fw_cfg.o
CC hw/nvram/chrp_nvram.o
CC hw/pci-bridge/pci_bridge_dev.o
CC hw/pci-bridge/pcie_root_port.o
CC hw/pci-bridge/gen_pcie_root_port.o
CC hw/pci-bridge/pcie_pci_bridge.o
CC hw/pci-bridge/pci_expander_bridge.o
CC hw/pci-bridge/xio3130_upstream.o
CC hw/pci-bridge/xio3130_downstream.o
CC hw/pci-bridge/ioh3420.o
CC hw/pci-bridge/i82801b11.o
CC hw/pci-host/pam.o
CC hw/pci-host/versatile.o
CC hw/pci-host/piix.o
CC hw/pci-host/q35.o
CC hw/pci-host/gpex.o
CC hw/pci/pci.o
CC hw/pci/pci_bridge.o
CC hw/pci/msix.o
CC hw/pci/msi.o
CC hw/pci/shpc.o
CC hw/pci/slotid_cap.o
CC hw/pci/pci_host.o
CC hw/pci/pcie_host.o
CC hw/pci/pcie.o
CC hw/pci/pcie_aer.o
CC hw/pci/pcie_port.o
CC hw/pci/pci-stub.o
CC hw/pcmcia/pcmcia.o
CC hw/scsi/scsi-disk.o
CC hw/scsi/scsi-generic.o
CC hw/scsi/scsi-bus.o
CC hw/scsi/lsi53c895a.o
CC hw/scsi/mptsas.o
CC hw/scsi/mptconfig.o
CC hw/scsi/mptendian.o
CC hw/scsi/megasas.o
CC hw/scsi/vmw_pvscsi.o
CC hw/scsi/esp.o
CC hw/scsi/esp-pci.o
CC hw/sd/pl181.o
CC hw/sd/ssi-sd.o
CC hw/sd/sd.o
CC hw/sd/core.o
CC hw/sd/sdhci.o
CC hw/smbios/smbios.o
CC hw/smbios/smbios_type_38.o
CC hw/smbios/smbios-stub.o
CC hw/ssi/pl022.o
CC hw/smbios/smbios_type_38-stub.o
CC hw/ssi/ssi.o
CC hw/ssi/xilinx_spips.o
CC hw/ssi/aspeed_smc.o
CC hw/ssi/stm32f2xx_spi.o
CC hw/ssi/mss-spi.o
CC hw/timer/arm_timer.o
CC hw/timer/arm_mptimer.o
CC hw/timer/armv7m_systick.o
CC hw/timer/a9gtimer.o
CC hw/timer/cadence_ttc.o
CC hw/timer/ds1338.o
CC hw/timer/hpet.o
CC hw/timer/i8254_common.o
CC hw/timer/i8254.o
CC hw/timer/pl031.o
CC hw/timer/twl92230.o
CC hw/timer/imx_epit.o
CC hw/timer/imx_gpt.o
CC hw/timer/stm32f2xx_timer.o
CC hw/timer/aspeed_timer.o
CC hw/timer/cmsdk-apb-timer.o
CC hw/timer/mss-timer.o
CC hw/tpm/tpm_util.o
CC hw/tpm/tpm_tis.o
CC hw/tpm/tpm_crb.o
CC hw/usb/core.o
CC hw/usb/combined-packet.o
CC hw/usb/bus.o
CC hw/usb/libhw.o
CC hw/usb/desc.o
CC hw/usb/desc-msos.o
CC hw/usb/hcd-uhci.o
CC hw/usb/hcd-ohci.o
CC hw/usb/hcd-ehci.o
CC hw/usb/hcd-ehci-pci.o
CC hw/usb/hcd-ehci-sysbus.o
CC hw/usb/hcd-xhci.o
CC hw/usb/hcd-xhci-nec.o
CC hw/usb/hcd-musb.o
CC hw/usb/dev-hub.o
CC hw/usb/dev-hid.o
CC hw/usb/dev-wacom.o
CC hw/usb/dev-storage.o
CC hw/usb/dev-uas.o
CC hw/usb/dev-audio.o
CC hw/usb/dev-serial.o
CC hw/usb/dev-network.o
CC hw/usb/dev-bluetooth.o
CC hw/usb/dev-smartcard-reader.o
CC hw/usb/host-stub.o
CC hw/virtio/virtio-rng.o
CC hw/virtio/virtio-pci.o
CC hw/virtio/virtio-bus.o
CC hw/virtio/virtio-mmio.o
CC hw/virtio/vhost-stub.o
CC hw/watchdog/watchdog.o
CC hw/watchdog/wdt_i6300esb.o
CC hw/watchdog/wdt_ib700.o
CC hw/watchdog/wdt_aspeed.o
CC migration/migration.o
CC migration/socket.o
CC migration/fd.o
CC migration/exec.o
CC migration/tls.o
CC migration/channel.o
CC migration/savevm.o
CC migration/colo-comm.o
CC migration/colo.o
CC migration/colo-failover.o
CC migration/vmstate.o
CC migration/vmstate-types.o
CC migration/page_cache.o
CC migration/qemu-file.o
CC migration/global_state.o
CC migration/qemu-file-channel.o
CC migration/xbzrle.o
CC migration/postcopy-ram.o
CC migration/qjson.o
CC migration/block.o
CC net/net.o
CC net/queue.o
CC net/checksum.o
CC net/util.o
CC net/hub.o
CC net/socket.o
CC net/dump.o
CC net/eth.o
CC net/slirp.o
CC net/filter.o
CC net/filter-buffer.o
CC net/filter-mirror.o
CC net/colo-compare.o
CC net/colo.o
CC net/filter-rewriter.o
CC net/filter-replay.o
CC net/tap-win32.o
CC qom/cpu.o
CC replay/replay.o
CC replay/replay-internal.o
CC replay/replay-events.o
CC replay/replay-time.o
CC replay/replay-input.o
CC replay/replay-char.o
CC replay/replay-snapshot.o
CC replay/replay-net.o
CC replay/replay-audio.o
CC slirp/cksum.o
CC slirp/if.o
CC slirp/ip_icmp.o
CC slirp/ip6_icmp.o
CC slirp/ip6_input.o
CC slirp/ip6_output.o
CC slirp/ip_input.o
CC slirp/ip_output.o
CC slirp/dnssearch.o
CC slirp/dhcpv6.o
CC slirp/slirp.o
CC slirp/mbuf.o
CC slirp/misc.o
CC slirp/sbuf.o
CC slirp/socket.o
CC slirp/tcp_input.o
CC slirp/tcp_output.o
CC slirp/tcp_subr.o
CC slirp/udp.o
CC slirp/tcp_timer.o
CC slirp/udp6.o
CC slirp/bootp.o
CC slirp/tftp.o
CC slirp/arp_table.o
CC slirp/ndp_table.o
CC slirp/ncsi.o
CC ui/keymaps.o
CC ui/console.o
CC ui/cursor.o
CC ui/qemu-pixman.o
CC ui/input.o
CC ui/input-keymap.o
CC ui/input-legacy.o
CC ui/sdl.o
CC ui/sdl_zoom.o
CC ui/vnc.o
CC ui/vnc-enc-zlib.o
CC ui/vnc-enc-hextile.o
CC ui/vnc-enc-tight.o
CC ui/vnc-palette.o
CC ui/vnc-enc-zrle.o
CC ui/vnc-auth-vencrypt.o
CC ui/vnc-ws.o
CC ui/vnc-jobs.o
CC ui/gtk.o
CC chardev/char.o
CC chardev/char-console.o
CC chardev/char-fe.o
CC chardev/char-file.o
CC chardev/char-io.o
CC chardev/char-mux.o
CC chardev/char-null.o
CC chardev/char-pipe.o
CC chardev/char-ringbuf.o
CC chardev/char-serial.o
CC chardev/char-socket.o
CC chardev/char-stdio.o
CC chardev/char-udp.o
CC chardev/char-win.o
CC chardev/char-win-stdio.o
AS optionrom/multiboot.o
AS optionrom/linuxboot.o
CC optionrom/linuxboot_dma.o
AS optionrom/kvmvapic.o
BUILD optionrom/multiboot.img
BUILD optionrom/linuxboot.img
BUILD optionrom/linuxboot_dma.img
BUILD optionrom/kvmvapic.img
BUILD optionrom/multiboot.raw
CC qga/commands.o
BUILD optionrom/linuxboot.raw
BUILD optionrom/linuxboot_dma.raw
BUILD optionrom/kvmvapic.raw
SIGN optionrom/multiboot.bin
SIGN optionrom/linuxboot.bin
SIGN optionrom/linuxboot_dma.bin
SIGN optionrom/kvmvapic.bin
CC qga/guest-agent-command-state.o
CC qga/main.o
CC qga/commands-win32.o
CC qga/channel-win32.o
CC qga/service-win32.o
CC qga/vss-win32.o
CC qga/qapi-generated/qga-qapi-types.o
CC qga/qapi-generated/qga-qapi-visit.o
CC qga/qapi-generated/qga-qmp-marshal.o
AR libqemuutil.a
CC qemu-img.o
LINK qemu-io.exe
GEN x86_64-softmmu/hmp-commands-info.h
GEN x86_64-softmmu/hmp-commands.h
GEN x86_64-softmmu/config-target.h
CC x86_64-softmmu/exec.o
CC x86_64-softmmu/tcg/tcg.o
CC x86_64-softmmu/tcg/tcg-op.o
GEN aarch64-softmmu/hmp-commands.h
GEN aarch64-softmmu/hmp-commands-info.h
GEN aarch64-softmmu/config-target.h
CC aarch64-softmmu/exec.o
CC aarch64-softmmu/tcg/tcg.o
CC aarch64-softmmu/tcg/tcg-op.o
CC aarch64-softmmu/tcg/optimize.o
CC aarch64-softmmu/tcg/tcg-common.o
CC aarch64-softmmu/fpu/softfloat.o
LINK qemu-ga.exe
CC x86_64-softmmu/tcg/optimize.o
LINK qemu-img.exe
CC aarch64-softmmu/fpu/float16.o
CC aarch64-softmmu/fpu/float32.o
CC aarch64-softmmu/fpu/float64.o
CC aarch64-softmmu/fpu/float128.o
CC aarch64-softmmu/fpu/floatconv.o
In file included from /tmp/qemu-test/src/fpu/float16.c:20:0:
/tmp/qemu-test/src/fpu/soft-fp.h:50:4: error: #error "endianness not defined by sfp-machine.h"
# error "endianness not defined by sfp-machine.h"
^~~~~
In file included from /tmp/qemu-test/src/fpu/float16.c:22:0:
/tmp/qemu-test/src/fpu/half.h:67:5: error: "__BYTE_ORDER" is not defined [-Werror=undef]
#if __BYTE_ORDER == __BIG_ENDIAN
^~~~~~~~~~~~
/tmp/qemu-test/src/fpu/half.h:67:21: error: "__BIG_ENDIAN" is not defined [-Werror=undef]
#if __BYTE_ORDER == __BIG_ENDIAN
^~~~~~~~~~~~cc1: all warnings being treated as errors/tmp/qemu-test/src/rules.mak:66: recipe for target 'fpu/float16.o' failed make[1]: *** [fpu/float16.o] Error 1
make[1]: *** Waiting for unfinished jobs....
CC x86_64-softmmu/tcg/tcg-common.o
In file included from /tmp/qemu-test/src/fpu/float32.c:20:0:/tmp/qemu-test/src/fpu/soft-fp.h:50:4: error: #error "endianness not defined by sfp-machine.h"
# error "endianness not defined by sfp-machine.h"
^~~~~
In file included from /tmp/qemu-test/src/fpu/float32.c:22:0:
/tmp/qemu-test/src/fpu/single.h:74:5: error: "__BYTE_ORDER" is not defined [-Werror=undef]
#if __BYTE_ORDER == __BIG_ENDIAN
^~~~~~~~~~~~
/tmp/qemu-test/src/fpu/single.h:74:21: error: "__BIG_ENDIAN" is not defined [-Werror=undef]
#if __BYTE_ORDER == __BIG_ENDIAN
^~~~~~~~~~~~
In file included from /tmp/qemu-test/src/fpu/float64.c:20:0:
/tmp/qemu-test/src/fpu/soft-fp.h:50:4: error: #error "endianness not defined by sfp-machine.h"
# error "endianness not defined by sfp-machine.h"
^~~~~
In file included from /tmp/qemu-test/src/fpu/float64.c:22:0:
/tmp/qemu-test/src/fpu/double.h:202:6: error: "__BYTE_ORDER" is not defined [-Werror=undef]
# if __BYTE_ORDER == __BIG_ENDIAN
^~~~~~~~~~~~
/tmp/qemu-test/src/fpu/double.h:202:22: error: "__BIG_ENDIAN" is not defined [-Werror=undef]
# if __BYTE_ORDER == __BIG_ENDIAN
^~~~~~~~~~~~
cc1: all warnings being treated as errors
/tmp/qemu-test/src/rules.mak:66: recipe for target 'fpu/float32.o' failed
make[1]: *** [fpu/float32.o] Error 1
CC x86_64-softmmu/fpu/softfloat.o
In file included from /tmp/qemu-test/src/fpu/float128.c:20:0:
/tmp/qemu-test/src/fpu/soft-fp.h:50:4: error: #error "endianness not defined by sfp-machine.h"
# error "endianness not defined by sfp-machine.h"
^~~~~
In file included from /tmp/qemu-test/src/fpu/float128.c:22:0:
/tmp/qemu-test/src/fpu/quad.h:210:6: error: "__BYTE_ORDER" is not defined [-Werror=undef]
# if __BYTE_ORDER == __BIG_ENDIAN
^~~~~~~~~~~~
/tmp/qemu-test/src/fpu/quad.h:210:22: error: "__BIG_ENDIAN" is not defined [-Werror=undef]
# if __BYTE_ORDER == __BIG_ENDIAN
^~~~~~~~~~~~
CC x86_64-softmmu/fpu/float16.o
cc1: all warnings being treated as errors
/tmp/qemu-test/src/rules.mak:66: recipe for target 'fpu/float64.o' failed
make[1]: *** [fpu/float64.o] Error 1
CC x86_64-softmmu/fpu/float32.o
cc1: all warnings being treated as errors
/tmp/qemu-test/src/rules.mak:66: recipe for target 'fpu/float128.o' failed
make[1]: *** [fpu/float128.o] Error 1
CC x86_64-softmmu/fpu/float64.o
In file included from /tmp/qemu-test/src/fpu/floatconv.c:20:0:
/tmp/qemu-test/src/fpu/soft-fp.h:50:4: error: #error "endianness not defined by sfp-machine.h"
# error "endianness not defined by sfp-machine.h"
^~~~~
In file included from /tmp/qemu-test/src/fpu/floatconv.c:22:0:
/tmp/qemu-test/src/fpu/half.h:67:5: error: "__BYTE_ORDER" is not defined [-Werror=undef]
#if __BYTE_ORDER == __BIG_ENDIAN
^~~~~~~~~~~~
/tmp/qemu-test/src/fpu/half.h:67:21: error: "__BIG_ENDIAN" is not defined [-Werror=undef]
#if __BYTE_ORDER == __BIG_ENDIAN
^~~~~~~~~~~~
In file included from /tmp/qemu-test/src/fpu/floatconv.c:23:0:
/tmp/qemu-test/src/fpu/single.h:74:5: error: "__BYTE_ORDER" is not defined [-Werror=undef]
#if __BYTE_ORDER == __BIG_ENDIAN
^~~~~~~~~~~~
/tmp/qemu-test/src/fpu/single.h:74:21: error: "__BIG_ENDIAN" is not defined [-Werror=undef]
#if __BYTE_ORDER == __BIG_ENDIAN
^~~~~~~~~~~~
In file included from /tmp/qemu-test/src/fpu/floatconv.c:24:0:
/tmp/qemu-test/src/fpu/double.h:202:6: error: "__BYTE_ORDER" is not defined [-Werror=undef]
# if __BYTE_ORDER == __BIG_ENDIAN
^~~~~~~~~~~~
/tmp/qemu-test/src/fpu/double.h:202:22: error: "__BIG_ENDIAN" is not defined [-Werror=undef]
# if __BYTE_ORDER == __BIG_ENDIAN
^~~~~~~~~~~~
In file included from /tmp/qemu-test/src/fpu/floatconv.c:25:0:
/tmp/qemu-test/src/fpu/quad.h:210:6: error: "__BYTE_ORDER" is not defined [-Werror=undef]
# if __BYTE_ORDER == __BIG_ENDIAN
^~~~~~~~~~~~
/tmp/qemu-test/src/fpu/quad.h:210:22: error: "__BIG_ENDIAN" is not defined [-Werror=undef]
# if __BYTE_ORDER == __BIG_ENDIAN
^~~~~~~~~~~~
cc1: all warnings being treated as errors
make[1]: *** [fpu/floatconv.o] Error 1
/tmp/qemu-test/src/rules.mak:66: recipe for target 'fpu/floatconv.o' failed
make: *** [subdir-aarch64-softmmu] Error 2
make: *** Waiting for unfinished jobs....
Makefile:403: recipe for target 'subdir-aarch64-softmmu' failed
CC x86_64-softmmu/fpu/float128.o
CC x86_64-softmmu/fpu/floatconv.o
In file included from /tmp/qemu-test/src/fpu/float32.c:20:0:
/tmp/qemu-test/src/fpu/soft-fp.h:50:4: error: #error "endianness not defined by sfp-machine.h"
# error "endianness not defined by sfp-machine.h"
^~~~~
In file included from /tmp/qemu-test/src/fpu/float32.c:22:0:
/tmp/qemu-test/src/fpu/single.h:74:5: error: "__BYTE_ORDER" is not defined [-Werror=undef]
#if __BYTE_ORDER == __BIG_ENDIAN
^~~~~~~~~~~~
/tmp/qemu-test/src/fpu/single.h:74:21: error: "__BIG_ENDIAN" is not defined [-Werror=undef]
#if __BYTE_ORDER == __BIG_ENDIAN
^~~~~~~~~~~~
CC x86_64-softmmu/disas.o
In file included from /tmp/qemu-test/src/fpu/float16.c:20:0:
/tmp/qemu-test/src/fpu/soft-fp.h:50:4: error: #error "endianness not defined by sfp-machine.h"
# error "endianness not defined by sfp-machine.h"
^~~~~
In file included from /tmp/qemu-test/src/fpu/float16.c:22:0:
/tmp/qemu-test/src/fpu/half.h:67:5: error: "__BYTE_ORDER" is not defined [-Werror=undef]
#if __BYTE_ORDER == __BIG_ENDIAN
^~~~~~~~~~~~
/tmp/qemu-test/src/fpu/half.h:67:21: error: "__BIG_ENDIAN" is not defined [-Werror=undef]
#if __BYTE_ORDER == __BIG_ENDIAN
^~~~~~~~~~~~
cc1: all warnings being treated as errors
make[1]: *** [fpu/float32.o] Error 1
make[1]: *** Waiting for unfinished jobs....
/tmp/qemu-test/src/rules.mak:66: recipe for target 'fpu/float32.o' failed
cc1: all warnings being treated as errors
make[1]: *** [fpu/float16.o] Error 1
/tmp/qemu-test/src/rules.mak:66: recipe for target 'fpu/float16.o' failed
In file included from /tmp/qemu-test/src/fpu/float64.c:20:0:
/tmp/qemu-test/src/fpu/soft-fp.h:50:4: error: #error "endianness not defined by sfp-machine.h"
# error "endianness not defined by sfp-machine.h"
^~~~~
In file included from /tmp/qemu-test/src/fpu/float64.c:22:0:
/tmp/qemu-test/src/fpu/double.h:202:6: error: "__BYTE_ORDER" is not defined [-Werror=undef]
# if __BYTE_ORDER == __BIG_ENDIAN
^~~~~~~~~~~~
/tmp/qemu-test/src/fpu/double.h:202:22: error: "__BIG_ENDIAN" is not defined [-Werror=undef]
# if __BYTE_ORDER == __BIG_ENDIAN
^~~~~~~~~~~~
In file included from /tmp/qemu-test/src/fpu/float128.c:20:0:
/tmp/qemu-test/src/fpu/soft-fp.h:50:4: error: #error "endianness not defined by sfp-machine.h"
# error "endianness not defined by sfp-machine.h"
^~~~~
In file included from /tmp/qemu-test/src/fpu/float128.c:22:0:
/tmp/qemu-test/src/fpu/quad.h:210:6: error: "__BYTE_ORDER" is not defined [-Werror=undef]
# if __BYTE_ORDER == __BIG_ENDIAN
^~~~~~~~~~~~
/tmp/qemu-test/src/fpu/quad.h:210:22: error: "__BIG_ENDIAN" is not defined [-Werror=undef]
# if __BYTE_ORDER == __BIG_ENDIAN
^~~~~~~~~~~~
cc1: all warnings being treated as errors
/tmp/qemu-test/src/rules.mak:66: recipe for target 'fpu/float64.o' failed
make[1]: *** [fpu/float64.o] Error 1
cc1: all warnings being treated as errors
/tmp/qemu-test/src/rules.mak:66: recipe for target 'fpu/float128.o' failed
make[1]: *** [fpu/float128.o] Error 1
In file included from /tmp/qemu-test/src/fpu/floatconv.c:20:0:
/tmp/qemu-test/src/fpu/soft-fp.h:50:4: error: #error "endianness not defined by sfp-machine.h"
# error "endianness not defined by sfp-machine.h"
^~~~~
In file included from /tmp/qemu-test/src/fpu/floatconv.c:22:0:
/tmp/qemu-test/src/fpu/half.h:67:5: error: "__BYTE_ORDER" is not defined [-Werror=undef]
#if __BYTE_ORDER == __BIG_ENDIAN
^~~~~~~~~~~~
/tmp/qemu-test/src/fpu/half.h:67:21: error: "__BIG_ENDIAN" is not defined [-Werror=undef]
#if __BYTE_ORDER == __BIG_ENDIAN
^~~~~~~~~~~~
In file included from /tmp/qemu-test/src/fpu/floatconv.c:23:0:
/tmp/qemu-test/src/fpu/single.h:74:5: error: "__BYTE_ORDER" is not defined [-Werror=undef]
#if __BYTE_ORDER == __BIG_ENDIAN
^~~~~~~~~~~~
/tmp/qemu-test/src/fpu/single.h:74:21: error: "__BIG_ENDIAN" is not defined [-Werror=undef]
#if __BYTE_ORDER == __BIG_ENDIAN
^~~~~~~~~~~~
In file included from /tmp/qemu-test/src/fpu/floatconv.c:24:0:
/tmp/qemu-test/src/fpu/double.h:202:6: error: "__BYTE_ORDER" is not defined [-Werror=undef]
# if __BYTE_ORDER == __BIG_ENDIAN
^~~~~~~~~~~~
/tmp/qemu-test/src/fpu/double.h:202:22: error: "__BIG_ENDIAN" is not defined [-Werror=undef]
# if __BYTE_ORDER == __BIG_ENDIAN
^~~~~~~~~~~~
In file included from /tmp/qemu-test/src/fpu/floatconv.c:25:0:
/tmp/qemu-test/src/fpu/quad.h:210:6: error: "__BYTE_ORDER" is not defined [-Werror=undef]
# if __BYTE_ORDER == __BIG_ENDIAN
^~~~~~~~~~~~
/tmp/qemu-test/src/fpu/quad.h:210:22: error: "__BIG_ENDIAN" is not defined [-Werror=undef]
# if __BYTE_ORDER == __BIG_ENDIAN
^~~~~~~~~~~~
cc1: all warnings being treated as errors
/tmp/qemu-test/src/rules.mak:66: recipe for target 'fpu/floatconv.o' failed
make[1]: *** [fpu/floatconv.o] Error 1
Makefile:403: recipe for target 'subdir-x86_64-softmmu' failed
make: *** [subdir-x86_64-softmmu] Error 2
Traceback (most recent call last):
File "./tests/docker/docker.py", line 407, in <module>
sys.exit(main())
File "./tests/docker/docker.py", line 404, in main
return args.cmdobj.run(args, argv)
File "./tests/docker/docker.py", line 261, in run
return Docker().run(argv, args.keep, quiet=args.quiet)
File "./tests/docker/docker.py", line 229, in run
quiet=quiet)
File "./tests/docker/docker.py", line 147, in _do_check
return subprocess.check_call(self._command + cmd, **kwargs)
File "/usr/lib64/python2.7/subprocess.py", line 186, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['docker', 'run', '--label', 'com.qemu.instance.uuid=f4d7106e0d1311e8a0b952540069c830', '-u', '0', '--security-opt', 'seccomp=unconfined', '--rm', '--net=none', '-e', 'TARGET_LIST=', '-e', 'EXTRA_CONFIGURE_OPTS=', '-e', 'V=', '-e', 'J=8', '-e', 'DEBUG=', '-e', 'SHOW_ENV=1', '-e', 'CCACHE_DIR=/var/tmp/ccache', '-v', '/root/.cache/qemu-docker-ccache:/var/tmp/ccache:z', '-v', '/var/tmp/patchew-tester-tmp-cgiev8vr/src/docker-src.2018-02-08-16.06.27.17466:/var/tmp/qemu:z,ro', 'qemu:fedora', '/var/tmp/qemu/run', 'test-mingw']' returned non-zero exit status 2
make[1]: *** [tests/docker/Makefile.include:129: docker-run] Error 1
make: *** [tests/docker/Makefile.include:163: docker-run-test-mingw@fedora] Error 2real 4m44.915s
user 0m4.863s
sys 0m3.451s
=== OUTPUT END ===
Test command exited with code: 2
---
Email generated automatically by Patchew [http://patchew.org/].
Please send your feedback to [email protected]