build: remove CONFIG_LIBDECNUMBER
PATCH 1/1 build: remove CONFIG_LIBDECNUMBER
It is used only by PPC TCG, so just move it in target/ppc/Makefile.objs
--- Makefile.target | 6 ------ default-configs/ppc-linux-user.mak | 1 - default-configs/ppc-softmmu.mak | 1 - default-configs/ppc64-linux-user.mak | 1 - default-configs/ppc64-softmmu.mak | 1 - default-configs/ppc64abi32-linux-user.mak | 1 - default-configs/ppc64le-linux-user.mak | 1 - default-configs/ppcemb-softmmu.mak | 1 - target/ppc/Makefile.objs | 5 +++++ 9 files changed, 5 insertions(+), 13 deletions(-)
Makefile.target +0 -6
@@ -102,12 +102,6 @@ obj-y += target/$(TARGET_BASE_ARCH)/ obj-y += disas.o obj-$(call notempty,$(TARGET_XML_FILES)) += gdbstub-xml.o -obj-$(CONFIG_LIBDECNUMBER) += libdecnumber/decContext.o -obj-$(CONFIG_LIBDECNUMBER) += libdecnumber/decNumber.o -obj-$(CONFIG_LIBDECNUMBER) += libdecnumber/dpd/decimal32.o -obj-$(CONFIG_LIBDECNUMBER) += libdecnumber/dpd/decimal64.o -obj-$(CONFIG_LIBDECNUMBER) += libdecnumber/dpd/decimal128.o - ######################################################### # Linux user emulator target
default-configs/ppc-linux-user.mak +0 -1
@@ -1,2 +1 @@ # Default configuration for ppc-linux-user -CONFIG_LIBDECNUMBER=y
default-configs/ppc-softmmu.mak +0 -1
@@ -46,7 +46,6 @@ CONFIG_E500=y CONFIG_OPENPIC_KVM=$(call land,$(CONFIG_E500),$(CONFIG_KVM)) CONFIG_PLATFORM_BUS=y CONFIG_ETSEC=y -CONFIG_LIBDECNUMBER=y CONFIG_SM501=y # For PReP CONFIG_SERIAL_ISA=y
default-configs/ppc64-linux-user.mak +0 -1
@@ -1,2 +1 @@ # Default configuration for ppc64-linux-user -CONFIG_LIBDECNUMBER=y
default-configs/ppc64-softmmu.mak +0 -1
@@ -51,7 +51,6 @@ CONFIG_E500=y CONFIG_OPENPIC_KVM=$(call land,$(CONFIG_E500),$(CONFIG_KVM)) CONFIG_PLATFORM_BUS=y CONFIG_ETSEC=y -CONFIG_LIBDECNUMBER=y CONFIG_SM501=y # For pSeries CONFIG_XICS=$(CONFIG_PSERIES)
default-configs/ppc64abi32-linux-user.mak +0 -1
@@ -1,2 +1 @@ # Default configuration for ppc64abi32-linux-user -CONFIG_LIBDECNUMBER=y
default-configs/ppc64le-linux-user.mak +0 -1
@@ -1,2 +1 @@ # Default configuration for ppc64le-linux-user -CONFIG_LIBDECNUMBER=y
default-configs/ppcemb-softmmu.mak +0 -1
@@ -15,5 +15,4 @@ CONFIG_PTIMER=y CONFIG_I8259=y CONFIG_XILINX=y CONFIG_XILINX_ETHLITE=y -CONFIG_LIBDECNUMBER=y CONFIG_SM501=y
target/ppc/Makefile.objs +5 -0
@@ -15,5 +15,10 @@ obj-y += int_helper.o obj-y += timebase_helper.o obj-y += misc_helper.o obj-y += mem_helper.o +obj-y += ../../libdecnumber/decContext.o +obj-y += ../../libdecnumber/decNumber.o +obj-y += ../../libdecnumber/dpd/decimal32.o +obj-y += ../../libdecnumber/dpd/decimal64.o +obj-y += ../../libdecnumber/dpd/decimal128.o obj-$(CONFIG_USER_ONLY) += user_only_helper.o obj-y += gdbstub.o
Signature · 1 line
2.14.2
Quoted 3 lines · Paolo Bonzini
It is used only by PPC TCG, so just move it in target/ppc/Makefile.objs
Signed-off-by Paolo Bonzini <[email protected]>
FWIW, it *should* be used by target/s390x as well.
Quoted 5 lines
target/ppc/Makefile.objs +0
-0
target/ppc/Makefile.objs obj-y += int_helper.o · line 24
Quoted 10 lines
target/ppc/Makefile.objs +5
-0@@ -15,5 +15,10 @@ obj-y += int_helper.o obj-y += timebase_helper.o obj-y += misc_helper.o obj-y += mem_helper.o +obj-y += ../../libdecnumber/decContext.o +obj-y += ../../libdecnumber/decNumber.o +obj-y += ../../libdecnumber/dpd/decimal32.o +obj-y += ../../libdecnumber/dpd/decimal64.o +obj-y += ../../libdecnumber/dpd/decimal128.o obj-$(CONFIG_USER_ONLY) += user_only_helper.o obj-y += gdbstub.o
I suppose this isn't horrible, if it needed to be replicated.
r~
Quoted 16 lines · Richard Henderson
Quoted 3 lines · Paolo Bonzini
It is used only by PPC TCG, so just move it in target/ppc/Makefile.objs
Signed-off-by Paolo Bonzini <[email protected]>FWIW, it *should* be used by target/s390x as well.
Quoted 9 lines
target/ppc/Makefile.objs +1
-0@@ -15,5 +15,10 @@ obj-y += int_helper.o obj-y += timebase_helper.o obj-y += misc_helper.o obj-y += mem_helper.o +obj-y += ../../libdecnumber/decContext.o
Quoted 8 lines
target/ppc/Makefile.objs obj-y += int_helper.o · line 24
Quoted 6 lines
target/ppc/Makefile.objs +4
-0+obj-y += ../../libdecnumber/decNumber.o +obj-y += ../../libdecnumber/dpd/decimal32.o +obj-y += ../../libdecnumber/dpd/decimal64.o +obj-y += ../../libdecnumber/dpd/decimal128.o obj-$(CONFIG_USER_ONLY) += user_only_helper.o obj-y += gdbstub.oI suppose this isn't horrible, if it needed to be replicated.
If it has to be replicated, it should be
obj-y += ../../libdecnumber/
I'll post v2.
Paolo
Quoted 26 lines · Paolo Bonzini
Quoted 16 lines · Richard Henderson
Quoted 3 lines · Paolo Bonzini
It is used only by PPC TCG, so just move it in target/ppc/Makefile.objs
Signed-off-by Paolo Bonzini <[email protected]>FWIW, it *should* be used by target/s390x as well.
Quoted 9 lines
target/ppc/Makefile.objs +1
-0@@ -15,5 +15,10 @@ obj-y += int_helper.o obj-y += timebase_helper.o obj-y += misc_helper.o obj-y += mem_helper.o +obj-y += ../../libdecnumber/decContext.oQuoted 8 lines
target/ppc/Makefile.objs obj-y += int_helper.o · line 24
Quoted 6 lines
target/ppc/Makefile.objs +4
-0+obj-y += ../../libdecnumber/decNumber.o +obj-y += ../../libdecnumber/dpd/decimal32.o +obj-y += ../../libdecnumber/dpd/decimal64.o +obj-y += ../../libdecnumber/dpd/decimal128.o obj-$(CONFIG_USER_ONLY) += user_only_helper.o obj-y += gdbstub.oI suppose this isn't horrible, if it needed to be replicated.
Quoted 5 lines
If it has to be replicated, it should be
obj-y += ../../libdecnumber/
I'll post v2.
I think I wasn't clear -- s390x does not yet use libdecnumber because we haven't written the emulation instructions. But we should do. It shouldn't even be particularly hard, since all of the heavy lifting is in the library itself.
So no need to add anything at the moment; you've simply answered my question about what *should* happen.
r~
r~
Quoted 31 lines · Richard Henderson
Quoted 30 lines · Paolo Bonzini
Quoted 16 lines · Richard Henderson
Quoted 3 lines · Paolo Bonzini
It is used only by PPC TCG, so just move it in target/ppc/Makefile.objs
Signed-off-by Paolo Bonzini <[email protected]>FWIW, it *should* be used by target/s390x as well.
Quoted 9 lines
target/ppc/Makefile.objs +1
-0@@ -15,5 +15,10 @@ obj-y += int_helper.o obj-y += timebase_helper.o obj-y += misc_helper.o obj-y += mem_helper.o +obj-y += ../../libdecnumber/decContext.oQuoted 8 lines
target/ppc/Makefile.objs obj-y += int_helper.o · line 24
Quoted 6 lines
target/ppc/Makefile.objs +4
-0+obj-y += ../../libdecnumber/decNumber.o +obj-y += ../../libdecnumber/dpd/decimal32.o +obj-y += ../../libdecnumber/dpd/decimal64.o +obj-y += ../../libdecnumber/dpd/decimal128.o obj-$(CONFIG_USER_ONLY) += user_only_helper.o obj-y += gdbstub.oI suppose this isn't horrible, if it needed to be replicated.
If it has to be replicated, it should be
obj-y += ../../libdecnumber/
Quoted 8 lines
Quoted 1 line
I'll post v2.
I think I wasn't clear -- s390x does not yet use libdecnumber because we haven't written the emulation instructions. But we should do. It shouldn't even be particularly hard, since all of the heavy lifting is in the library itself.
So no need to add anything at the moment; you've simply answered my question about what *should* happen.
Well, if it should happen later, it might as well happen now even if it's not replicated...
Paolo