update cmake. remove warnings.

This commit is contained in:
chenhuitao 2020-06-07 04:57:03 +08:00
parent a51715734a
commit 6fc4fc41ec
2 changed files with 4 additions and 46 deletions

View File

@ -282,7 +282,6 @@ add_library(x86_64-softmmu
qemu/exec.c
qemu/fpu/softfloat.c
qemu/hw/i386/pc.c
qemu/hw/i386/pc_piix.c
qemu/hw/intc/apic.c
qemu/hw/intc/apic_common.c
qemu/ioport.c
@ -334,8 +333,6 @@ add_library(arm-softmmu
qemu/cputlb.c
qemu/exec.c
qemu/fpu/softfloat.c
qemu/hw/arm/tosa.c
qemu/hw/arm/virt.c
qemu/ioport.c
qemu/memory.c
qemu/memory_mapping.c
@ -378,8 +375,6 @@ add_library(armeb-softmmu
qemu/cputlb.c
qemu/exec.c
qemu/fpu/softfloat.c
qemu/hw/arm/tosa.c
qemu/hw/arm/virt.c
qemu/ioport.c
qemu/memory.c
qemu/memory_mapping.c
@ -424,8 +419,6 @@ add_library(aarch64-softmmu
qemu/cputlb.c
qemu/exec.c
qemu/fpu/softfloat.c
qemu/hw/arm/tosa.c
qemu/hw/arm/virt.c
qemu/ioport.c
qemu/memory.c
qemu/memory_mapping.c
@ -471,8 +464,6 @@ add_library(aarch64eb-softmmu
qemu/cputlb.c
qemu/exec.c
qemu/fpu/softfloat.c
qemu/hw/arm/tosa.c
qemu/hw/arm/virt.c
qemu/ioport.c
qemu/memory.c
qemu/memory_mapping.c
@ -520,7 +511,6 @@ add_library(m68k-softmmu
qemu/cputlb.c
qemu/exec.c
qemu/fpu/softfloat.c
qemu/hw/m68k/dummy_m68k.c
qemu/ioport.c
qemu/memory.c
qemu/memory_mapping.c
@ -563,7 +553,6 @@ add_library(mips-softmmu
qemu/fpu/softfloat.c
qemu/hw/mips/addr.c
qemu/hw/mips/cputimer.c
qemu/hw/mips/mips_r4k.c
qemu/ioport.c
qemu/memory.c
qemu/memory_mapping.c
@ -607,7 +596,6 @@ add_library(mipsel-softmmu
qemu/fpu/softfloat.c
qemu/hw/mips/addr.c
qemu/hw/mips/cputimer.c
qemu/hw/mips/mips_r4k.c
qemu/ioport.c
qemu/memory.c
qemu/memory_mapping.c
@ -651,7 +639,6 @@ add_library(mips64-softmmu
qemu/fpu/softfloat.c
qemu/hw/mips/addr.c
qemu/hw/mips/cputimer.c
qemu/hw/mips/mips_r4k.c
qemu/ioport.c
qemu/memory.c
qemu/memory_mapping.c
@ -695,7 +682,6 @@ add_library(mips64el-softmmu
qemu/fpu/softfloat.c
qemu/hw/mips/addr.c
qemu/hw/mips/cputimer.c
qemu/hw/mips/mips_r4k.c
qemu/ioport.c
qemu/memory.c
qemu/memory_mapping.c
@ -739,7 +725,6 @@ add_library(sparc-softmmu
qemu/cputlb.c
qemu/exec.c
qemu/fpu/softfloat.c
qemu/hw/sparc/leon3.c
qemu/ioport.c
qemu/memory.c
qemu/memory_mapping.c
@ -783,7 +768,6 @@ add_library(sparc64-softmmu
qemu/cputlb.c
qemu/exec.c
qemu/fpu/softfloat.c
qemu/hw/sparc64/sun4u.c
qemu/ioport.c
qemu/memory.c
qemu/memory_mapping.c
@ -832,7 +816,6 @@ add_library(ppc-softmmu
qemu/fpu/softfloat.c
qemu/hw/ppc/ppc.c
qemu/hw/ppc/ppc_booke.c
qemu/hw/ppc/e500plat.c
qemu/libdecnumber/decContext.c
qemu/libdecnumber/decNumber.c
qemu/libdecnumber/dpd/decimal128.c
@ -881,38 +864,18 @@ endif()
set(UNICORN_SRCS_COMMON
list.c
qemu/accel.c
qemu/glib_compat.c
qemu/hw/core/machine.c
qemu/hw/core/qdev.c
qemu/qapi/qapi-dealloc-visitor.c
qemu/qapi/qapi-visit-core.c
qemu/qapi/qmp-input-visitor.c
qemu/qapi/qmp-output-visitor.c
qemu/qapi/string-input-visitor.c
qemu/qemu-log.c
qemu/qemu-timer.c
qemu/qobject/qbool.c
qemu/qobject/qdict.c
qemu/qobject/qerror.c
qemu/qobject/qfloat.c
qemu/qobject/qint.c
qemu/qobject/qlist.c
qemu/qobject/qstring.c
qemu/qom/container.c
qemu/qom/cpu.c
qemu/qom/object.c
qemu/qom/qom-qobject.c
qemu/tcg-runtime.c
qemu/util/aes.c
qemu/util/bitmap.c
qemu/util/bitops.c
qemu/util/crc32c.c
qemu/util/cutils.c
qemu/util/error.c
qemu/util/getauxval.c
qemu/util/host-utils.c
qemu/util/module.c
qemu/util/qemu-timer-common.c
qemu/vl.c
uc.c
@ -923,17 +886,12 @@ if (MSVC)
${UNICORN_SRCS_COMMON}
qemu/util/oslib-win32.c
qemu/util/qemu-thread-win32.c
qemu/util/qemu-error.c
${CMAKE_CURRENT_SOURCE_DIR}/msvc/unicorn/qapi-types.c
${CMAKE_CURRENT_SOURCE_DIR}/msvc/unicorn/qapi-visit.c
)
else()
set(UNICORN_SRCS
${UNICORN_SRCS_COMMON}
qemu/util/oslib-posix.c
qemu/util/qemu-thread-posix.c
qemu/qapi-types.c
qemu/qapi-visit.c
)
endif()

View File

@ -368,7 +368,7 @@ static float32 roundAndPackFloat32(flag zSign, int_fast16_t zExp, uint32_t zSig
{
int8 roundingMode;
flag roundNearestEven;
int8 roundIncrement, roundBits;
int8 roundIncrement = 0, roundBits;
flag isTiny;
roundingMode = STATUS(float_rounding_mode);
@ -553,7 +553,7 @@ static float64 roundAndPackFloat64(flag zSign, int_fast16_t zExp, uint64_t zSig
{
int8 roundingMode;
flag roundNearestEven;
int_fast16_t roundIncrement, roundBits;
int_fast16_t roundIncrement = 0, roundBits;
flag isTiny;
roundingMode = STATUS(float_rounding_mode);
@ -726,7 +726,7 @@ static floatx80
STATUS_PARAM)
{
int8 roundingMode;
flag roundNearestEven, increment, isTiny;
flag roundNearestEven, increment = 0, isTiny;
int64 roundIncrement, roundMask, roundBits;
roundingMode = STATUS(float_rounding_mode);
@ -1064,7 +1064,7 @@ static float128
flag zSign, int32 zExp, uint64_t zSig0, uint64_t zSig1, uint64_t zSig2 STATUS_PARAM)
{
int8 roundingMode;
flag roundNearestEven, increment, isTiny;
flag roundNearestEven, increment = 0, isTiny;
roundingMode = STATUS(float_rounding_mode);
roundNearestEven = ( roundingMode == float_round_nearest_even );