From nobody Wed Aug 10 21:54:04 2022 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4M33cD6v4nz4YhpV; Wed, 10 Aug 2022 21:54:04 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4M33cD6TZLz47mF; Wed, 10 Aug 2022 21:54:04 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660168444; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ZUJ2DyuzIoVQaSQG2GRtDRhQ3oA5f0/2m+2SSvmR6g8=; b=rVMKtwRnwm4Pw1DoRlHFsTx9RQFJZByeLhQXXxZjDTWP3DACLTQACGVKzYcgZ5+o+vogeW rJYy156kziX+L/uOj56h7/gpcwD2sRmQ+GuM7DujAJNjrrOVbLaVtEL0ixfEd+N324Yal2 4q6EUMcq3GndD+LKqeTPCLw6hwTtpNpI4ZSTQ+F2BVejXy8dzwZ6s1Lhg/7tG7OJcgAFrE d3h2M607AqPQfwziCY01kYSKZdeXClb31mBuTXRm7fv3waQcVlXsdQU+S06ZQ0dTyLFuyv blAjPaG9Lr/g8WdS2CTwWM+nRYWVrnTuhHDxg6NXTGe00Gnntjm2jTOhZiRNpQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4M33cD5Y8fzRyR; Wed, 10 Aug 2022 21:54:04 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 27ALs4pw049860; Wed, 10 Aug 2022 21:54:04 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27ALs4nK049859; Wed, 10 Aug 2022 21:54:04 GMT (envelope-from git) Date: Wed, 10 Aug 2022 21:54:04 GMT Message-Id: <202208102154.27ALs4nK049859@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Piotr Kubaj Subject: git: a61bbc3023c5 - main - cad/nvc: fix off by one for powerpc* List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: pkubaj X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: a61bbc3023c57716d097bccbf93ba8c87872909a Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660168444; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ZUJ2DyuzIoVQaSQG2GRtDRhQ3oA5f0/2m+2SSvmR6g8=; b=kRFXVcGge+9Z4Uno6y4ARecTznaWtw3Y1mMRCpSE8jJrmexYR8teFBKCBsyvYCibzpTfCy dMSyq2bxzZm/ToAnUb74L66IfwxTiJULLbDVFFJPobaH33LP27gBbfmUhbX01K4QQiKRvt 64R77gk/cTvi7CcA82ZZMYDl9ee6WQ8aB2kV/C5s0zrVDxn75pgVyHj2I11tGbgNOgInJL q/Jfq3IYTIs9fa1WlZcj5qzgV0IuWG622+9d7IP8TGMMp1EcrX1z4DysDfzz1tu9y3iqfo L4oz4jGikEdAhvq/GzyQyOB1DQmFI9VpzX5TSNZWpddgpG0V0vAi/cv+lojeig== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1660168444; a=rsa-sha256; cv=none; b=yDWTd2+nEBYtqJipLmUl2mlJdwFW5ynh4We63IyAgWz3/0BG/kz1zr5c6tpXNn/w6GMOaS gLUhnIUlgdGPV89BjqV82tYMwx4Gjia4/DOeMK5b2ZO42q+3f7Qx8kgJY/NOjenGVo0zRA 3Sx2V9BzyGp9hgFMiydntEWcVW15KC3ZzsgASsRDGFwWUOSSa+Hb9vqWuXsZ+2TlljWeol VcZCwLlKnJ3EFjmUqax3x1ixQpHGqgspZmfOO3qwhLuDyEtaXtWRH9meQlcOidctjLLcqV 9fHqAgpIZtvVFUhtPFMca8EjSubkgvofl+hmqIADkO/KULGCruyfhqwOm6uUUQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=a61bbc3023c57716d097bccbf93ba8c87872909a commit a61bbc3023c57716d097bccbf93ba8c87872909a Author: Piotr Kubaj AuthorDate: 2022-08-10 21:40:22 +0000 Commit: Piotr Kubaj CommitDate: 2022-08-10 21:40:22 +0000 cad/nvc: fix off by one for powerpc* There are actually 32 GPR for POWER. --- cad/nvc/files/patch-thirdparty_cpustate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cad/nvc/files/patch-thirdparty_cpustate.c b/cad/nvc/files/patch-thirdparty_cpustate.c index 074770c7d712..f78ac6e70192 100644 --- a/cad/nvc/files/patch-thirdparty_cpustate.c +++ b/cad/nvc/files/patch-thirdparty_cpustate.c @@ -9,7 +9,7 @@ + cpu->pc = uc->uc_mcontext.mc_srr0; + cpu->sp = uc->uc_mcontext.mc_gpr[1]; + -+ for (int i = 0; i < 31; i++) ++ for (int i = 0; i < 32; i++) + cpu->regs[i] = uc->uc_mcontext.mc_gpr[i]; #elif defined __OpenBSD__ && defined __x86_64__ cpu->pc = uc->sc_rip;