Skip to contentSkip to conversation

target/s390x: restore cpu_models for system builds

PATCH In review Eric Farman 6 participants 6 messages May 11 – May 12 Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 target/s390x: restore cpu_models for system builds

Commit 0b83acf2f05 stated:

Introduce a source set common to system / user. Start it with the files built in both sets: 'cpu_models_user.c' and 'gdbstub.c' No logical change intended.

Except that's not true:

git show 0b83acf2f0 | grep cpu_models
with the files built in both sets: 'cpu_models_user.c'
+ 'cpu_models_user.c',
- 'cpu_models_system.c',
- 'cpu_models_user.c',

Restore the s390x_user_ss section, move "cpu_models_user.c" back into it, and re-add "cpu_models_system.c" to the common_system section.

Fixes 0b83acf2f05 ("target/s390x: Introduce common system/user meson source set")
---
 target/s390x/meson.build | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
target/s390x/meson.build +5 -1
index 44f58ac291..6adc2b896d 100644
@@ -22,7 +22,6 @@ gen_features_h = custom_target('gen-features.h',
 
 s390x_common_ss.add(gen_features_h)
 s390x_common_ss.add(files(
-  'cpu_models_user.c',
   'gdbstub.c',
 ))
 
@@ -38,6 +37,11 @@ s390x_common_system_ss.add(files(
   'mmu_helper.c',
   'sigp.c',
   'cpu-system.c',
+  'cpu_models_system.c',
+))
+
+s390x_user_ss.add(files(
+  'cpu_models_user.c',
 ))
 
 subdir('tcg')
Signature · 1 line
2.51.0
Tested-by Reviewed-by on v1 1/1
#1 lore raw
Quoted 39 lines · Eric Farman

Commit 0b83acf2f05 stated:

Introduce a source set common to system / user. Start it with the files built in both sets: 'cpu_models_user.c' and 'gdbstub.c' No logical change intended.

Except that's not true:

git show 0b83acf2f0 | grep cpu_models
with the files built in both sets: 'cpu_models_user.c'
+ 'cpu_models_user.c',
- 'cpu_models_system.c',
- 'cpu_models_user.c',

Restore the s390x_user_ss section, move "cpu_models_user.c" back into it, and re-add "cpu_models_system.c" to the common_system section.

Fixes 0b83acf2f05 ("target/s390x: Introduce common system/user meson source set")
---
  target/s390x/meson.build | 6 +++++-
  1 file changed, 5 insertions(+), 1 deletion(-)
target/s390x/meson.build +0 -1
index 44f58ac291..6adc2b896d 100644
@@ -22,7 +22,6 @@ gen_features_h = custom_target('gen-features.h',
 
  s390x_common_ss.add(gen_features_h)
  s390x_common_ss.add(files(
-  'cpu_models_user.c',
    'gdbstub.c',
  ))
 
@@ -38,6 +37,11 @@ s390x_common_system_ss.add(files(
    'mmu_helper.c',

target/s390x/meson.build s390x_common_system_ss.add(files( · line 47

Quoted 10 lines
target/s390x/meson.build +5 -0
    'sigp.c',
    'cpu-system.c',
+  'cpu_models_system.c',
+))
+
+s390x_user_ss.add(files(
+  'cpu_models_user.c',
  ))
 
  subdir('tcg')

Thanks,

C.

Reviewed-by on v1 1/1
#2 lore raw
In reply to Eric Farman
Quoted 14 lines · Eric Farman

Commit 0b83acf2f05 stated:

Introduce a source set common to system / user. Start it with the files built in both sets: 'cpu_models_user.c' and 'gdbstub.c' No logical change intended.

Except that's not true:

git show 0b83acf2f0 | grep cpu_models
with the files built in both sets: 'cpu_models_user.c'
+ 'cpu_models_user.c',
- 'cpu_models_system.c',
- 'cpu_models_user.c',

Quoted 8 lines

Restore the s390x_user_ss section, move "cpu_models_user.c" back into it, and re-add "cpu_models_system.c" to the common_system section.

Fixes 0b83acf2f05 ("target/s390x: Introduce common system/user meson source set")

---

Thanks Eric.

Besides PCI passthrough this also broke at least s390x virtio-pci due to missing facilities; I verified both are working again after this fix.

Quoted 27 lines
 target/s390x/meson.build | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
target/s390x/meson.build +5 -1
index 44f58ac291..6adc2b896d 100644
@@ -22,7 +22,6 @@ gen_features_h = custom_target('gen-features.h',
 
 s390x_common_ss.add(gen_features_h)
 s390x_common_ss.add(files(
-  'cpu_models_user.c',
   'gdbstub.c',
 ))
 
@@ -38,6 +37,11 @@ s390x_common_system_ss.add(files(
   'mmu_helper.c',
   'sigp.c',
   'cpu-system.c',
+  'cpu_models_system.c',
+))
+
+s390x_user_ss.add(files(
+  'cpu_models_user.c',
 ))
 
 subdir('tcg')
Reviewed-by on v1 1/1
#3 lore raw
In reply to Eric Farman
Quoted 18 lines · Eric Farman

Commit 0b83acf2f05 stated:

Introduce a source set common to system / user. Start it with the files built in both sets: 'cpu_models_user.c' and 'gdbstub.c' No logical change intended.

Except that's not true:

git show 0b83acf2f0 | grep cpu_models
with the files built in both sets: 'cpu_models_user.c'
+ 'cpu_models_user.c',
- 'cpu_models_system.c',
- 'cpu_models_user.c',

Restore the s390x_user_ss section, move "cpu_models_user.c" back into it, and re-add "cpu_models_system.c" to the common_system section.

Quoted 6 lines
Fixes 0b83acf2f05 ("target/s390x: Introduce common system/user meson source set")
---
  target/s390x/meson.build | 6 +++++-
  1 file changed, 5 insertions(+), 1 deletion(-)
Reviewed-by on v1 1/1
#4 lore raw
In reply to Eric Farman
Quoted 18 lines · Eric Farman

Commit 0b83acf2f05 stated:

Introduce a source set common to system / user. Start it with the files built in both sets: 'cpu_models_user.c' and 'gdbstub.c' No logical change intended.

Except that's not true:

git show 0b83acf2f0 | grep cpu_models
with the files built in both sets: 'cpu_models_user.c'
+ 'cpu_models_user.c',
- 'cpu_models_system.c',
- 'cpu_models_user.c',

Restore the s390x_user_ss section, move "cpu_models_user.c" back into it, and re-add "cpu_models_system.c" to the common_system section.

Quoted 7 lines
Fixes 0b83acf2f05 ("target/s390x: Introduce common system/user meson source set")
---
 target/s390x/meson.build | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

I ended up rewriting the same patch to answer of Pull Request thread directly :)

Reviewed-by on v1 1/1
#5 lore raw
In reply to Eric Farman
Quoted 39 lines · Eric Farman

Commit 0b83acf2f05 stated:

Introduce a source set common to system / user. Start it with the files built in both sets: 'cpu_models_user.c' and 'gdbstub.c' No logical change intended.

Except that's not true:

git show 0b83acf2f0 | grep cpu_models
with the files built in both sets: 'cpu_models_user.c'
+ 'cpu_models_user.c',
- 'cpu_models_system.c',
- 'cpu_models_user.c',

Restore the s390x_user_ss section, move "cpu_models_user.c" back into it, and re-add "cpu_models_system.c" to the common_system section.

Fixes 0b83acf2f05 ("target/s390x: Introduce common system/user meson source set")
---
  target/s390x/meson.build | 6 +++++-
  1 file changed, 5 insertions(+), 1 deletion(-)
target/s390x/meson.build +0 -1
index 44f58ac291..6adc2b896d 100644
@@ -22,7 +22,6 @@ gen_features_h = custom_target('gen-features.h',
 
  s390x_common_ss.add(gen_features_h)
  s390x_common_ss.add(files(
-  'cpu_models_user.c',
    'gdbstub.c',
  ))
 
@@ -38,6 +37,11 @@ s390x_common_system_ss.add(files(
    'mmu_helper.c',

target/s390x/meson.build s390x_common_system_ss.add(files( · line 47

Quoted 10 lines
target/s390x/meson.build +5 -0
    'sigp.c',
    'cpu-system.c',
+  'cpu_models_system.c',
+))
+
+s390x_user_ss.add(files(
+  'cpu_models_user.c',
  ))
 
  subdir('tcg')