From patchwork Thu Oct 21 16:29:52 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Chang X-Patchwork-Id: 12575801 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 150F2C433EF for ; Thu, 21 Oct 2021 16:36:30 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id D33F261503 for ; Thu, 21 Oct 2021 16:36:29 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org D33F261503 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=sifive.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=nongnu.org Received: from localhost ([::1]:57442 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mdb3M-0008O5-V9 for qemu-devel@archiver.kernel.org; Thu, 21 Oct 2021 12:36:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42386) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mdaxb-0001R1-Le for qemu-devel@nongnu.org; Thu, 21 Oct 2021 12:30:32 -0400 Received: from mail-pl1-x632.google.com ([2607:f8b0:4864:20::632]:47086) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mdaxX-0007cS-Ev for qemu-devel@nongnu.org; Thu, 21 Oct 2021 12:30:31 -0400 Received: by mail-pl1-x632.google.com with SMTP id i1so760891plr.13 for ; Thu, 21 Oct 2021 09:30:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=FFIu9ksmqGjnPtSH1nFVEeQDT90cCsP0i9b8ZOKBwe0=; b=D5vH8/uAoEvOs7mQ5kQSMF9z1zlp4BNca08E4FNrh/vswhS9jAA3W9ghzLWwn+VsAv BY1j7McdBKEfNn6x19bFwbUsFFW+fAOdrljhyxPn3EuNOh8n1zUJw7v9ewF2N/VhqXHy q2BmP6afjVgpif0SD2+5WqlK9bwHOBJFIIr1OkckSuE4pmC+fMdpZ6jK/7XCGbdlr95w ff4vpQ5nJu5duFaz4MQiBxYcMcZp/99HGUaxoAnk1tR/SBZM/KpcMJoPD4ATSnC6KMtd 2zvmB0Lu1HwccKaccmJPWuCFa88XY5AjfbYD0Uf1AzksWfkrLBivH0jDtsAuZSCw72CE K9HA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=FFIu9ksmqGjnPtSH1nFVEeQDT90cCsP0i9b8ZOKBwe0=; b=4gcOwhVlOorx9xxtqSfF4pFbtGot/7iFf8nLHGK9fK+SjE+L97wnCpGuHN7ZLE2jTs 8dMIt39lQezcFwL7SfZ/U5MAsIgMd5wxtbWle6lp2lquyci5P29/fKeqiYBYxOxmIoxq 4WAE7qEUtyezIq8PD5xWYv8PHyt+7pNZKjoiAy+cUMBIuFdY9xWdjo0UWaTyimi5aImB 4UBvIQsiFoXQQ/zMkICH8OLKLpMt9Kk8ePpCddWPeWutCEywoKoH0zCEYVi7aulMIp2E RPgIlu69t0vazZTHb6xhImTrZw2KvlQsons17VEhcWhAiANuci/9x8wfro0dlpyL+x/Z Wo5Q== X-Gm-Message-State: AOAM531EyKK0HQ8vkYIauTDpT/6EGxlK6WSwWCYuKmMRcF4W5gq1D3a+ TlyCwCFHwpXFkAsyPPZq4E9INiSRvWoarg== X-Google-Smtp-Source: ABdhPJxGG4OM/rvC4Zk1tnrmKXYs04cQeol4JLv0HXgcSQNUezneFEajZUPgCQwKgmugtACoDs/FZg== X-Received: by 2002:a17:90b:4f90:: with SMTP id qe16mr7991573pjb.137.1634833824064; Thu, 21 Oct 2021 09:30:24 -0700 (PDT) Received: from localhost.localdomain (123-193-74-252.dynamic.kbronet.com.tw. [123.193.74.252]) by smtp.gmail.com with ESMTPSA id j9sm5963155pgn.24.2021.10.21.09.30.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Oct 2021 09:30:23 -0700 (PDT) From: frank.chang@sifive.com To: qemu-riscv@nongnu.org Subject: [PATCH v5 6/8] target/riscv: zfh: add Zfh cpu property Date: Fri, 22 Oct 2021 00:29:52 +0800 Message-Id: <20211021162956.2772656-7-frank.chang@sifive.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211021162956.2772656-1-frank.chang@sifive.com> References: <20211021162956.2772656-1-frank.chang@sifive.com> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::632; envelope-from=frank.chang@sifive.com; helo=mail-pl1-x632.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=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Frank Chang , Palmer Dabbelt , Bin Meng , Alistair Francis , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" From: Frank Chang Signed-off-by: Frank Chang Reviewed-by: Alistair Francis --- target/riscv/cpu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/target/riscv/cpu.c b/target/riscv/cpu.c index 788fa0b11c0..1b3a7784b06 100644 --- a/target/riscv/cpu.c +++ b/target/riscv/cpu.c @@ -617,6 +617,7 @@ static Property riscv_cpu_properties[] = { DEFINE_PROP_BOOL("Counters", RISCVCPU, cfg.ext_counters, true), DEFINE_PROP_BOOL("Zifencei", RISCVCPU, cfg.ext_ifencei, true), DEFINE_PROP_BOOL("Zicsr", RISCVCPU, cfg.ext_icsr, true), + DEFINE_PROP_BOOL("Zfh", RISCVCPU, cfg.ext_zfh, false), DEFINE_PROP_BOOL("mmu", RISCVCPU, cfg.mmu, true), DEFINE_PROP_BOOL("pmp", RISCVCPU, cfg.pmp, true),