From nobody Mon Nov 23 05:10:04 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=krgm.moe Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1790584028589802.3187951545141; Mon, 28 Sep 2026 01:27:08 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xB6hF-0003qm-6y; Mon, 28 Sep 2026 04:26:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xB6h2-0003pz-J7 for qemu-devel@nongnu.org; Mon, 28 Sep 2026 04:26:38 -0400 Received: from [2a14:640:1:12b5::1] (helo=krgm.moe) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xB6h0-0000MV-HH for qemu-devel@nongnu.org; Mon, 28 Sep 2026 04:26:36 -0400 Received: from yuno-loong (unknown [103.47.186.116]) by krgm.moe (Postfix) with ESMTPSA id 5F252DFF9; Mon, 28 Sep 2026 13:56:28 +0530 (IST) From: SignKirigami To: qemu-devel@nongnu.org Cc: Bibo Mao , SignKirigami Subject: [PATCH] target/loongarch: delete CSR_OFF_FUNCS Date: Mon, 28 Sep 2026 16:26:22 +0800 Message-ID: <20260928082622.110889-1-prcups@krgm.moe> X-Mailer: git-send-email 2.55.0 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a14:640:1:12b5::1 (failed) Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=2a14:640:1:12b5::1; envelope-from=prcups@krgm.moe; helo=krgm.moe X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, RDNS_NONE=0.793, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZM-MESSAGEID: 1790584031773158500 Content-Type: text/plain; charset="utf-8" Now csr helpers are set by SET_CSR_FUNC in trans_privileged.c.inc, so this macro is unneeded. Signed-off-by: SignKirigami --- target/loongarch/csr.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/target/loongarch/csr.c b/target/loongarch/csr.c index d2ac39dee9..e4ad8a4618 100644 --- a/target/loongarch/csr.c +++ b/target/loongarch/csr.c @@ -6,21 +6,20 @@ #include "cpu.h" #include "csr.h" =20 -#define CSR_OFF_FUNCS(NAME, FL, RD, WR) \ - [LOONGARCH_CSR_##NAME] =3D { \ - .name =3D (stringify(NAME)), \ - .offset =3D CSR_OFFSET(CSR_##NAME), \ - .flags =3D FL, .readfn =3D RD, .writefn =3D WR \ +#define CSR_OFF_FLAGS(NAME, FL) \ + [LOONGARCH_CSR_##NAME] =3D { \ + .name =3D (stringify(NAME)), \ + .offset =3D CSR_OFFSET(CSR_##NAME), \ + .flags =3D FL, .readfn =3D NULL, .writefn =3D NULL \ } =20 #define CSR_OFF_ARRAY(NAME, N) \ [LOONGARCH_CSR_##NAME(N)] =3D { \ .name =3D (stringify(NAME##N)), \ .offset =3D CSR_OFFSET(CSR_##NAME[N]), \ - .flags =3D CSRFL_BASIC, .readfn =3D NULL, .writefn =3D NULL = \ + .flags =3D CSRFL_BASIC, .readfn =3D NULL, .writefn =3D NULL \ } =20 -#define CSR_OFF_FLAGS(NAME, FL) CSR_OFF_FUNCS(NAME, FL, NULL, NULL) #define CSR_OFF(NAME) CSR_OFF_FLAGS(NAME, CSRFL_BASIC) =20 static CSRInfo csr_info[] =3D { --=20 2.55.0