From patchwork Mon Oct 3 10:44:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tsukasa OI X-Patchwork-Id: 1649 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp886829wrs; Mon, 3 Oct 2022 03:48:45 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5y9SIYozbZx+A8acfT+ws/Nk/bm4SOdTp3JAu+hGqjD+zRiVFrZuvdLBdi+CmBlX8KvbYa X-Received: by 2002:a17:907:94c1:b0:787:84c3:e98 with SMTP id dn1-20020a17090794c100b0078784c30e98mr14858510ejc.269.1664794124892; Mon, 03 Oct 2022 03:48:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664794124; cv=none; d=google.com; s=arc-20160816; b=NAPX3WrCSHhNEZANn3NsPRHk6Bo02lixTsJBr0vrwkJs5aQPMu7TylUiZTnVMIrNXM /JRaEQuXWFSDLTj69XzU+J3VuUXgRaqyHvy1/LKCZh6z2XLoTvninTVin08IoxMv10Qc 9vp6oQMo74ChT/8ZvYHHmi9wkL1hhWuSazsvO+EBJOWwCK5hKdn7UakJyEXb57Lnytbp 102WvOpw7nGxtZP1WG7JKAZ4DyINAwC+K0q+hEscv3FQkTuxujYwPjDfItFYglxIrRlT Mkc2NW+meLR++WPHmfuU1yT53Zhyg/CeOaedVjvptjSEh3apAUvbVl3VAnFNhl/4+kDo qptQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:reply-to:from:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:dmarc-filter:delivered-to:dkim-signature :dkim-filter; bh=+wQ5M7xBeDVkp4hjFx9bOcDf/pLEQwTqN4LaSEWD+XE=; b=Y+8VzLv7Afa8QeYcviX4L2Fe8slm+r+6+sBU4RNZ5yfPEjcTwFxqVtWB5cXE2TmKvg f6PJW9i6iP1elLkvvQxdLFpwknTQpW/jjQkqrKQm0TB4MkhxvJFmeK1PDMDutCbF0OWL B++Sswqd27mF8KMGBvaBpJQs2t9qp06BSFAAwEvdVn7jKdtaRSzahU6povjynj6xqxqU m6MZR9REZ+2pp/BVulxIMPcfISEi4VO770ImW0IMXyjDPxTNbiX1QPOSJ018c3PCH1L5 RcOw3DnCU8ZZ6bPDPdvxOIWX34YG0MlwmIxuLSzgi56L7oJL8OROFqrYXr1MBj7cvtJ6 yh7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=Z1mMGTOk; spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sourceware.org Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id l15-20020a1709067d4f00b00781dbeebeb1si6950015ejp.585.2022.10.03.03.48.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Oct 2022 03:48:44 -0700 (PDT) Received-SPF: pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=Z1mMGTOk; spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id AEFD6384B81F for ; Mon, 3 Oct 2022 10:47:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AEFD6384B81F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1664794022; bh=+wQ5M7xBeDVkp4hjFx9bOcDf/pLEQwTqN4LaSEWD+XE=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=Z1mMGTOk6+H7PD5pvDP1QpYCt1AqKiVwb+vXM/CfNygQBKMCfFEwaH0fsrwwg4PxO jS7HazXYU4E/nDqNsQbVQSaveltP8Y4oZzpw/Xk4p8cZuCqFnnUdKK6QpyemZOpNl3 FEbRneB6Rerqa5Yh8N8upL1tHHPv1wojkIWxR0pU= X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from mail-sender-0.a4lg.com (mail-sender.a4lg.com [153.120.152.154]) by sourceware.org (Postfix) with ESMTPS id 4EE2E3851AA6 for ; Mon, 3 Oct 2022 10:45:35 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 4EE2E3851AA6 Received: from [127.0.0.1] (localhost [127.0.0.1]) by mail-sender-0.a4lg.com (Postfix) with ESMTPSA id 97271300089; Mon, 3 Oct 2022 10:45:33 +0000 (UTC) To: Tsukasa OI , =?utf-8?q?Christoph_M=C3=BCll?= =?utf-8?q?ner?= , Nelson Chu , Kito Cheng , Palmer Dabbelt , Andrew Burgess Subject: [PATCH v3 6/6] RISC-V: Print XTheadMemPair literal as "immediate" Date: Mon, 3 Oct 2022 10:44:04 +0000 Message-Id: <0b68af932117258c908db62cf87c3a15d3cdec41.1664793840.git.research_trasio@irq.a4lg.com> In-Reply-To: References: Mime-Version: 1.0 X-Spam-Status: No, score=-12.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, GIT_PATCH_0, KAM_MANYTO, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Tsukasa OI via Binutils From: Tsukasa OI Reply-To: Tsukasa OI Cc: binutils@sourceware.org Errors-To: binutils-bounces+ouuuleilei=gmail.com@sourceware.org Sender: "Binutils" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1745663164590256238?= X-GMAIL-MSGID: =?utf-8?q?1745663164590256238?= The operand type "Xl(...)" denotes that (...) is a literal. Specifically, they are intended to be a constant immediate value. This commit prints "Xl(...)" operand with dis_style_immediate style, not dis_style_text. opcodes/ChangeLog: * riscv-dis.c (print_insn_args): Use dis_style_immediate on the constant literal of the "Xl..." operand. --- opcodes/riscv-dis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opcodes/riscv-dis.c b/opcodes/riscv-dis.c index c0edc4c7d6b..7da96e15b65 100644 --- a/opcodes/riscv-dis.c +++ b/opcodes/riscv-dis.c @@ -577,7 +577,7 @@ print_insn_args (const char *oparg, insn_t l, bfd_vma pc, disassemble_info *info oparg++; while (*oparg && *oparg != ',') { - print (info->stream, dis_style_text, "%c", *oparg); + print (info->stream, dis_style_immediate, "%c", *oparg); oparg++; } oparg--;