On 7/3/2026 7:44 AM, Philippe Mathieu-Daudé wrote:
On 2/7/26 15:51, Daniel Henrique Barboza wrote:
riscv_pmu_generate_fdt_node() can be moved to fdt_common.c since it has
no PMU TCG internals.

With this change we can remove pmu.h from 'virt.c', which is now
becoming a tcg header since we're moving it to the tcg subdir.

Signed-off-by: Daniel Henrique Barboza <[email protected]>
Reviewed-by: Alistair Francis <[email protected]>
---
  hw/riscv/fdt-common.c         | 52 +++++++++++++++++++++++++++++++++++
  hw/riscv/tt_atlantis.c        |  1 -
  hw/riscv/virt.c               |  1 -
  include/hw/riscv/fdt-common.h |  1 +
  target/riscv/tcg/pmu.c        | 52 -----------------------------------
  target/riscv/{ => tcg}/pmu.h  |  1 -
  6 files changed, 53 insertions(+), 55 deletions(-)
  rename target/riscv/{ => tcg}/pmu.h (95%)

Preferrably before patch #2 "target/riscv: move TCG only files to tcg
subdir" if not too much trouble:

Done.  The helper is now being moved before patch #2 and pmu.h is now being
moved in patch #2.

Thanks,
Daniel

Reviewed-by: Philippe Mathieu-Daudé <[email protected]>



Reply via email to