From patchwork Thu May 3 11:56:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Edgar E. Iglesias" X-Patchwork-Id: 907984 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=208.118.235.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="bez4LYlh"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40cDFX0Ykbz9s35 for ; Thu, 3 May 2018 21:58:56 +1000 (AEST) Received: from localhost ([::1]:55531 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fECsw-0006Uz-1d for incoming@patchwork.ozlabs.org; Thu, 03 May 2018 07:58:54 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38442) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fECqb-0005Bv-QW for qemu-devel@nongnu.org; Thu, 03 May 2018 07:56:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fECqX-0006yc-9e for qemu-devel@nongnu.org; Thu, 03 May 2018 07:56:29 -0400 Received: from mail-lf0-x243.google.com ([2a00:1450:4010:c07::243]:39856) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fECqX-0006yN-2A; Thu, 03 May 2018 07:56:25 -0400 Received: by mail-lf0-x243.google.com with SMTP id j193-v6so25545040lfg.6; Thu, 03 May 2018 04:56:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=fWGQiK9J/n9qSd7ycRglbLNoFafem+ioUfRQq9TuolI=; b=bez4LYlhDP/7Y6oeJaI3x6iGye4T1DsLP5gEZSrH13Q+g+EMHlSeRrX+heoJQQAHIl MpQNBy0x55aCO9U0HMrW7PZhdn4zELgJCdQrJuthYVk3OImfnLefI5trmy5/coM++Vrl VoyyT61lyhf4EOioEh937/mYwBsxPCqX6c+0DelUorTYa+y78DlCmxa85FMruW/80xQe NcjZHxKjYgIkq6t1q2zppPTdgfS1+lWMC6GJMpfaUpkmMrXzqVlKdgm/J7Ep65jpFy0d e9QPeOeQCl6mj+ZAAjRd/VBfVLshrVdNDPkaVc2/RuINYjXB15/FFCz0psBBBLDQnY4O kFSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=fWGQiK9J/n9qSd7ycRglbLNoFafem+ioUfRQq9TuolI=; b=h9tzt/bWPiDxqfdT1/mDtXouxTQkr0Rktb4DgYSrQ3mR24Ps+3sZ8FtcDEJVnLKcKi 5WmLdpkH7rMhTY1UdXxZf8LSBhIOIF5CevRyGqfyKpshzOLWmzSvkWzWTKTCNXztuJzY jalAWA3Sgml/T7oc7VRU0KpUovssUgHhZ79mywj+43yCJbilnMUHJrOGygC0SI3fn3l2 cYMOTYF4BeDb4uNEGXdmN08m7frAE8zMHJIWiaUBqKx3aFKhlMWslua4dCiS9UbX31Px dwxt4CktqzIqQyEAc/jWjhFf+V1rQZr37VGXRNd8qiNPpQQ4D+69DLzDm+navGdFAAP4 p5xw== X-Gm-Message-State: ALQs6tAeBQkoLmFN/kbgkS9RBXsxeUt32eWtCviW47mbv+pGxwIAneox ZGe3Y6MgiZzBOKbx91Hz2Y7blA== X-Google-Smtp-Source: AB8JxZoHV7ykcdrknXnR63JNYcMnomLs5U2yyUUFc0nf2Gm0Y0Ld2/rFN5/JuNLwLPSwb+ZJAxjPYw== X-Received: by 2002:a2e:9218:: with SMTP id k24-v6mr15346343ljg.70.1525348583400; Thu, 03 May 2018 04:56:23 -0700 (PDT) Received: from gmail.com (81-231-232-130-no39.tbcn.telia.com. [81.231.232.130]) by smtp.gmail.com with ESMTPSA id p74-v6sm2802822lfe.42.2018.05.03.04.56.22 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 03 May 2018 04:56:22 -0700 (PDT) From: "Edgar E. Iglesias" To: qemu-devel@nongnu.org Date: Thu, 3 May 2018 13:56:19 +0200 Message-Id: <20180503115620.10596-2-edgar.iglesias@gmail.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180503115620.10596-1-edgar.iglesias@gmail.com> References: <20180503115620.10596-1-edgar.iglesias@gmail.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4010:c07::243 Subject: [Qemu-devel] [PATCH v1 1/2] target-arm: Add the Cortex-R5F 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: edgar.iglesias@xilinx.com, peter.maydell@linaro.org, sai.pavan.boddu@xilinx.com, frasse.iglesias@gmail.com, alistair@alistair23.me, frederic.konrad@adacore.com, qemu-arm@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" From: "Edgar E. Iglesias" Add the Cortex-R5F with the optional FPU enabled. Signed-off-by: Edgar E. Iglesias Reviewed-by: KONRAD Frederic Reviewed-by: Alistair Francis Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé --- target/arm/cpu.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/target/arm/cpu.c b/target/arm/cpu.c index d175c5e94f..7a7035c037 100644 --- a/target/arm/cpu.c +++ b/target/arm/cpu.c @@ -1341,6 +1341,14 @@ static void cortex_r5_initfn(Object *obj) define_arm_cp_regs(cpu, cortexr5_cp_reginfo); } +static void cortex_r5f_initfn(Object *obj) +{ + ARMCPU *cpu = ARM_CPU(obj); + + cortex_r5_initfn(obj); + set_feature(&cpu->env, ARM_FEATURE_VFP3); +} + static const ARMCPRegInfo cortexa8_cp_reginfo[] = { { .name = "L2LOCKDOWN", .cp = 15, .crn = 9, .crm = 0, .opc1 = 1, .opc2 = 0, .access = PL1_RW, .type = ARM_CP_CONST, .resetvalue = 0 }, @@ -1801,6 +1809,7 @@ static const ARMCPUInfo arm_cpus[] = { { .name = "cortex-m33", .initfn = cortex_m33_initfn, .class_init = arm_v7m_class_init }, { .name = "cortex-r5", .initfn = cortex_r5_initfn }, + { .name = "cortex-r5f", .initfn = cortex_r5f_initfn }, { .name = "cortex-a7", .initfn = cortex_a7_initfn }, { .name = "cortex-a8", .initfn = cortex_a8_initfn }, { .name = "cortex-a9", .initfn = cortex_a9_initfn }, From patchwork Thu May 3 11:56:20 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Edgar E. Iglesias" X-Patchwork-Id: 907981 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=208.118.235.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="WteAm45k"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40cDCP2G0Cz9s3q for ; Thu, 3 May 2018 21:57:05 +1000 (AEST) Received: from localhost ([::1]:55520 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fECr9-0005Bh-8r for incoming@patchwork.ozlabs.org; Thu, 03 May 2018 07:57:03 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38422) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fECqZ-0005BU-S7 for qemu-devel@nongnu.org; Thu, 03 May 2018 07:56:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fECqY-0006yv-Q0 for qemu-devel@nongnu.org; Thu, 03 May 2018 07:56:27 -0400 Received: from mail-lf0-x243.google.com ([2a00:1450:4010:c07::243]:44716) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fECqY-0006yg-Hb; Thu, 03 May 2018 07:56:26 -0400 Received: by mail-lf0-x243.google.com with SMTP id h197-v6so25505167lfg.11; Thu, 03 May 2018 04:56:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=VsuIftqb9oiT0zJGWF10gqiR4mz8au3KDT5F4swM9tk=; b=WteAm45kW7N3qQf/tr8JM194kLliwyuPtlujL+DfMAUfIP2HkVupb0aOx6PsJKnBhV EJUzmlvXpIHJG+gjczT4m9bzKF41HXii1Nh66MoVzz+JxQnK7Af7bNqjoEJzjcrndzyO xsZ5Ll0+JslOgGJhpL+TZcFaNvkydTGDa0P8cPbQA2FGugxgTJm1hHkLOtI/2EYA1iOA XvvIO4kABB3ws74Pqg2EA3xbjhZPB019XX3Vpy3mDclgyLvgEt7y3KzVivvDAQOGDx9J SN0dI4iCiAPy+GlL+i1QW/q/BgEQoCCabfukvjbC042KWjjeVvrCTMLeWWo3SiDabQZA Ejuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=VsuIftqb9oiT0zJGWF10gqiR4mz8au3KDT5F4swM9tk=; b=jMiE1OtRT0tdJCRdCF3x/MAIfGt6Sf9ZZKH8cVFbEFAQID01qRkgwru5BFVyihNXu2 35V3l3ZYtZE6aKaiLImIpGsGmIGfHmYdfhLqKUWtY0NJe9o1fVJ4Dphwm6C5qDd01txi +R8F6GxQw9TSyyk0XXUW2blcvs9kbeynDLZGBGlg7gvEw/Kvc0LkiRLz/2dJbd8JN+fl OSAx6oXLEiSRvD4RgGRDI8iMekrT3/8UhVV9ALVAkcLHb3myT2C/dJ6MI6hUrCIsDIR/ uKdquxU1Qnx86+NK4aayfPvxX19QEVf627+cpCe51nPHn5hiBlgUENnAMajhu+lA2Oyn jrmA== X-Gm-Message-State: ALQs6tAIDvukVE0ALDcReAIk2Ej5ICkirbviUT29W4tlCzglv41Rx30M ltl13PpG41gZ5TYeS8Hisesp3A== X-Google-Smtp-Source: AB8JxZoz77mqUOmIx6JEn8r+8cOJTkx75j2Cv1NUZkmK/At+1RvFPvm00ItMEuIyn3PiSHUDhVsRSQ== X-Received: by 2002:a2e:4dd6:: with SMTP id c83-v6mr15380728ljd.126.1525348584922; Thu, 03 May 2018 04:56:24 -0700 (PDT) Received: from gmail.com (81-231-232-130-no39.tbcn.telia.com. [81.231.232.130]) by smtp.gmail.com with ESMTPSA id o18-v6sm2774901lfg.16.2018.05.03.04.56.23 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 03 May 2018 04:56:24 -0700 (PDT) From: "Edgar E. Iglesias" To: qemu-devel@nongnu.org Date: Thu, 3 May 2018 13:56:20 +0200 Message-Id: <20180503115620.10596-3-edgar.iglesias@gmail.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180503115620.10596-1-edgar.iglesias@gmail.com> References: <20180503115620.10596-1-edgar.iglesias@gmail.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4010:c07::243 Subject: [Qemu-devel] [PATCH v1 2/2] xlnx-zynqmp: Swap Cortex-R5 for Cortex-R5F 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: edgar.iglesias@xilinx.com, peter.maydell@linaro.org, sai.pavan.boddu@xilinx.com, frasse.iglesias@gmail.com, alistair@alistair23.me, frederic.konrad@adacore.com, qemu-arm@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" From: "Edgar E. Iglesias" The ZynqMP has Cortex-R5Fs with the optional FPU enabled. Signed-off-by: Edgar E. Iglesias Reviewed-by: KONRAD Frederic Reviewed-by: Alistair Francis Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé --- hw/arm/xlnx-zynqmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/arm/xlnx-zynqmp.c b/hw/arm/xlnx-zynqmp.c index 505253e0d2..efeb53c732 100644 --- a/hw/arm/xlnx-zynqmp.c +++ b/hw/arm/xlnx-zynqmp.c @@ -116,7 +116,7 @@ static void xlnx_zynqmp_create_rpu(XlnxZynqMPState *s, const char *boot_cpu, char *name; object_initialize(&s->rpu_cpu[i], sizeof(s->rpu_cpu[i]), - "cortex-r5-" TYPE_ARM_CPU); + "cortex-r5f-" TYPE_ARM_CPU); object_property_add_child(OBJECT(s), "rpu-cpu[*]", OBJECT(&s->rpu_cpu[i]), &error_abort);