qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Sergey Fedorov <serge.fdrv@gmail.com>
To: qemu-devel@nongnu.org
Cc: Peter Maydell <peter.maydell@linaro.org>,
	Sergey Fedorov <serge.fdrv@gmail.com>
Subject: [Qemu-devel] [PATCH 2/3] hw/arm/vexpress: introduce VEDBoardInfo::smp_bootreg_addr
Date: Tue, 24 Mar 2015 16:55:30 -0700	[thread overview]
Message-ID: <1427241331-11403-3-git-send-email-serge.fdrv@gmail.com> (raw)
In-Reply-To: <1427241331-11403-1-git-send-email-serge.fdrv@gmail.com>

Require secondary CPU release address to be specified explicitly in each
daughterboard info structure.

Signed-off-by: Sergey Fedorov <serge.fdrv@gmail.com>
---
 hw/arm/vexpress.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/hw/arm/vexpress.c b/hw/arm/vexpress.c
index 8496c16..97ccf15 100644
--- a/hw/arm/vexpress.c
+++ b/hw/arm/vexpress.c
@@ -186,6 +186,7 @@ struct VEDBoardInfo {
     struct arm_boot_info bootinfo;
     const hwaddr *motherboard_map;
     hwaddr loader_start;
+    hwaddr smp_bootreg_addr;
     const hwaddr gic_cpu_if_addr;
     uint32_t proc_id;
     uint32_t num_voltage_sensors;
@@ -337,6 +338,7 @@ static const uint32_t a9_clocks[] = {
 static VEDBoardInfo a9_daughterboard = {
     .motherboard_map = motherboard_legacy_map,
     .loader_start = 0x60000000,
+    .smp_bootreg_addr = 0x10000030,
     .gic_cpu_if_addr = 0x1e000100,
     .proc_id = 0x0c000191,
     .num_voltage_sensors = ARRAY_SIZE(a9_voltages),
@@ -418,6 +420,7 @@ static const uint32_t a15_clocks[] = {
 static VEDBoardInfo a15_daughterboard = {
     .motherboard_map = motherboard_aseries_map,
     .loader_start = 0x80000000,
+    .smp_bootreg_addr = 0x1c010030,
     .gic_cpu_if_addr = 0x2c002000,
     .proc_id = 0x14000237,
     .num_voltage_sensors = ARRAY_SIZE(a15_voltages),
@@ -700,7 +703,7 @@ static void vexpress_common_init(MachineState *machine)
     daughterboard->bootinfo.board_id = VEXPRESS_BOARD_ID;
     daughterboard->bootinfo.loader_start = daughterboard->loader_start;
     daughterboard->bootinfo.smp_loader_start = map[VE_SRAM];
-    daughterboard->bootinfo.smp_bootreg_addr = map[VE_SYSREGS] + 0x30;
+    daughterboard->bootinfo.smp_bootreg_addr = daughterboard->smp_bootreg_addr;
     daughterboard->bootinfo.gic_cpu_if_addr = daughterboard->gic_cpu_if_addr;
     daughterboard->bootinfo.modify_dtb = vexpress_modify_dtb;
     /* Indicate that when booting Linux we should be in secure state */
-- 
2.3.4

  parent reply	other threads:[~2015-03-24 23:55 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-24 23:55 [Qemu-devel] [PATCH 0/3] hw/arm: add Fixed Virtual Platform VE support Sergey Fedorov
2015-03-24 23:55 ` [Qemu-devel] [PATCH 1/3] hw/arm/boot: add secondary loader for AArch64 Sergey Fedorov
2015-03-24 23:55 ` Sergey Fedorov [this message]
2015-03-24 23:55 ` [Qemu-devel] [PATCH 3/3] hw/arm/vexpress: add FVP VE board support Sergey Fedorov
2015-03-25  0:13 ` [Qemu-devel] [PATCH 0/3] hw/arm: add Fixed Virtual Platform VE support Peter Maydell
2015-03-25  0:18   ` Sergey Fedorov
2015-03-25  0:23     ` Peter Maydell
2015-03-25  0:31       ` Sergey Fedorov
2015-03-25  0:48         ` Peter Maydell
2015-03-25  1:30           ` Sergey Fedorov
2015-03-25  1:43             ` Sergey Fedorov
2015-03-25 11:06               ` Peter Maydell
2015-03-25 17:52                 ` Sergey Fedorov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1427241331-11403-3-git-send-email-serge.fdrv@gmail.com \
    --to=serge.fdrv@gmail.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).