All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] build: remove CONFIG_LIBDECNUMBER
@ 2017-10-10 10:26 Paolo Bonzini
  2017-10-10 14:47 ` Richard Henderson
  0 siblings, 1 reply; 5+ messages in thread
From: Paolo Bonzini @ 2017-10-10 10:26 UTC (permalink / raw)
  To: qemu-devel; +Cc: qemu-ppc

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

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
 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(-)

diff --git a/Makefile.target b/Makefile.target
index a4b292d2e2..e4244c188a 100644
--- a/Makefile.target
+++ b/Makefile.target
@@ -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
 
diff --git a/default-configs/ppc-linux-user.mak b/default-configs/ppc-linux-user.mak
index 260ba41836..6273df2930 100644
--- a/default-configs/ppc-linux-user.mak
+++ b/default-configs/ppc-linux-user.mak
@@ -1,2 +1 @@
 # Default configuration for ppc-linux-user
-CONFIG_LIBDECNUMBER=y
diff --git a/default-configs/ppc-softmmu.mak b/default-configs/ppc-softmmu.mak
index d7a3755881..bb225c6e46 100644
--- a/default-configs/ppc-softmmu.mak
+++ b/default-configs/ppc-softmmu.mak
@@ -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
diff --git a/default-configs/ppc64-linux-user.mak b/default-configs/ppc64-linux-user.mak
index e731ce016e..422d3fbaeb 100644
--- a/default-configs/ppc64-linux-user.mak
+++ b/default-configs/ppc64-linux-user.mak
@@ -1,2 +1 @@
 # Default configuration for ppc64-linux-user
-CONFIG_LIBDECNUMBER=y
diff --git a/default-configs/ppc64-softmmu.mak b/default-configs/ppc64-softmmu.mak
index 9086475bf6..d1b3a6dd50 100644
--- a/default-configs/ppc64-softmmu.mak
+++ b/default-configs/ppc64-softmmu.mak
@@ -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)
diff --git a/default-configs/ppc64abi32-linux-user.mak b/default-configs/ppc64abi32-linux-user.mak
index c244d07d56..1c657ec9bb 100644
--- a/default-configs/ppc64abi32-linux-user.mak
+++ b/default-configs/ppc64abi32-linux-user.mak
@@ -1,2 +1 @@
 # Default configuration for ppc64abi32-linux-user
-CONFIG_LIBDECNUMBER=y
diff --git a/default-configs/ppc64le-linux-user.mak b/default-configs/ppc64le-linux-user.mak
index 4ba4eae6ce..63f4269023 100644
--- a/default-configs/ppc64le-linux-user.mak
+++ b/default-configs/ppc64le-linux-user.mak
@@ -1,2 +1 @@
 # Default configuration for ppc64le-linux-user
-CONFIG_LIBDECNUMBER=y
diff --git a/default-configs/ppcemb-softmmu.mak b/default-configs/ppcemb-softmmu.mak
index 635923a166..13917fb7a3 100644
--- a/default-configs/ppcemb-softmmu.mak
+++ b/default-configs/ppcemb-softmmu.mak
@@ -15,5 +15,4 @@ CONFIG_PTIMER=y
 CONFIG_I8259=y
 CONFIG_XILINX=y
 CONFIG_XILINX_ETHLITE=y
-CONFIG_LIBDECNUMBER=y
 CONFIG_SM501=y
diff --git a/target/ppc/Makefile.objs b/target/ppc/Makefile.objs
index f92ba67ebd..ba61012bef 100644
--- a/target/ppc/Makefile.objs
+++ b/target/ppc/Makefile.objs
@@ -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
-- 
2.14.2

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] [PATCH] build: remove CONFIG_LIBDECNUMBER
  2017-10-10 10:26 [Qemu-devel] [PATCH] build: remove CONFIG_LIBDECNUMBER Paolo Bonzini
@ 2017-10-10 14:47 ` Richard Henderson
  2017-10-10 14:57   ` Paolo Bonzini
  0 siblings, 1 reply; 5+ messages in thread
From: Richard Henderson @ 2017-10-10 14:47 UTC (permalink / raw)
  To: Paolo Bonzini, qemu-devel; +Cc: qemu-ppc

On 10/10/2017 03:26 AM, Paolo Bonzini wrote:
> It is used only by PPC TCG, so just move it in target/ppc/Makefile.objs
> 
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

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

> diff --git a/target/ppc/Makefile.objs b/target/ppc/Makefile.objs
> index f92ba67ebd..ba61012bef 100644
> --- a/target/ppc/Makefile.objs
> +++ b/target/ppc/Makefile.objs
> @@ -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~

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] [PATCH] build: remove CONFIG_LIBDECNUMBER
  2017-10-10 14:47 ` Richard Henderson
