From patchwork Wed Oct 26 14:58:54 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Preudhomme X-Patchwork-Id: 79427 Delivered-To: patch@linaro.org Received: by 10.140.97.247 with SMTP id m110csp109109qge; Wed, 26 Oct 2016 07:59:42 -0700 (PDT) X-Received: by 10.98.156.7 with SMTP id f7mr5010085pfe.134.1477493982740; Wed, 26 Oct 2016 07:59:42 -0700 (PDT) Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id 138si3148623pgg.76.2016.10.26.07.59.42 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 26 Oct 2016 07:59:42 -0700 (PDT) Received-SPF: pass (google.com: domain of binutils-return-94223-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org; spf=pass (google.com: domain of binutils-return-94223-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=binutils-return-94223-patch=linaro.org@sourceware.org DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:subject:to:message-id:date:mime-version :content-type; q=dns; s=default; b=f0Q3eI0xeOeMJoFDIlXZCYB2+ZCKM ltsaTt4mwus1ZrC3O5wHFZWm+GjoYNFnEIoKEHN5kAfGlKJVNwAj/l9jdx8xX2rj UeQ2cJ4w4UNHmMj/sssbyItUUa+tHEWIUShwtQdbM9c530r+AqN8YYhKkX/u7Mda jTH9EoOccySb5U= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:subject:to:message-id:date:mime-version :content-type; s=default; bh=4gIS+qPZT9+062wxG/fy/qt9pOU=; b=vnH gWGu6v6c8ZLvYK7zJtX1U8kRBWK+F0/L7i3jYaWfXqpVk4q2b4FQ4pWH30w7rWQZ NIpfGnCfkFCiBNG4+TAC3TTZC/6EsKXlTJQOIFAQiCtRx7VQIoQ8AvxD9Mtc0u4r scWLI5CKPCIEUpviKGsytlGDDpiJWU1ioS57niIQ= Received: (qmail 72836 invoked by alias); 26 Oct 2016 14:59:10 -0000 Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org Delivered-To: mailing list binutils@sourceware.org Received: (qmail 72801 invoked by uid 89); 26 Oct 2016 14:59:09 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=BAYES_00, KAM_LAZY_DOMAIN_SECURITY, RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=H*Ad:U*amodra, 1316, UD:php, products X-HELO: foss.arm.com Received: from foss.arm.com (HELO foss.arm.com) (217.140.101.70) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 26 Oct 2016 14:58:58 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 3593329; Wed, 26 Oct 2016 07:58:56 -0700 (PDT) Received: from [10.2.206.52] (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 712DC3F218; Wed, 26 Oct 2016 07:58:55 -0700 (PDT) From: Thomas Preudhomme Subject: [PATCH, gas/ARM] Add support for Cortex-M23 To: Richard Earnshaw , Nick Clifton , Alan Modra , binutils@sourceware.org Message-ID: Date: Wed, 26 Oct 2016 15:58:54 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 X-IsSubscribed: yes [resending with mailing list also as recipient this time] Hi, This patch adds support for the Cortex-M23 processors launched by ARM [1]. The patch adds support for the name and wires it up to the ARMv8-M Baseline architecture. It also updates documentation to mention this new processor. [1] http://www.arm.com/products/processors/cortex-m/cortex-m23-processor.php ChangeLog entry is as follows: *** gas/Changelog *** 2016-10-26 Thomas Preud'homme * config/tc-arm.c (cortex-m23): Declare new processor. * doc/c-arm.texi (cortex-m23): Document new processor. Tested by building libgcc and libstdc++ for Cortex-M23 and running a hello world compiled for it. Is this ok for master? Best regards, Thomas diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c index 73f8396396ff85276dc5bc92f79764d6d194b3d3..69dfe989133cbdc12f2da9d2864e6788eace3353 100644 --- a/gas/config/tc-arm.c +++ b/gas/config/tc-arm.c @@ -25406,6 +25406,8 @@ static const struct arm_cpu_option_table arm_cpus[] = ARM_CPU_OPT ("cortex-r8", ARM_ARCH_V7R_IDIV, FPU_ARCH_VFP_V3D16, "Cortex-R8"), + ARM_CPU_OPT ("cortex-m23", ARM_ARCH_V8M_BASE, + FPU_NONE, "Cortex-M23"), ARM_CPU_OPT ("cortex-m7", ARM_ARCH_V7EM, FPU_NONE, "Cortex-M7"), ARM_CPU_OPT ("cortex-m4", ARM_ARCH_V7EM, FPU_NONE, "Cortex-M4"), ARM_CPU_OPT ("cortex-m3", ARM_ARCH_V7M, FPU_NONE, "Cortex-M3"), diff --git a/gas/doc/c-arm.texi b/gas/doc/c-arm.texi index 0cf7390dc5f28dc34b33c377ff59f06f5aee2a89..565ef73250e957e2da11cc261ec9d4b5ccb9c7c2 100644 --- a/gas/doc/c-arm.texi +++ b/gas/doc/c-arm.texi @@ -131,6 +131,7 @@ recognized: @code{cortex-r5}, @code{cortex-r7}, @code{cortex-r8}, +@code{cortex-m23}, @code{cortex-m7}, @code{cortex-m4}, @code{cortex-m3},