[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 10/10] hw/arm/highbank: Use AddressSpace when using write_seco
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH v2 10/10] hw/arm/highbank: Use AddressSpace when using write_secondary_boot() |
Date: |
Fri, 18 Oct 2019 00:58:00 +0200 |
write_secondary_boot() is used in SMP configurations where the
CPU address space might not be the main System Bus.
The rom_add_blob_fixed_as() function allow us to specify an
address space. Use it to write each boot blob in the corresponding
CPU address space.
Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
---
hw/arm/highbank.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/hw/arm/highbank.c b/hw/arm/highbank.c
index f1724d6929..518d935fdf 100644
--- a/hw/arm/highbank.c
+++ b/hw/arm/highbank.c
@@ -78,7 +78,8 @@ static void hb_write_secondary(ARMCPU *cpu, const struct
arm_boot_info *info)
for (n = 0; n < ARRAY_SIZE(smpboot); n++) {
smpboot[n] = tswap32(smpboot[n]);
}
- rom_add_blob_fixed("smpboot", smpboot, sizeof(smpboot), SMP_BOOT_ADDR);
+ rom_add_blob_fixed_as("smpboot", smpboot, sizeof(smpboot), SMP_BOOT_ADDR,
+ arm_boot_address_space(cpu, info));
}
static void hb_reset_secondary(ARMCPU *cpu, const struct arm_boot_info *info)
--
2.21.0
- [PATCH v2 02/10] hw/arm/bcm2835_peripherals: Use the thermal sensor block, (continued)
- [PATCH v2 02/10] hw/arm/bcm2835_peripherals: Use the thermal sensor block, Philippe Mathieu-Daudé, 2019/10/17
- [PATCH v2 03/10] hw/timer/bcm2835: Add the BCM2835 SYS_timer, Philippe Mathieu-Daudé, 2019/10/17
- [PATCH v2 04/10] hw/arm/bcm2835_peripherals: Use the SYS_timer, Philippe Mathieu-Daudé, 2019/10/17
- [PATCH v2 05/10] hw/arm/bcm2836: Make the SoC code modular, Philippe Mathieu-Daudé, 2019/10/17
- [PATCH v2 06/10] hw/arm/bcm2836: Create VideoCore address space in the SoC, Philippe Mathieu-Daudé, 2019/10/17
- [PATCH v2 08/10] hw/arm/raspi: Use AddressSpace when using arm_boot::write_secondary_boot, Philippe Mathieu-Daudé, 2019/10/17
- [PATCH v2 07/10] hw/arm/bcm2836: Use per CPU address spaces, Philippe Mathieu-Daudé, 2019/10/17
- [PATCH v2 10/10] hw/arm/highbank: Use AddressSpace when using write_secondary_boot(),
Philippe Mathieu-Daudé <=
- [PATCH v2 09/10] hw/arm/raspi: Make the board code modular, Philippe Mathieu-Daudé, 2019/10/17
- Re: [PATCH v2 00/10] hw/arm/raspi: Add thermal/timer, improve multicore address space, no-reply, 2019/10/18