migration: Reduce uses of target-specific macros
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest10 patches 14 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/10 | target/avr: Avoid target-specific migration headers in machine.ctarget/ target/ | +3 | 1 reply | |
| 2/10 | target/loongarch: Avoid target-specific migration headers in machine.ctarget/ target/ | +2 | 1 reply | |
| 3/10 | migration: Revert "Add VMSTATE_UINTTL_2DARRAY()"include/ | +0 | 2 replies | |
| 4/10 | migration: Remove unused target-specific macrosinclude/ | +0 | 2 replies | |
| 5/10 | target/sparc: Inline qemu_get/put_betl()include/ target/ | +13 | 1 reply | |
| 6/10 | target/mips: Inline qemu_get/put_betls()include/ target/ | +12 | 1 reply | |
| 7/10 | target/i386: Expand VMSTATE_UINTTL_SUB_ARRAY for APX registerstarget/ | +1 | 1 reply | |
| 8/10 | target/i386: Inline VMSTATE_UINTTL_SUB_ARRAY() macroinclude/ target/ | +5 | 1 reply | |
| 9/10 | target/sparc: Replace VMSTATE_VARRAY_MULTIPLY -> VMSTATE_UINTTL_ARRAYinclude/ include/ migration/ +1 more | +6 | 1 reply | |
| 10/10 | migration: Restrict legacy VMSTATE_UINTTL() macros to few targetsconfigs/ configs/ configs/ +12 more | +25 | 2 replies |
Reviews trailers per patch
8 of 10 patches have a Reviewed-by or Acked-by.
| Patch | Pierrick Bouvier | Peter Xu |
|---|---|---|
| 1/10 | R-b | |
| 2/10 | R-b | |
| 3/10 | R-b | R-b |
| 4/10 | R-b | R-b |
| 5/10 | R-b | |
| 6/10 | R-b | |
| 7/10 | R-b | |
| 8/10 | ||
| 9/10 | R-b | |
| 10/10 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH-for-11.1 00/10] migration: Reduce uses of target-specific macros
For the single binary (read heterogeneous emulation) project we are trying to remove the uses of the 'target_ulong' type in common code (or code that should be common code but is compiled a target-specific one).
This series aims to reduce the use of migration target-specific macros. Since there is still a lot of work to be done, we introduce the TARGET_USING_LEGACY_MIGRATION_VMSTATE_UINTTL_API definition to protect the targets which are already not using these legacy migration macros.
Except for the SPARC targets, there should be no functional change.
Philippe Mathieu-Daudé (10):
target/avr: Avoid target-specific migration headers in machine.c target/loongarch: Avoid target-specific migration headers in machine.c
migration: Revert "Add VMSTATE_UINTTL_2DARRAY()"
migration: Remove unused target-specific macros target/sparc: Inline qemu_get/put_betl()
target/mips: Inline qemu_get/put_betls()
target/i386: Expand VMSTATE_UINTTL_SUB_ARRAY for APX registers target/i386: Inline VMSTATE_UINTTL_SUB_ARRAY() macro target/sparc: Replace VMSTATE_VARRAY_MULTIPLY -> VMSTATE_UINTTL_ARRAY
migration: Restrict legacy VMSTATE_UINTTL() macros to few targets
configs/targets/i386-softmmu.mak | 1 + configs/targets/mips-softmmu.mak | 1 + configs/targets/mips64-softmmu.mak | 1 + configs/targets/mips64el-softmmu.mak | 1 + configs/targets/mipsel-softmmu.mak | 1 + configs/targets/ppc-softmmu.mak | 1 + configs/targets/ppc64-softmmu.mak | 1 + configs/targets/riscv32-softmmu.mak | 1 + configs/targets/riscv64-softmmu.mak | 1 + configs/targets/sparc-softmmu.mak | 1 + configs/targets/sparc64-softmmu.mak | 1 + configs/targets/x86_64-softmmu.mak | 1 + include/migration/cpu.h | 59 ++++++---------------------- include/migration/vmstate.h | 22 ++--------- migration/vmstate.c | 4 -- target/avr/machine.c | 3 +- target/i386/machine.c | 8 +++- target/loongarch/machine.c | 2 +- target/mips/system/machine.c | 14 ++++++- target/ppc/machine.c | 1 + target/sparc/machine.c | 24 +++++++---- scripts/make-config-poison.sh | 1 + target/avr/meson.build | 3 +- target/loongarch/meson.build | 2 +- 24 files changed, 67 insertions(+), 88 deletions(-)
Signature · 1 line
2.53.0