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 X-Spam-Level: X-Spam-Status: No, score=-5.0 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9D6DAC43331 for ; Sat, 28 Mar 2020 04:01:52 +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 658C9206CC for ; Sat, 28 Mar 2020 04:01:52 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Lv57QfO9" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 658C9206CC Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:50016 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jI2fP-0001BE-Hs for qemu-devel@archiver.kernel.org; Sat, 28 Mar 2020 00:01:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:32851) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jI2eV-0000iT-BE for qemu-devel@nongnu.org; Sat, 28 Mar 2020 00:00:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jI2eU-0007zP-70 for qemu-devel@nongnu.org; Sat, 28 Mar 2020 00:00:55 -0400 Received: from mail-pj1-x1043.google.com ([2607:f8b0:4864:20::1043]:38848) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jI2eT-0007xj-Nm for qemu-devel@nongnu.org; Sat, 28 Mar 2020 00:00:54 -0400 Received: by mail-pj1-x1043.google.com with SMTP id m15so4621484pje.3 for ; Fri, 27 Mar 2020 21:00:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=tGifXQO4/H0zcg34V8Vb2pmpjIGvPelr84jztsT+B60=; b=Lv57QfO9lAkiVHcf1OtzpkLO851PIr5VM9WxTbOIposZKwWaClXw7NAmg58x7wOIXb 2kSH7HVOfK4poC9UJu5bTT6uAl3QWAfs7/dgh+tEu7kOs005M09njnqnfEqgHts6GDfl 0pdz4G5tqvlLAK30CwL+//ki8/ZdC8LSj4LoNbb4lNdJ8SIMnYrhfCt2lbV8U6hqYnEW Kd/S0ei2Hxisk29YRr0h5naS7l2QZF2coETTL77EyL19XGcurjAWSclGAXp9kswkR3t6 OZwIPC+A/4/+0TeC8UWPqnSI1P6knCk7Y5Yj5Kuo/hW9cm/O8ozo7126HVGEaPk9EKky +t2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=tGifXQO4/H0zcg34V8Vb2pmpjIGvPelr84jztsT+B60=; b=jNEgxFX0rAZDMjiyYmNzo1LMombTIgwf209JfHLIGxYIvRgPa21gojyqGhf+PkSgii j5PwPPb2GtRKLlgTaUkHjSMN9n+qiGxi63Bk3MFhmReKv9EAWqU9Jw3OqmuFxIVu0e42 ZiGk6iTi7BMnIpYZfp835CisFG9FzMMLzk2FaHP6ZsRUVMcV9ZvUX5ySEnqX7vqGoDTe FC/KGZyC1+enxIRtih+8N2fVJ0vogIZUR+4hXuen+nweDWGkNnggRwhjEftsQkU1N86w JK3sxZ1gPwzwQcC7ETK20fZsvDxpa+F4pjLt1fqDoYDMeGAZ0qfNHSnBlJCVoAUESZUY fzQw== X-Gm-Message-State: ANhLgQ38FCaCt+/ln8IBvF2j429qrPt2Z5AC6tWyH1BhsTBwc+bxpgzp hjvCGAQngjRnK5uNYpwrtAzLuQ== X-Google-Smtp-Source: ADFU+vsxvf0q0zDSNFL6pMGuj8/YZMCYsEmuXX2cd3uz2AKA0bFhn+QTHJLGTeM8CQb+hBYFgRm/IQ== X-Received: by 2002:a17:90b:430f:: with SMTP id ih15mr2863061pjb.56.1585368052317; Fri, 27 Mar 2020 21:00:52 -0700 (PDT) Received: from [192.168.1.11] (174-21-138-234.tukw.qwest.net. [174.21.138.234]) by smtp.gmail.com with ESMTPSA id d3sm4737984pjc.42.2020.03.27.21.00.50 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 27 Mar 2020 21:00:51 -0700 (PDT) Subject: Re: [PATCH v6 61/61] target/riscv: configure and turn on vector extension from command line To: LIU Zhiwei , alistair23@gmail.com, chihmin.chao@sifive.com, palmer@dabbelt.com References: <20200317150653.9008-1-zhiwei_liu@c-sky.com> <20200317150653.9008-62-zhiwei_liu@c-sky.com> From: Richard Henderson Message-ID: Date: Fri, 27 Mar 2020 21:00:49 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: <20200317150653.9008-62-zhiwei_liu@c-sky.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::1043 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: guoren@linux.alibaba.com, wenmeng_zhang@c-sky.com, qemu-riscv@nongnu.org, qemu-devel@nongnu.org, wxy194768@alibaba-inc.com Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" On 3/17/20 8:06 AM, LIU Zhiwei wrote: > Vector extension is default off. The only way to use vector extension is > 1. use cpu rv32 or rv64 > 2. turn on it by command line > "-cpu rv64,x-v=true,vlen=128,elen=64,vext_spec=v0.7.1". > > vlen is the vector register length, default value is 128 bit. > elen is the max operator size in bits, default value is 64 bit. > vext_spec is the vector specification version, default value is v0.7.1. > These properties can be specified with other values. > > Signed-off-by: LIU Zhiwei > --- > target/riscv/cpu.c | 44 +++++++++++++++++++++++++++++++++++++++++++- > target/riscv/cpu.h | 2 ++ > 2 files changed, 45 insertions(+), 1 deletion(-) Reviewed-by: Richard Henderson r~