Skip to contentSkip to conversation

build: remove CONFIG_LIBDECNUMBER

PATCH In review Paolo Bonzini 2 participants 5 messages Oct 10, 2017 Kbuild

lore
Share & tools
lore
#0 lore raw

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
index a4b292d2e2..e4244c188a 100644
@@ -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
index 260ba41836..6273df2930 100644
@@ -1,2 +1 @@
 # Default configuration for ppc-linux-user
-CONFIG_LIBDECNUMBER=y
default-configs/ppc-softmmu.mak +0 -1
index d7a3755881..bb225c6e46 100644
@@ -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
index e731ce016e..422d3fbaeb 100644
@@ -1,2 +1 @@
 # Default configuration for ppc64-linux-user
-CONFIG_LIBDECNUMBER=y
default-configs/ppc64-softmmu.mak +0 -1
index 9086475bf6..d1b3a6dd50 100644
@@ -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
index c244d07d56..1c657ec9bb 100644
@@ -1,2 +1 @@
 # Default configuration for ppc64abi32-linux-user
-CONFIG_LIBDECNUMBER=y
default-configs/ppc64le-linux-user.mak +0 -1
index 4ba4eae6ce..63f4269023 100644
@@ -1,2 +1 @@
 # Default configuration for ppc64le-linux-user
-CONFIG_LIBDECNUMBER=y
default-configs/ppcemb-softmmu.mak +0 -1
index 635923a166..13917fb7a3 100644
@@ -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
index f92ba67ebd..ba61012bef 100644
@@ -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
#1 lore raw
Quoted 3 lines · Paolo Bonzini

It is used only by PPC TCG, so just move it in target/ppc/Makefile.objs

FWIW, it *should* be used by target/s390x as well.

Quoted 5 lines
target/ppc/Makefile.objs +0 -0
index f92ba67ebd..ba61012bef 100644

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~

#2 lore raw
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

FWIW, it *should* be used by target/s390x as well.

Quoted 9 lines
target/ppc/Makefile.objs +1 -0
index f92ba67ebd..ba61012bef 100644
@@ -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.o

I 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

#3 lore raw
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

FWIW, it *should* be used by target/s390x as well.

Quoted 9 lines
target/ppc/Makefile.objs +1 -0
index f92ba67ebd..ba61012bef 100644
@@ -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.o

I 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~

#4 lore raw
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

FWIW, it *should* be used by target/s390x as well.

Quoted 9 lines
target/ppc/Makefile.objs +1 -0
index f92ba67ebd..ba61012bef 100644
@@ -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.o

I 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