]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/arm/aspeed: Move aspeed_install_boot_rom to common SoC code
authorJamin Lin <jamin_lin@aspeedtech.com>
Thu, 25 Sep 2025 05:05:29 +0000 (13:05 +0800)
committerCédric Le Goater <clg@redhat.com>
Mon, 29 Sep 2025 16:00:20 +0000 (18:00 +0200)
commita705e9997fd571427fc72d88c1235b1e2bd0c6fb
tree519bfa48fa7cd9cf4d771c9ebc8867a9f225ec69
parent597165ec2fb018be8aa7cefa5e3424c39fcec226
hw/arm/aspeed: Move aspeed_install_boot_rom to common SoC code

Move the boot ROM install helper into common SoC code so it can be reused
by all ASPEED boards, and decouple the API from AspeedMachineState.

Specifically:
 - Move aspeed_install_boot_rom() to hw/arm/aspeed_soc_common.c and
   declare it in include/hw/arm/aspeed_soc.h.
 - Change the helper’s signature to take AspeedSoCState * and a
   MemoryRegion * provided by the caller, instead of AspeedMachineState *.
 - Update aspeed_machine_init() call sites accordingly.

No functional change.

Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Link: https://lore.kernel.org/qemu-devel/20250925050535.2657256-4-jamin_lin@aspeedtech.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
hw/arm/aspeed.c
hw/arm/aspeed_soc_common.c
include/hw/arm/aspeed_soc.h