diff mbox series

[PATCH-for-9.1,6/7] hw/core: Move reset.c to hwcore_ss[] source set

Message ID 20240404194757.9343-7-philmd@linaro.org
State New
Headers show
Series buildsys: Start shrinking qemu-user build process | expand

Commit Message

Philippe Mathieu-Daudé April 4, 2024, 7:47 p.m. UTC
reset.c contains core code used by any CPU, required
by user emulation. Move it to hwcore_ss[] where it
belongs.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
 hw/core/meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Richard Henderson April 5, 2024, 10:44 p.m. UTC | #1
On 4/4/24 09:47, Philippe Mathieu-Daudé wrote:
> reset.c contains core code used by any CPU, required
> by user emulation. Move it to hwcore_ss[] where it
> belongs.
> 
> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> ---
>   hw/core/meson.build | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/hw/core/meson.build b/hw/core/meson.build
> index e26f2e088c..1389f1b339 100644
> --- a/hw/core/meson.build
> +++ b/hw/core/meson.build
> @@ -3,7 +3,6 @@ hwcore_ss.add(files(
>     'bus.c',
>     'qdev-properties.c',
>     'qdev.c',
> -  'reset.c',
>     'resetcontainer.c',
>     'resettable.c',
>     'vmstate-if.c',
> @@ -16,6 +15,7 @@ if have_system
>     hwcore_ss.add(files(
>       'hotplug.c',
>       'qdev-hotplug.c',
> +    'reset.c',

This patch would seem to obviate the previous?

r~
Philippe Mathieu-Daudé April 8, 2024, 6 a.m. UTC | #2
On 6/4/24 00:44, Richard Henderson wrote:
> On 4/4/24 09:47, Philippe Mathieu-Daudé wrote:
>> reset.c contains core code used by any CPU, required
>> by user emulation. Move it to hwcore_ss[] where it
>> belongs.
>>
>> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
>> ---
>>   hw/core/meson.build | 2 +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/hw/core/meson.build b/hw/core/meson.build
>> index e26f2e088c..1389f1b339 100644
>> --- a/hw/core/meson.build
>> +++ b/hw/core/meson.build
>> @@ -3,7 +3,6 @@ hwcore_ss.add(files(
>>     'bus.c',
>>     'qdev-properties.c',
>>     'qdev.c',
>> -  'reset.c',
>>     'resetcontainer.c',
>>     'resettable.c',
>>     'vmstate-if.c',
>> @@ -16,6 +15,7 @@ if have_system
>>     hwcore_ss.add(files(
>>       'hotplug.c',
>>       'qdev-hotplug.c',
>> +    'reset.c',
> 
> This patch would seem to obviate the previous?

No, hwcore_ss[] is used for both system/user.

As its name suggests, "sysemu/reset.h" is system specific.
We don't want to compile its definitions and link them to
a user-only build.

I can squash both if it makes it more obvious.

Regards,

Phil.
diff mbox series

Patch

diff --git a/hw/core/meson.build b/hw/core/meson.build
index e26f2e088c..1389f1b339 100644
--- a/hw/core/meson.build
+++ b/hw/core/meson.build
@@ -3,7 +3,6 @@  hwcore_ss.add(files(
   'bus.c',
   'qdev-properties.c',
   'qdev.c',
-  'reset.c',
   'resetcontainer.c',
   'resettable.c',
   'vmstate-if.c',
@@ -16,6 +15,7 @@  if have_system
   hwcore_ss.add(files(
     'hotplug.c',
     'qdev-hotplug.c',
+    'reset.c',
   ))
 else
   hwcore_ss.add(files(