From nobody Wed Nov 19 00:18:01 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of _spf.google.com designates 209.85.221.52 as permitted sender) client-ip=209.85.221.52; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-wr1-f52.google.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.221.52 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1613325691; cv=none; d=zohomail.com; s=zohoarc; b=iQFwagyhMiEXOvSixZMhsm3mxpkh/a1ZGrR0S/86Jo4LGtlOjAdTBvUfI0gNNQbl7Fcdwc/tbzBl4qLVzl/ZCRiZyeXLAgHDU5Ff4dxe60K1aT8psVMGtKcM1soykSwZvH23Hm5c1EZyYUR0kVymLVty6osukVxiLvSbXAOsoAw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1613325691; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Sender:Subject:To; bh=PPT/TRs9DBVuqLk8C2ogWVWxOhu3RGD/8/rw9TJVxIU=; b=eH9G46LVV95/Py4gCbA7IKY+lMS5C/L+suYr9pictdg93IXTBuPfeOzTjZE1C/pik3B8tix7ncHvlrm2wnf7utHr4VBKBtBX3nqSk8f3RpgiDkFYXU4pZJRmghwT11nMVoJMC4KS+eMHEuIdeDlsF44bmA/836USqD8dGTJgBg4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.221.52 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com Received: from mail-wr1-f52.google.com (mail-wr1-f52.google.com [209.85.221.52]) by mx.zohomail.com with SMTPS id 16133256914568.027916322689862; Sun, 14 Feb 2021 10:01:31 -0800 (PST) Received: by mail-wr1-f52.google.com with SMTP id u14so6130929wri.3 for ; Sun, 14 Feb 2021 10:01:31 -0800 (PST) Return-Path: Return-Path: Received: from localhost.localdomain (68.red-83-57-175.dynamicip.rima-tde.net. [83.57.175.68]) by smtp.gmail.com with ESMTPSA id f8sm20100594wrp.65.2021.02.14.10.01.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Feb 2021 10:01:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=PPT/TRs9DBVuqLk8C2ogWVWxOhu3RGD/8/rw9TJVxIU=; b=kmg3JYetKuNtVr4bE5YlKtDqDturHRJrWJsiNxo+KgjXLv+CwpNRAwPrzjser4lLrw 6NaiQ6mG+DbSpJFdw1PuZYQr5r4eAG3jNTol4TcOtt1IEiQh0kDSQZoJOWiigTx6zzfv BbhrT2vcooPDiyO3qBwZ81DhJNXvvsVAgF9KxclXbgEC3/Hr+Gaj4/M5O//risuTuaMA H7Jj7PHZtHqPUBxs99wDjY4i0/0jyzTkKojMJmw4/kIWkfbE9aUex+WAyCURE9kO8vep +owvm5zLowTlQ4FJglP4OnqQD3ChK5iuWIrOA5IoEmlZ3rulPFLeP3Sxy+RVJ7+KUkrB 5pgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=PPT/TRs9DBVuqLk8C2ogWVWxOhu3RGD/8/rw9TJVxIU=; b=ciVx/ns3bWpdcUet/zOhx1RqgLbkntf+xmAt3Wdl56mSIJ1MfA//8T5p4RsIIWyShf rWbj5xtalUAu2KfnaukG4UY7Ir3iHJAZWrUHY4enmgB6Oz4jV/7R6w6dHbfGV61B5YYx cyj4TmUssHGNzQElT7U99LuCPiiEh7MIjkuF4wd+xb/qDqSFrTEUgUEvk+2JtBR3UgJB b6E95ceR0bu9rcOVXv1PuN7C3CpBQ+7YwAKmlnNVU5QgyAOBjgNsRduLNBVM9mBQbMCw JSwlGyo1MWwImq+I+pN1via4zmysJ8DlGndlEv0a4FYsCOKjut3MGqAGjs9/5LjEWKxc Agog== X-Gm-Message-State: AOAM530flX8WD/afXUmB7HRftvdUObUiKn62OrxlTar7/8+m8KBVAafb e9YPm6xpdS8N59sCFDInmXw= X-Google-Smtp-Source: ABdhPJwyR9fdsY0cMiiAavx+t/mW4Qh9ul3o2Kmu+CUAJg+hz5h2wKsmta8gZ/O1fP8waUPwuhaifA== X-Received: by 2002:adf:f5c7:: with SMTP id k7mr14992669wrp.313.1613325690148; Sun, 14 Feb 2021 10:01:30 -0800 (PST) Sender: =?UTF-8?Q?Philippe_Mathieu=2DDaud=C3=A9?= From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Fredrik Noring , Laurent Vivier , Jiaxun Yang , =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , "Maciej W. Rozycki" , Thomas Huth , Aurelien Jarno , Richard Henderson , Aleksandar Rikalo Subject: [RFC PATCH 27/42] target/mips/translate: Make gen_rdhwr() public Date: Sun, 14 Feb 2021 18:58:57 +0100 Message-Id: <20210214175912.732946-28-f4bug@amsat.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210214175912.732946-1-f4bug@amsat.org> References: <20210214175912.732946-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @gmail.com) We will use gen_rdhwr() outside of translate.c, make it public. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Richard Henderson --- target/mips/translate.h | 2 ++ target/mips/translate.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/target/mips/translate.h b/target/mips/translate.h index bc91ac4f53f..d2ba3524b51 100644 --- a/target/mips/translate.h +++ b/target/mips/translate.h @@ -148,6 +148,8 @@ void gen_op_addr_add(DisasContext *ctx, TCGv ret, TCGv = arg0, TCGv arg1); bool gen_lsa(DisasContext *ctx, int rd, int rt, int rs, int sa); bool gen_dlsa(DisasContext *ctx, int rd, int rt, int rs, int sa); =20 +void gen_rdhwr(DisasContext *ctx, int rt, int rd, int sel); + extern TCGv cpu_gpr[32], cpu_PC; #if defined(TARGET_MIPS64) extern TCGv_i64 cpu_gpr_hi[32]; diff --git a/target/mips/translate.c b/target/mips/translate.c index bed0489997a..c1d07a4591d 100644 --- a/target/mips/translate.c +++ b/target/mips/translate.c @@ -12655,7 +12655,7 @@ static void gen_flt3_arith(DisasContext *ctx, uint3= 2_t opc, } } =20 -static void gen_rdhwr(DisasContext *ctx, int rt, int rd, int sel) +void gen_rdhwr(DisasContext *ctx, int rt, int rd, int sel) { TCGv t0; =20 --=20 2.26.2