From nobody Wed Oct 29 11:33:37 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; dmarc=fail(p=none dis=none) header.from=gmail.com Return-Path: Received: from lists.gnu.org (208.118.235.17 [208.118.235.17]) by mx.zohomail.com with SMTPS id 152534878678944.59178946221516; Thu, 3 May 2018 04:59:46 -0700 (PDT) Received: from localhost ([::1]:55537 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fECtf-00076w-50 for importer@patchew.org; Thu, 03 May 2018 07:59:39 -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) 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) 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) 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+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: "Edgar E. Iglesias" Add the Cortex-R5F with the optional FPU enabled. Signed-off-by: Edgar E. Iglesias Reviewed-by: Alistair Francis Reviewed-by: KONRAD Frederic Reviewed-by: Philippe Mathieu-Daud=C3=A9 Tested-by: Philippe Mathieu-Daud=C3=A9 --- 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); } =20 +static void cortex_r5f_initfn(Object *obj) +{ + ARMCPU *cpu =3D ARM_CPU(obj); + + cortex_r5_initfn(obj); + set_feature(&cpu->env, ARM_FEATURE_VFP3); +} + static const ARMCPRegInfo cortexa8_cp_reginfo[] =3D { { .name =3D "L2LOCKDOWN", .cp =3D 15, .crn =3D 9, .crm =3D 0, .opc1 = =3D 1, .opc2 =3D 0, .access =3D PL1_RW, .type =3D ARM_CP_CONST, .resetvalue =3D 0 }, @@ -1801,6 +1809,7 @@ static const ARMCPUInfo arm_cpus[] =3D { { .name =3D "cortex-m33", .initfn =3D cortex_m33_initfn, .class_init =3D arm_v7m_class_init }, { .name =3D "cortex-r5", .initfn =3D cortex_r5_initfn }, + { .name =3D "cortex-r5f", .initfn =3D cortex_r5f_initfn }, { .name =3D "cortex-a7", .initfn =3D cortex_a7_initfn }, { .name =3D "cortex-a8", .initfn =3D cortex_a8_initfn }, { .name =3D "cortex-a9", .initfn =3D cortex_a9_initfn }, --=20 2.14.1