[PATCH v2 00/11] hw/mips/loongson3: Remove uses of &first_cpu global

Philippe Mathieu-Daudé posted 11 patches 2 months, 2 weeks ago
hw/mips/loongson3_bootp.h |  1 +
hw/mips/loongson3_bootp.c | 16 +++++++-----
hw/mips/loongson3_virt.c  | 54 ++++++++++++++++++++++-----------------
hw/mips/meson.build       |  3 ++-
4 files changed, 42 insertions(+), 32 deletions(-)
[PATCH v2 00/11] hw/mips/loongson3: Remove uses of &first_cpu global
Posted by Philippe Mathieu-Daudé 2 months, 2 weeks ago
Missing review: #2

Since v1:
- Reworked patch 2 (rth)

Propagate values from machine_init() in order to remove
use of globals such &first_cpu and &current_machine.

Philippe Mathieu-Daudé (11):
  hw/mips/loongson3_virt: Factor generic_cpu_reset() out
  hw/mips/loongson3_virt: Invert vCPU creation order to remove
    &first_cpu
  hw/mips/loongson3_virt: Have fw_conf_init() access local loaderparams
  hw/mips/loongson3_virt: Pass CPU argument to get_cpu_freq_hz()
  hw/mips/loongson3_bootp: Include missing headers
  hw/mips/loongson3: Propagate cpu_count to init_loongson_params()
  hw/mips/loongson3_virt: Propagate cpu_count to init_boot_param()
  hw/mips/loongson3_bootp: Propagate processor_id to init_cpu_info()
  hw/mips/loongson3_virt: Propagate processor_id to
    init_loongson_params()
  hw/mips/loongson3_virt: Propagate %processor_id to init_boot_param()
  hw/mips/loongson3_bootp: Move to common_ss[]

 hw/mips/loongson3_bootp.h |  1 +
 hw/mips/loongson3_bootp.c | 16 +++++++-----
 hw/mips/loongson3_virt.c  | 54 ++++++++++++++++++++++-----------------
 hw/mips/meson.build       |  3 ++-
 4 files changed, 42 insertions(+), 32 deletions(-)

-- 
2.47.1


Re: [PATCH v2 00/11] hw/mips/loongson3: Remove uses of &first_cpu global
Posted by Philippe Mathieu-Daudé 2 months ago
On 16/1/25 00:29, Philippe Mathieu-Daudé wrote:

> Philippe Mathieu-Daudé (11):
>    hw/mips/loongson3_virt: Factor generic_cpu_reset() out
>    hw/mips/loongson3_virt: Invert vCPU creation order to remove
>      &first_cpu
>    hw/mips/loongson3_virt: Have fw_conf_init() access local loaderparams
>    hw/mips/loongson3_virt: Pass CPU argument to get_cpu_freq_hz()
>    hw/mips/loongson3_bootp: Include missing headers
>    hw/mips/loongson3: Propagate cpu_count to init_loongson_params()
>    hw/mips/loongson3_virt: Propagate cpu_count to init_boot_param()
>    hw/mips/loongson3_bootp: Propagate processor_id to init_cpu_info()
>    hw/mips/loongson3_virt: Propagate processor_id to
>      init_loongson_params()
>    hw/mips/loongson3_virt: Propagate %processor_id to init_boot_param()
>    hw/mips/loongson3_bootp: Move to common_ss[]

Series queued, thanks.