From patchwork Wed Mar 3 17:05:35 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Thierry X-Patchwork-Id: 12114567 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 476EDC433DB for ; Wed, 3 Mar 2021 23:42:27 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A9C5760C41 for ; Wed, 3 Mar 2021 23:42:24 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A9C5760C41 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=jlT7WYStVTDjSltq9d+s0GNOMx0BGTm1qG7150+9L9w=; b=fVOh5Xh+QMhtbSeQG9QQKmxeL DasxormD86azEPa1cpAA8vG4RMYb5qNRuWp68lYl5952r/5Jw9w1m8k8FPyrAPW0awr00ZEJriHiP BXfEeh+sPIWVT4ZXp445ne05STE3vbo7MyeVQ4X4bq8E8fJKgQQhpA0zgoh/p0FQiCljzabulLXRR el+T+QuLpxLxH6J1HR1VyPew+OSLB0NeBIV5IOpgFlAvcl415YHEZK+ZLVP1jTzGJZ5+sDDPH4svZ Mj/kbs5Yo/AwxC8WIrS76lZiEHenqyt2oeQU4bBK03Vv9YAlXpvflDf+GxxmWKXESp41K1RaHfSM6 Fz1GBoecw==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lHb2N-006zCT-Sb; Wed, 03 Mar 2021 23:36:29 +0000 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lHUyM-005jSr-Kj for linux-arm-kernel@lists.infradead.org; Wed, 03 Mar 2021 17:07:45 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1614791260; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=64/r5WkavI4S3gZoMp8frzL6ATRD8fIGn6DON6cVWDE=; b=U3mQ9ualQ7bDDdgQ2OjMR+Sly3BZdX1PIjFQ9BCFEpW/Nvreg6KtdDjYbvuxOnoDrT62xJ qjTb5S49jvz57UW7Q3IvjtMS3WKf72QxsjgKdX9/h0yAoSxtggHNYaJrrWK8rUiTOSUMqK Vk6oUq802WK+Z3ygLRazshDQRHAKMXM= Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-443-EMg2HvuPOd6OOJHL7I3YfQ-1; Wed, 03 Mar 2021 12:06:10 -0500 X-MC-Unique: EMg2HvuPOd6OOJHL7I3YfQ-1 Received: by mail-wr1-f72.google.com with SMTP id h5so4602345wrr.17 for ; Wed, 03 Mar 2021 09:06:08 -0800 (PST) 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:mime-version:content-transfer-encoding; bh=64/r5WkavI4S3gZoMp8frzL6ATRD8fIGn6DON6cVWDE=; b=tpDNgpXgEGNAWj8SNMy16jxSyPlEimCWKx617w9uVSJmUkEpWAK7Yyv8PbYF25yV/a SKBLRoZgRCciJLXivkhvJC8V3O/qElAhDTNxLDCjR8ueXJlTvau7xiUCiegyNDkryZKw PmXZ3xtpegtLg3yUTcDgVwZncRGKHEs+YR9KDhTVOvxzMeJAp5j/5wlnCbh2JB8kw9vZ wcFKxKKdadaxCxCMnSVVB+YqKukVjNfFmtHMxIfwPqYuZemZ2vc2LFcMzf4iicip6NTk xz+yzZwb+7EEw1Fi3MYC/VT3kdkCHf/7w4tbvy621injwwAPEuf/HZrOsBdwJPSkc7LQ vfJA== X-Gm-Message-State: AOAM530D56i5C3lflhnCRCI7QQ1k06tO22yngEE5wDSnxFkXJdhj7ue6 zgHwOTzJnKegIvo4uNDpeYDCIuoVEYxHcHNuuytO0HMsI3LlU6PUqeZ8BQcuNAALbt3xeftcbIB /CM0aWUiVLSkMTjKs144sweeakLacF7g9WYY= X-Received: by 2002:a5d:56c9:: with SMTP id m9mr27514924wrw.422.1614791167644; Wed, 03 Mar 2021 09:06:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJxXgg4LC86syFIZcm3E1I9s1XBSGKdgt+1bHuhqJPSgqyu1UN0Tf170oV70c/ULAuYT4m1/Rw== X-Received: by 2002:a5d:56c9:: with SMTP id m9mr27514907wrw.422.1614791167413; Wed, 03 Mar 2021 09:06:07 -0800 (PST) Received: from redfedo.redhat.com ([2a01:cb14:499:3d00:cd47:f651:9d80:157a]) by smtp.gmail.com with ESMTPSA id d29sm32957827wra.51.2021.03.03.09.06.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 09:06:07 -0800 (PST) From: Julien Thierry To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: catalin.marinas@arm.com, will@kernel.org, mark.rutland@arm.com, broonie@kernel.org, ycote@redhat.com, Julien Thierry Subject: [RFC PATCH v2 7/8] arm64: insn: Add some opcodes to instruction decoder Date: Wed, 3 Mar 2021 18:05:35 +0100 Message-Id: <20210303170536.1838032-8-jthierry@redhat.com> X-Mailer: git-send-email 2.25.4 In-Reply-To: <20210303170536.1838032-1-jthierry@redhat.com> References: <20210303170536.1838032-1-jthierry@redhat.com> MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=jthierry@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add decoding capability for some instructions that objtool will need to decode. Signed-off-by: Julien Thierry --- arch/arm64/include/asm/insn.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm64/include/asm/insn.h b/arch/arm64/include/asm/insn.h index 185f52ef0228..388aa22eacb1 100644 --- a/arch/arm64/include/asm/insn.h +++ b/arch/arm64/include/asm/insn.h @@ -296,6 +296,12 @@ __AARCH64_INSN_FUNCS(adr, 0x9F000000, 0x10000000) __AARCH64_INSN_FUNCS(adrp, 0x9F000000, 0x90000000) __AARCH64_INSN_FUNCS(prfm, 0x3FC00000, 0x39800000) __AARCH64_INSN_FUNCS(prfm_lit, 0xFF000000, 0xD8000000) +__AARCH64_INSN_FUNCS(store_imm, 0x3FC00000, 0x39000000) +__AARCH64_INSN_FUNCS(load_imm, 0x3FC00000, 0x39400000) +__AARCH64_INSN_FUNCS(store_pre, 0x3FE00C00, 0x38000C00) +__AARCH64_INSN_FUNCS(load_pre, 0x3FE00C00, 0x38400C00) +__AARCH64_INSN_FUNCS(store_post, 0x3FE00C00, 0x38000400) +__AARCH64_INSN_FUNCS(load_post, 0x3FE00C00, 0x38400400) __AARCH64_INSN_FUNCS(str_reg, 0x3FE0EC00, 0x38206800) __AARCH64_INSN_FUNCS(ldadd, 0x3F20FC00, 0x38200000) __AARCH64_INSN_FUNCS(ldr_reg, 0x3FE0EC00, 0x38606800) @@ -304,6 +310,8 @@ __AARCH64_INSN_FUNCS(ldrsw_lit, 0xFF000000, 0x98000000) __AARCH64_INSN_FUNCS(exclusive, 0x3F800000, 0x08000000) __AARCH64_INSN_FUNCS(load_ex, 0x3F400000, 0x08400000) __AARCH64_INSN_FUNCS(store_ex, 0x3F400000, 0x08000000) +__AARCH64_INSN_FUNCS(stp, 0x7FC00000, 0x29000000) +__AARCH64_INSN_FUNCS(ldp, 0x7FC00000, 0x29400000) __AARCH64_INSN_FUNCS(stp_post, 0x7FC00000, 0x28800000) __AARCH64_INSN_FUNCS(ldp_post, 0x7FC00000, 0x28C00000) __AARCH64_INSN_FUNCS(stp_pre, 0x7FC00000, 0x29800000) @@ -336,6 +344,7 @@ __AARCH64_INSN_FUNCS(rev64, 0x7FFFFC00, 0x5AC00C00) __AARCH64_INSN_FUNCS(and, 0x7F200000, 0x0A000000) __AARCH64_INSN_FUNCS(bic, 0x7F200000, 0x0A200000) __AARCH64_INSN_FUNCS(orr, 0x7F200000, 0x2A000000) +__AARCH64_INSN_FUNCS(mov_reg, 0x7FE0FFE0, 0x2A0003E0) __AARCH64_INSN_FUNCS(orn, 0x7F200000, 0x2A200000) __AARCH64_INSN_FUNCS(eor, 0x7F200000, 0x4A000000) __AARCH64_INSN_FUNCS(eon, 0x7F200000, 0x4A200000)