From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-sender-0.a4lg.com (mail-sender.a4lg.com [153.120.152.154]) by sourceware.org (Postfix) with ESMTPS id 4636C385085B for ; Thu, 20 Oct 2022 09:27:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 4636C385085B Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=irq.a4lg.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=irq.a4lg.com 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=irq.a4lg.com; s=2017s01; t=1666258049; bh=0V/tdGhkIsaaiO8Fr+ntbQ2+n7+CJ8QCkEclPJyfQjw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Mime-Version:Content-Transfer-Encoding; b=TFmVwkjWV0sRSyzFH4jxz0oISqGL1qp10IocE6GWT92C8bxFz6HjG6T6UJq1EbMZr oitjsF6FPXB4V4p7nJcoIJMoRg8bvBMbNwY3QZRiBdvFhNI1xxZzdAxzPAmy0IaJ1p Tun5vke0J6shhAc08lxhZZNMIW6i/J0XtKCLSU0A= From: Tsukasa OI To: Tsukasa OI , Andrew Burgess , Mike Frysinger , Nick Clifton Cc: binutils@sourceware.org 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: References: 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 List-Id: 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(+) 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 -- 2.34.1