Message ID | 24baefe92148f4b7968115ba13de9b0c863a65f6.1666257885.git.research_trasio@irq.a4lg.com |
---|---|
State | Accepted |
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 y7csp153494wrs; Thu, 20 Oct 2022 02:28:22 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5UZm99TFYoyNh1EqUcoIsy16iJ+srOBfgeoFxEkiieINU681d4OtC6eWQf7yy2uOZXLMtU X-Received: by 2002:a17:907:7da5:b0:78e:2c3b:55a2 with SMTP id oz37-20020a1709077da500b0078e2c3b55a2mr10039516ejc.96.1666258102090; Thu, 20 Oct 2022 02:28:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666258102; cv=none; d=google.com; s=arc-20160816; b=Cyc9Pcb+yDpqZw+kQzOOgwa2NNBh2cCrmVG+5oY3193mb5QoAy/PhuQG8zfff52DAK swSqb9ybYbLr2A0svWQaCDVk5rEZvCgOaqj8Gk5zO0Z6d2UPI3xIVBbitXyuPSgDIAfB dRS+wliCt5HyfV1uHBvM4faxQXWMMbRDsbbMclSTnJI3FufCPGBgsaXkxfFa20keL1fT jrtHuGaGInHFbGY7j7drLhtFk89eyMOyiyHpEcnZMlrTFktIyGW5Cb0lUGknGm3Yvpnn Lb5cchYeN0x+f0ZrysVBnsU3KH6Kykr+fCjPIRaH7MxMtNTpVHitUmsyH1hm3D01G0s8 S5cA== 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=0V/tdGhkIsaaiO8Fr+ntbQ2+n7+CJ8QCkEclPJyfQjw=; b=iNSGFjvp+iR84/YQc9KALIEN+RoLHUkUzVnOJNo7XdoG89oQB/HWdEXEoQ8P+lKf63 ZzccJ1WdvadbWAmUILxtc4EbYtm469hqVoHfpju/kxbmA2+GoOTWoPC32XyjHHFgTnD3 PRKPHA6RSrN8d38bx8e6Ol5A4TgnDMafLLy0wPYM2SEqwx/wGNz95SFl63G8PNFpnu/J Rvt78PWQwjvRsNz0lrsK0w3z/LBNO6zsyA8sexZfeRF8UPPQ2/K3ZdNAbl1eapodgezr 1HQ8hTKJAbAoy9DyJNDen4N7i4C2udTRQQvJ0oogK/wduqa9bOuM1gQR/MVGEH28FtQ3 MBOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=kpQzaO02; 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 b25-20020aa7c6d9000000b00446b33b356asi14308863eds.502.2022.10.20.02.28.21 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Oct 2022 02:28:22 -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=kpQzaO02; 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 8F547386545B for <ouuuleilei@gmail.com>; Thu, 20 Oct 2022 09:27:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8F547386545B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1666258058; bh=0V/tdGhkIsaaiO8Fr+ntbQ2+n7+CJ8QCkEclPJyfQjw=; 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=kpQzaO02C9Gd8WXoY3fRXfpSSwD7IiF+UGd6GIMzXNJUBwuXcEblbUS+DCg3oadNA OaD/Mn1JfGgwPBXZ15RKHS/TebPoct5Jh78Z+Lv3xIppJ6nu5cvBFIIffhWY1AiK40 QEHF3PaUPuFJOp3Bb7jxFH9xhGlA59ZzBI5RJS5s= 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 4636C385085B for <binutils@sourceware.org>; Thu, 20 Oct 2022 09:27:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 4636C385085B Received: from [127.0.0.1] (localhost [127.0.0.1]) by mail-sender-0.a4lg.com (Postfix) with ESMTPSA id 8DAC9300089; Thu, 20 Oct 2022 09:27:29 +0000 (UTC) To: Tsukasa OI <research_trasio@irq.a4lg.com>, Andrew Burgess <aburgess@redhat.com>, Mike Frysinger <vapier@gentoo.org>, Nick Clifton <nickc@redhat.com> Subject: [PATCH 05/40] cpu/cris: Add u-stall virtual unit to CRIS v32 Date: Thu, 20 Oct 2022 09:25:51 +0000 Message-Id: <24baefe92148f4b7968115ba13de9b0c863a65f6.1666257885.git.research_trasio@irq.a4lg.com> In-Reply-To: <cover.1666257885.git.research_trasio@irq.a4lg.com> References: <cover.1666257885.git.research_trasio@irq.a4lg.com> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-11.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, GIT_PATCH_0, KAM_NUMSUBJECT, 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 <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?1747198255811714975?= X-GMAIL-MSGID: =?utf-8?q?1747198255811714975?= |
Series |
sim+gdb: Suppress warnings if built with Clang (big batch 1)
|
|
Checks
Context | Check | Description |
---|---|---|
snail/binutils-gdb-check | success | Github commit url |
Commit Message
Tsukasa OI
Oct. 20, 2022, 9:25 a.m. UTC
Because CRIS v32 model does not define u-stall virtual unit, CGEN-generated sim/cris/decodev32.h does not define the function declaration of crisv32f_model_crisv32_u_stall. It led to a hack in commit 4e6e8ba7c565 ("sim: cris: clean up missing func prototype warnings"), manually adding the declaration of crisv32f_model_crisv32_u_stall. To **not** touch CGEN-generated files manually, this commit adds u-stall virtual unit for CRIS v32 to let CGEN generate the function declaration of crisv32f_model_crisv32_u_stall automatically. This is still hackish but less than the previous one. cpu/ChangeLog: * cris.cpu: Add u-stall virtual unit to CRIS v32. --- cpu/cris.cpu | 1 + 1 file changed, 1 insertion(+)
Comments
On Thu, 20 Oct 2022, Tsukasa OI via Binutils wrote: > Because CRIS v32 model does not define u-stall virtual unit, CGEN-generated > sim/cris/decodev32.h does not define the function declaration of > crisv32f_model_crisv32_u_stall. > > It led to a hack in commit 4e6e8ba7c565 ("sim: cris: clean up missing func > prototype warnings"), manually adding the declaration of > crisv32f_model_crisv32_u_stall. > > To **not** touch CGEN-generated files manually, this commit adds u-stall > virtual unit for CRIS v32 to let CGEN generate the function declaration of > crisv32f_model_crisv32_u_stall automatically. > > This is still hackish but less than the previous one. Why "hackish"? You mean cgen should not hork on not all models defining all the same units even if unused? > cpu/ChangeLog: > > * cris.cpu: Add u-stall virtual unit to CRIS v32. Ok, thanks, with or without a comment above it saying "This unit is not used in CRIS v32 but needs to be defined for CGEN". brgds, H-P
diff --git a/cpu/cris.cpu b/cpu/cris.cpu index cd85f4e94e2..a2d054f954c 100644 --- a/cpu/cris.cpu +++ b/cpu/cris.cpu @@ -284,6 +284,7 @@ (unit u-const16 "Fetch 16-bit operand" () 1 1 () () () ()) (unit u-const32 "Fetch 32-bit operand" () 1 1 () () () ()) (unit u-skip4 "Skip 4 bytes" () 1 1 () () () ()) + (unit u-stall "Stall unit" () 1 1 () () () ()) ; For v32, we need to keep track of inputs (for movem destination ; cycle penalties) and output (for e.g. memory source and jump