From patchwork Thu Dec 21 05:03:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Frysinger X-Patchwork-Id: 82625 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 3FEF33861875 for ; Thu, 21 Dec 2023 05:03:46 +0000 (GMT) X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) by sourceware.org (Postfix) with ESMTP id B3E4838582BD for ; Thu, 21 Dec 2023 05:03:19 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B3E4838582BD Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gentoo.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gentoo.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org B3E4838582BD Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2001:470:ea4a:1:5054:ff:fec7:86e4 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1703135000; cv=none; b=dnOSpi+ud9pTrSNZE6pnkKtHp+2dnynISiWVdBQl9bHIRsFt26ZEqcYtAKUiBjTowxjeRbcpj1uqxQ+xY9XA9aax1IB7ILV0rGTcHRwsGKVnK5c77zSTI1f8eq2Y0Z7c2sll4ZkkFlwrKBYzh/Qo2++DjDVb4ZpuDOGniFSnDGk= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1703135000; c=relaxed/simple; bh=CeDLiZzUrCxEd8gqP27+x1YCDnwQugLSGngn421997o=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=IS9K4ymIPj81cwPxzhtsM/1Sfb7vGtMg2/4CG0oQ+v0aEzftl8zmOKBYoTha7t2yieznWEPd6LUCieCAK7YHlrRpZ+jSt3tlhW/0MMYQmtfTljIEMs9z/KioDNZFxDqVI8PDhOG3QPR8EPU8Qol+4Gt95O+y8f7jN6Fia21V7I8= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by smtp.gentoo.org (Postfix, from userid 559) id 64BEE340943; Thu, 21 Dec 2023 05:03:19 +0000 (UTC) From: Mike Frysinger To: gdb-patches@sourceware.org Subject: [PATCH/ccommitted 2/3] sim: mn10300: fix LAST_TIMER_REG typo Date: Thu, 21 Dec 2023 00:03:14 -0500 Message-ID: <20231221050315.23130-2-vapier@gentoo.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231221050315.23130-1-vapier@gentoo.org> References: <20231221050315.23130-1-vapier@gentoo.org> MIME-Version: 1.0 X-Spam-Status: No, score=-11.2 required=5.0 tests=BAYES_00, GIT_PATCH_0, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE 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: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces+patchwork=sourceware.org@sourceware.org The compiler pointed out that we're testing LAST_TIMER_REG and LAST_COUNTER which are the same value ... and that's because we set LAST_TIMER_REG to the wrong register. Fix the typo. --- sim/mn10300/dv-mn103tim.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sim/mn10300/dv-mn103tim.c b/sim/mn10300/dv-mn103tim.c index 95ebc82b9e04..b1844a68e37e 100644 --- a/sim/mn10300/dv-mn103tim.c +++ b/sim/mn10300/dv-mn103tim.c @@ -86,7 +86,7 @@ enum timer_register_types { TM6MDB, TM6CA, TM6CB, - LAST_TIMER_REG = TM6BC, + LAST_TIMER_REG = TM6CB, };