From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3249AEE7FF4 for ; Mon, 11 Sep 2023 07:54:40 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qfbkb-0005MA-Du; Mon, 11 Sep 2023 03:54:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qfbka-0005Ll-2b for qemu-riscv@nongnu.org; Mon, 11 Sep 2023 03:54:28 -0400 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qfbkX-0000Sy-Vj for qemu-riscv@nongnu.org; Mon, 11 Sep 2023 03:54:27 -0400 Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-4013454fa93so47038065e9.0 for ; Mon, 11 Sep 2023 00:54:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1694418864; x=1695023664; darn=nongnu.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=Pgcf+qoRGes7PKbTxJpWLTzrDuRYQcg6IeURFzE8QkM=; b=PDmJc5mrP38YNZ8fEvqbXt176Awo3DD/i3IN/PbQN9BGC+mMb5cAOm4NoqklOtd4Lb EMKXW/9V4TyXHgOwv2sYCPA2181IhVB/lZpx33le2CX1JrG2V6VV0GX00eUsebw+hEs+ PUYCNJAL+fQsrjpFkVJwsDB8Q4JOviwhhWubEOOrPplnqa4s3RTmawJRXEckLK92JKz9 otLdNEx0ZxeTJrjWcLmmOO0MELGeFMbU6rgO9TkBxC0Sc+sCarYs0R55t6emos/fJ/Zh gh70cTMT6c3MZLuzK5A7NA0FZJhUaHqNrSwWw60nGraS36cZc2A04AsuxYkC34lrhZx9 /MEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694418864; x=1695023664; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Pgcf+qoRGes7PKbTxJpWLTzrDuRYQcg6IeURFzE8QkM=; b=hm4gi1d0DYZEEK9+sZo1iwdj34VJKX8I4vh9wQES7DZOIWEsUmD01DfdOCZpJzhZMr tIEwvc/cIUJ/KOHRYWQDEscgtgxbgZNrCmW3zk1dpMnBfFxn4xXAt6MGqsb3tBLNTa3H ng6GLCUwkfDg1wSvK91l4PFj5eVDJw02kI3nCH44Fj2OLCQ0Mt5tBpRah2lP/hkWYn8d OyVKnG4YObrdiHb7/zc6vnu0B1bF7ZpqhnRKmRxDGVjPEeTut0GiqUZGn2u5iZjbEvOg tTcGp9l/4uGIZg4UKq1B6EgIf404Fy81tJHzDGIDhI9mbXtk4VhW1cTy+7let6Xr8qCj VVYw== X-Gm-Message-State: AOJu0YyTmt+/6fdTQxEzjDicY/GOLmWfy38XqhssJSM1628ZvXTdAdxW St67+8OxaipQPl5AizYhXPft6A== X-Google-Smtp-Source: AGHT+IHg8jNSQr7OsqipJ+9nLA62mN9DiJYfs3OnKw0Uj3Dy83eB5QVzJLx7jXk5pO/UhjdACzNwpA== X-Received: by 2002:a1c:4b03:0:b0:401:264b:5df7 with SMTP id y3-20020a1c4b03000000b00401264b5df7mr7916780wma.35.1694418864012; Mon, 11 Sep 2023 00:54:24 -0700 (PDT) Received: from localhost (cst2-173-16.cust.vodafone.cz. [31.30.173.16]) by smtp.gmail.com with ESMTPSA id n12-20020a05600c3b8c00b00402f713c56esm9245532wms.2.2023.09.11.00.54.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Sep 2023 00:54:23 -0700 (PDT) Date: Mon, 11 Sep 2023 09:54:23 +0200 From: Andrew Jones To: Daniel Henrique Barboza Cc: qemu-devel@nongnu.org, qemu-riscv@nongnu.org, alistair.francis@wdc.com, bmeng@tinylab.org, liweiwei@iscas.ac.cn, zhiwei_liu@linux.alibaba.com, palmer@rivosinc.com, philmd@linaro.org Subject: Re: [PATCH v2 14/19] target/riscv/cpu.c: export set_misa() Message-ID: <20230911-a6753d3b31585cb170161702@orel> References: <20230906091647.1667171-1-dbarboza@ventanamicro.com> <20230906091647.1667171-15-dbarboza@ventanamicro.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230906091647.1667171-15-dbarboza@ventanamicro.com> Received-SPF: pass client-ip=2a00:1450:4864:20::32e; envelope-from=ajones@ventanamicro.com; helo=mail-wm1-x32e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-riscv@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-riscv-bounces+qemu-riscv=archiver.kernel.org@nongnu.org Sender: qemu-riscv-bounces+qemu-riscv=archiver.kernel.org@nongnu.org On Wed, Sep 06, 2023 at 06:16:41AM -0300, Daniel Henrique Barboza wrote: > We'll move riscv_init_max_cpu_extensions() to tcg-cpu.c in the next > patch and set_misa() needs to be usable from there. > > Rename it to riscv_cpu_set_misa() and make it public. > > Signed-off-by: Daniel Henrique Barboza > --- > target/riscv/cpu.c | 34 ++++++++++++++++++---------------- > target/riscv/cpu.h | 1 + > 2 files changed, 19 insertions(+), 16 deletions(-) > Reviewed-by: Andrew Jones