Message ID | cover.1664793840.git.research_trasio@irq.a4lg.com |
---|---|
Headers |
Return-Path: <binutils-bounces+ouuuleilei=gmail.com@sourceware.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp886083wrs; Mon, 3 Oct 2022 03:46:02 -0700 (PDT) X-Google-Smtp-Source: AMsMyM57tHkEfHGhiWAw0+7aF5pmViDke6jN1BViod9GcGemAIehSDLvR0CLXcCRZulApYSltCkk X-Received: by 2002:a17:907:1b12:b0:72f:9b44:f9e with SMTP id mp18-20020a1709071b1200b0072f9b440f9emr14724131ejc.653.1664793962182; Mon, 03 Oct 2022 03:46:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664793962; cv=none; d=google.com; s=arc-20160816; b=Jv9G9MZ0qs4zeutsegUEbGxyNUK5KQFBviSv5/DTcXAo9jXvzBRgZrpyIXjZ73NNfP qV76X9h2U7ZwMcQUJdALwXAT7cqWJ8wbNO6xWaDUZWDhz1PSsuU1H3dom/0Rn1Bp6C/q XdfIx5I70z+ET9jhTflS2xagB7s7OYmVZu+J3Ce9bLCna+BcblqU+4JQ0ByzFohZMp5B 3B/5xoSPP2k3kvURH1XtNrW/zdn7o7Kj683k7sjhuzJARxqy4g6wFJiO57i5QVOjeGUP BjsWfJrgbJZnKE6H41Y1yQoo7SMNwIRAOsah6OY9HYUluMV2RiPojxMYPGjr48+t6djB jkVw== 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=P4Zi1VEUlUTzTO+5jPrKxHYVO7S4+JPMRz7jrSot6c8=; b=WUWSHc/3q1yNc8fNjB/2wZQ7INoND3xuun+g8sO449b+IJrE3hg+vE4Vrpg3acPyCZ v/g3eg7CnO0J5LIxoyumNMUpQ1tWyNLzcwb8KVoY0W0hk0kJQMLXVFZntKANpQQJEaxW PWZ/eyjsGw/caRo8NvCbnahoURVqg2UPdyPDVlrLe9NhlmpPuOcO2LBDqZ/4ZoKQSter Ajx3Rclf1+60G4GPXoJ+Qwn4OyQOeKvS//Dwxst/6DFhLTCSxTUH6hdZNqkvbh5KMa1k OrXQuzjw21FCUMVOkhqVGM8yrP75bncKbcu4TmacQFITTM/YzAYu7YxFR0W80LWS3Dpb Y7bQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=pNBgCHqh; spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 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. [8.43.85.97]) by mx.google.com with ESMTPS id n12-20020a50934c000000b00448d387c327si7308672eda.181.2022.10.03.03.46.02 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Oct 2022 03:46:02 -0700 (PDT) Received-SPF: pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=pNBgCHqh; spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 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 9B0BE3854171 for <ouuuleilei@gmail.com>; Mon, 3 Oct 2022 10:45:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9B0BE3854171 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1664793929; bh=P4Zi1VEUlUTzTO+5jPrKxHYVO7S4+JPMRz7jrSot6c8=; 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=pNBgCHqhUW5fxPsKXsC1SYOXlYqRvQxvbsuCrSsLXUBEvPMCxduiSRoJJhv1EBHLc cw6dTD5Sxdi/HYgWo0z+mFUTNKOeV/fBtQs8MTZKtf1CRd7+8lf2dy55XZfSy3kRYm Xpq4pXrU8MpHy5n0nwVxRWAceCK+4/Xda2bCxOns= 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 D10853858D38 for <binutils@sourceware.org>; Mon, 3 Oct 2022 10:44:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org D10853858D38 Received: from [127.0.0.1] (localhost [127.0.0.1]) by mail-sender-0.a4lg.com (Postfix) with ESMTPSA id 45402300089; Mon, 3 Oct 2022 10:44:30 +0000 (UTC) To: Tsukasa OI <research_trasio@irq.a4lg.com>, =?utf-8?q?Christoph_M=C3=BCll?= =?utf-8?q?ner?= <christoph.muellner@vrull.eu>, Nelson Chu <nelson@rivosinc.com>, Kito Cheng <kito.cheng@sifive.com>, Palmer Dabbelt <palmer@dabbelt.com>, Andrew Burgess <aburgess@redhat.com> Subject: [PATCH v3 0/6] RISC-V: Fix disassembler types and styles Date: Mon, 3 Oct 2022 10:43:58 +0000 Message-Id: <cover.1664793840.git.research_trasio@irq.a4lg.com> In-Reply-To: <cover.1664195181.git.research_trasio@irq.a4lg.com> References: <cover.1664195181.git.research_trasio@irq.a4lg.com> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, KAM_MANYTO, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no 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 <binutils.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/binutils>, <mailto:binutils-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/binutils/> List-Post: <mailto:binutils@sourceware.org> List-Help: <mailto:binutils-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/binutils>, <mailto:binutils-request@sourceware.org?subject=subscribe> From: Tsukasa OI via Binutils <binutils@sourceware.org> Reply-To: Tsukasa OI <research_trasio@irq.a4lg.com> Cc: binutils@sourceware.org Errors-To: binutils-bounces+ouuuleilei=gmail.com@sourceware.org Sender: "Binutils" <binutils-bounces+ouuuleilei=gmail.com@sourceware.org> X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1745660067201117452?= X-GMAIL-MSGID: =?utf-8?q?1745662993969785314?= |
Series |
RISC-V: Fix disassembler types and styles
|
|
Message
Tsukasa OI
Oct. 3, 2022, 10:43 a.m. UTC
Hello, This patchset fixes various typing and styling errors on the RISC-V disassembler. Previous Patchsets: <https://sourceware.org/pipermail/binutils/2022-July/121790.html> (2022-07-13) <https://sourceware.org/pipermail/binutils/2022-August/122172.html> (2022-08-03) <https://sourceware.org/pipermail/binutils/2022-September/123090.html> (2022-09-26) Tracker on GitHub: <https://github.com/a4lg/binutils-gdb/wiki/riscv_dis_printf_styles_and_types_1> [Changes: v2 -> v3] - PATCH 5/6: Changed to %li instead of %ld I proposed (before patch: %i) because changing to %d-based felt too intrusive. - PATCH 5/6: Fixed a typo Thanks to Andrew Burgess for feedback! [Changes: v1 -> v2] - Added PATCH 5-6/6 after T-Head extensions are merged. - Slightly improved the commit messages? [Styling] - Print real immediates with the "immediate" style (PATCH 1/6) - Print comma and tabs with the "text" style (PATCH 4/6) - Print T-Head literal operand with "immediate" style (PATCH 6/6) [Typing on printf] - Fix wrong type for "%x" format specifier (PATCH 2/6) - Fix minor but various typing issues on T-Head immediates (PATCH 5/6) [Small Optimization] - Use smallest portable types possible to print (PATCH 3/6) Thanks, Tsukasa Tsukasa OI (6): RISC-V: Fix immediates to have "immediate" style RISC-V: Fix printf argument types corresponding %x RISC-V: Optimize riscv_disassemble_data printf RISC-V: Print comma and tabs as the "text" style RISC-V: Fix T-Head immediate types on printing RISC-V: Print XTheadMemPair literal as "immediate" opcodes/riscv-dis.c | 71 +++++++++++++++++++++++++-------------------- 1 file changed, 39 insertions(+), 32 deletions(-) base-commit: 2820f08f2331820808ac2f54d8e3619f36ea258b