From nobody Wed Nov 5 23:47:20 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1538395437837760.9575260117994; Mon, 1 Oct 2018 05:03:57 -0700 (PDT) Received: from localhost ([::1]:37831 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g6wvc-0000i8-PB for importer@patchew.org; Mon, 01 Oct 2018 08:03:56 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35255) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g6wpn-0002kT-I6 for qemu-devel@nongnu.org; Mon, 01 Oct 2018 07:57:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g6wpm-00061i-Kx for qemu-devel@nongnu.org; Mon, 01 Oct 2018 07:57:55 -0400 Received: from greensocs.com ([193.104.36.180]:40120) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g6wph-0005ga-8D; Mon, 01 Oct 2018 07:57:49 -0400 Received: from localhost (localhost [127.0.0.1]) by greensocs.com (Postfix) with ESMTP id 66BDB511C69; Mon, 1 Oct 2018 13:57:16 +0200 (CEST) Received: from greensocs.com ([127.0.0.1]) by localhost (gs-01.greensocs.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yPJ7BXt9M8FJ; Mon, 1 Oct 2018 13:57:15 +0200 (CEST) Received: by greensocs.com (Postfix, from userid 998) id A488C511C65; Mon, 1 Oct 2018 13:57:13 +0200 (CEST) Received: from michell-laptop.home.lmichel.fr (LFbn-1-8165-82.w90-112.abo.wanadoo.fr [90.112.74.82]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: luc.michel@greensocs.com) by greensocs.com (Postfix) with ESMTPSA id 2A6C3511C6E; Mon, 1 Oct 2018 13:57:13 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=greensocs.com; s=mail; t=1538395036; bh=SEwONAKUPLnQvPdqyDN0j2bLhYtpzo2X4JReEAVA59g=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=f5iH1x1K+f/EFFA9FEUGPqRTGZoGuyPvxP3tcz9Ruawi20K5xWzAYviqMXhVmNKG0 1TpU4paB3GnvIO8Cd0ns8OjSH9FEXCmumwDfnwo8hwmGbLvf5r8sxIRcMoyZU629B3 H10uydDoMbAcdg4VDxQWmGRXl8tSmHVY90QHkcxg= X-Virus-Scanned: amavisd-new at greensocs.com Authentication-Results: gs-01.greensocs.com (amavisd-new); dkim=pass (1024-bit key) header.d=greensocs.com header.b=PPeLhYLy; dkim=pass (1024-bit key) header.d=greensocs.com header.b=PPeLhYLy DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=greensocs.com; s=mail; t=1538395033; bh=SEwONAKUPLnQvPdqyDN0j2bLhYtpzo2X4JReEAVA59g=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=PPeLhYLyxkjHLgys7VvFdUj1hRUmhndO68jRRh5o2JAxSgD2ybAOt4Epjwc4r6L5f 9XBERQTP4KY7I99Puxt7gO5da+lSk5SHBtWZ9jbhbJXpsWVXDSV9Vn/tOzUTe1WluM Ej+PlyEfTK0Qg8aYiqugcD74X5HIPgqjdUBiH04g= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=greensocs.com; s=mail; t=1538395033; bh=SEwONAKUPLnQvPdqyDN0j2bLhYtpzo2X4JReEAVA59g=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=PPeLhYLyxkjHLgys7VvFdUj1hRUmhndO68jRRh5o2JAxSgD2ybAOt4Epjwc4r6L5f 9XBERQTP4KY7I99Puxt7gO5da+lSk5SHBtWZ9jbhbJXpsWVXDSV9Vn/tOzUTe1WluM Ej+PlyEfTK0Qg8aYiqugcD74X5HIPgqjdUBiH04g= From: Luc Michel To: qemu-devel@nongnu.org Date: Mon, 1 Oct 2018 13:57:04 +0200 Message-Id: <20181001115704.701-16-luc.michel@greensocs.com> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20181001115704.701-1-luc.michel@greensocs.com> References: <20181001115704.701-1-luc.michel@greensocs.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 193.104.36.180 Subject: [Qemu-devel] [PATCH v2 15/15] arm/xlnx-zynqmp: put APUs and RPUs in separate GDB groups X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Maydell , alistair@alistair23.me, mark.burton@greensocs.com, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , saipava@xilinx.com, edgari@xilinx.com, qemu-arm@nongnu.org, Luc Michel Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (found 2 invalid signatures) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Create two separate QOM containers for APUs and RPUs to indicate to the GDB stub that those CPUs should be put in different processes. Signed-off-by: Luc Michel --- hw/arm/xlnx-zynqmp.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/hw/arm/xlnx-zynqmp.c b/hw/arm/xlnx-zynqmp.c index c195040350..5e92adbc71 100644 --- a/hw/arm/xlnx-zynqmp.c +++ b/hw/arm/xlnx-zynqmp.c @@ -22,10 +22,11 @@ #include "hw/arm/xlnx-zynqmp.h" #include "hw/intc/arm_gic_common.h" #include "exec/address-spaces.h" #include "sysemu/kvm.h" #include "kvm_arm.h" +#include "exec/gdbstub.h" =20 #define GIC_NUM_SPI_INTR 160 =20 #define ARM_PHYS_TIMER_PPI 30 #define ARM_VIRT_TIMER_PPI 27 @@ -175,17 +176,18 @@ static void xlnx_zynqmp_create_rpu(XlnxZynqMPState *s= , const char *boot_cpu, Error **errp) { Error *err =3D NULL; int i; int num_rpus =3D MIN(smp_cpus - XLNX_ZYNQMP_NUM_APU_CPUS, XLNX_ZYNQMP_= NUM_RPU_CPUS); + Object *rpu_group =3D gdb_cpu_group_container_get(OBJECT(s)); =20 for (i =3D 0; i < num_rpus; i++) { char *name; =20 object_initialize(&s->rpu_cpu[i], sizeof(s->rpu_cpu[i]), "cortex-r5f-" TYPE_ARM_CPU); - object_property_add_child(OBJECT(s), "rpu-cpu[*]", + object_property_add_child(rpu_group, "rpu-cpu[*]", OBJECT(&s->rpu_cpu[i]), &error_abort); =20 name =3D object_get_canonical_path_component(OBJECT(&s->rpu_cpu[i]= )); if (strcmp(name, boot_cpu)) { /* Secondary CPUs start in PSCI powered-down state */ @@ -210,13 +212,14 @@ static void xlnx_zynqmp_create_rpu(XlnxZynqMPState *s= , const char *boot_cpu, static void xlnx_zynqmp_init(Object *obj) { XlnxZynqMPState *s =3D XLNX_ZYNQMP(obj); int i; int num_apus =3D MIN(smp_cpus, XLNX_ZYNQMP_NUM_APU_CPUS); + Object *apu_group =3D gdb_cpu_group_container_get(obj); =20 for (i =3D 0; i < num_apus; i++) { - object_initialize_child(obj, "apu-cpu[*]", &s->apu_cpu[i], + object_initialize_child(apu_group, "apu-cpu[*]", &s->apu_cpu[i], sizeof(s->apu_cpu[i]), "cortex-a53-" TYPE_ARM_CPU, &error_abort, = NULL); } =20 sysbus_init_child_obj(obj, "gic", &s->gic, sizeof(s->gic), --=20 2.19.0