@ 2017-10-10 14:57   ` Paolo Bonzini
  2017-10-10 16:39     ` Richard Henderson
  0 siblings, 1 reply; 5+ messages in thread
From: Paolo Bonzini @ 2017-10-10 14:57 UTC (permalink / raw)
  To: Richard Henderson, qemu-devel; +Cc: qemu-ppc

On 10/10/2017 16:47, Richard Henderson wrote:
> On 10/10/2017 03:26 AM, Paolo Bonzini wrote:
>> It is used only by PPC TCG, so just move it in target/ppc/Makefile.objs
>>
>> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> 
> FWIW, it *should* be used by target/s390x as well.
> 
>> diff --git a/target/ppc/Makefile.objs b/target/ppc/Makefile.objs
>> index f92ba67ebd..ba61012bef 100644
>> --- a/target/ppc/Makefile.objs
>> +++ b/target/ppc/Makefile.objs
>> @@ -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.

If it has to be replicated, it should be

obj-y += ../../libdecnumber/

I'll post v2.

Paolo

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] [PATCH] build: remove CONFIG_LIBDECNUMBER
  2017-10-10 14:57   ` Paolo Bonzini
@ 2017-10-10 16:39     ` Richard Henderson
  2017-10-10 17:14       ` Paolo Bonzini
  0 siblings, 1 reply; 5+ messages in thread
From: Richard Henderson @ 2017-10-10 16:39 UTC (permalink / raw)
  To: Paolo Bonzini, qemu-devel; +Cc: qemu-ppc

On 10/10/2017 07:57 AM, Paolo Bonzini wrote:
> On 10/10/2017 16:47, Richard Henderson wrote:
>> On 10/10/2017 03:26 AM, Paolo Bonzini wrote:
>>> It is used only by PPC TCG, so just move it in target/ppc/Makefile.objs
>>>
>>> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
>>
>> FWIW, it *should* be used by target/s390x as well.
>>
>>> diff --git a/target/ppc/Makefile.objs b/target/ppc/Makefile.objs
>>> index f92ba67ebd..ba61012bef 100644
>>> --- a/target/ppc/Makefile.objs
>>> +++ b/target/ppc/Makefile.objs
>>> @@ -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.
> 
> 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~

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] [PATCH] build: remove CONFIG_LIBDECNUMBER
  2017-10-10 16:39     ` Richard Henderson
@ 2017-10-10 17:14       ` Paolo Bonzini
  0 siblings, 0 replies; 5+ messages in thread
From: Paolo Bonzini @ 2017-10-10 17:14 UTC (permalink / raw)
  To: Richard Henderson, qemu-devel; +Cc: qemu-ppc

On 10/10/2017 18:39, Richard Henderson wrote:
> On 10/10/2017 07:57 AM, Paolo Bonzini wrote:
>> On 10/10/2017 16:47, Richard Henderson wrote:
>>> On 10/10/2017 03:26 AM, Paolo Bonzini wrote:
>>>> It is used only by PPC TCG, so just move it in target/ppc/Makefile.objs
>>>>
>>>> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
>>>
>>> FWIW, it *should* be used by target/s390x as well.
>>>
>>>> diff --git a/target/ppc/Makefile.objs b/target/ppc/Makefile.objs
>>>> index f92ba67ebd..ba61012bef 100644
>>>> --- a/target/ppc/Makefile.objs
>>>> +++ b/target/ppc/Makefile.objs
>>>> @@ -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.
>>
>> 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.

Well, if it should happen later, it might as well happen now even if
it's not replicated...

Paolo

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-10-10 17:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-10 10:26 [Qemu-devel] [PATCH] build: remove CONFIG_LIBDECNUMBER Paolo Bonzini
2017-10-10 14:47 ` Richard Henderson
2017-10-10 14:57   ` Paolo Bonzini
2017-10-10 16:39     ` Richard Henderson
2017-10-10 17:14       ` Paolo Bonzini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.