Message ID | 20200710104920.13550-66-frank.chang@sifive.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=OzId=AV=nongnu.org=qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@kernel.org> Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id ED85892A for <patchwork-qemu-devel@patchwork.kernel.org>; Fri, 10 Jul 2020 13:21:26 +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 C30BB20748 for <patchwork-qemu-devel@patchwork.kernel.org>; Fri, 10 Jul 2020 13:21:26 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=sifive.com header.i=@sifive.com header.b="QCu4nkqw" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C30BB20748 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=sifive.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Received: from localhost ([::1]:35650 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org>) id 1jtsxy-0006EE-3e for patchwork-qemu-devel@patchwork.kernel.org; Fri, 10 Jul 2020 09:21:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39160) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <frank.chang@sifive.com>) id 1jtqgJ-0006Z3-72 for qemu-devel@nongnu.org; Fri, 10 Jul 2020 06:55:03 -0400 Received: from mail-pf1-x432.google.com ([2607:f8b0:4864:20::432]:40367) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <frank.chang@sifive.com>) id 1jtqgH-00077G-Ll for qemu-devel@nongnu.org; Fri, 10 Jul 2020 06:55:02 -0400 Received: by mail-pf1-x432.google.com with SMTP id u5so2384231pfn.7 for <qemu-devel@nongnu.org>; Fri, 10 Jul 2020 03:55:01 -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; bh=C1U8Izc0b3t3sXzcooCzT3Y031BGcWH4g1HXYarHp70=; b=QCu4nkqwSNQjO7B7PB/9PqqSLZPJs6G9pZOTH7SVhsE3k090cyi0KwPRIB4Sysbnk4 l1cbuq4PdsEh+5l8HV1lcCkf7RU2AgOvO2hWLoylw/yaUM7aEpmNwf5vVLsOQiD72M7T uICYQo5nvJKzekltVTXvkJ1ksxRKxadjYPW5gHIYWRJ3fX+ceUDkiPQBCRveEmSTibWN yRn92mgN9BammY2h3ufW+5zpo5D6HfcSlRWco1ZeWx2Cs9L/HgDO2pVfsC61tR503jJ4 WV+x5b+WlQeCTO3LjjT01NeYVQtqcEtf1J93IY9BaQPeAcen5kIMAafGVAxcRp8LKGNo ibMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=C1U8Izc0b3t3sXzcooCzT3Y031BGcWH4g1HXYarHp70=; b=gt1b68j9TqHbtp0FjwbEzj21gaz3XP9eT72/41cmF14fvIQiJnxpyusOKbwuuWak5D jukK89eX4+85HCinVfBHaygPe85lNv48C3M0m5q/UYy/Hl7LPp+rC9DWIHT24FRUFqLm bIttZ4HDi21YbZy1vfRJWLzztWOYmUd/tFNFO4S7z9Be5nK0DYHHYytltyt5MaqZCfmA yuYSqhsk0iPFmHcuCg07H3L1ty83Ptts81TpKUMvvNY+mGbl+4Pc/WQtKO1fZclt9Szu 8RdWCELvAvCk9cgX+jrdsbZL+uOr2y9HcZlxWiqRoGSf6uCFfjfp+hGNAq90OqV1wurC UL7g== X-Gm-Message-State: AOAM53310us3uJ0L1GMhsoDi1uVPF2XVK7QBqRrdlVCZv+rTPDdD/b5n wwcLdaD9n7I0h+EKhfBAKNN3HfgloWeubg== X-Google-Smtp-Source: ABdhPJzJNWZNMwAhyvn9MxbO2+Q2/9fpd0+JT4V1jb1eG06ED6ktmTLisBlYZfVnaKNXiIgthPFQyQ== X-Received: by 2002:a65:4502:: with SMTP id n2mr46508147pgq.132.1594378500297; Fri, 10 Jul 2020 03:55:00 -0700 (PDT) Received: from frankchang-ThinkPad-T490.internal.sifive.com (114-34-229-221.HINET-IP.hinet.net. [114.34.229.221]) by smtp.gmail.com with ESMTPSA id r191sm5519406pfr.181.2020.07.10.03.54.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Jul 2020 03:54:59 -0700 (PDT) From: frank.chang@sifive.com To: qemu-devel@nongnu.org, qemu-riscv@nongnu.org Subject: [RFC 65/65] target/riscv: bump to RVV 0.9 Date: Fri, 10 Jul 2020 18:49:19 +0800 Message-Id: <20200710104920.13550-66-frank.chang@sifive.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200710104920.13550-1-frank.chang@sifive.com> References: <20200710104920.13550-1-frank.chang@sifive.com> Received-SPF: pass client-ip=2607:f8b0:4864:20::432; envelope-from=frank.chang@sifive.com; helo=mail-pf1-x432.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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, URIBL_BLOCKED=0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Fri, 10 Jul 2020 08:57:18 -0400 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: Frank Chang <frank.chang@sifive.com>, Alistair Francis <Alistair.Francis@wdc.com>, Palmer Dabbelt <palmer@dabbelt.com>, Sagar Karandikar <sagark@eecs.berkeley.edu>, Bastian Koppelmann <kbastian@mail.uni-paderborn.de> Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org> |
Series |
target/riscv: support vector extension v0.9
|
expand
|
diff --git a/target/riscv/cpu.c b/target/riscv/cpu.c index 871c2ddfa1..6168166e64 100644 --- a/target/riscv/cpu.c +++ b/target/riscv/cpu.c @@ -340,7 +340,7 @@ static void riscv_cpu_realize(DeviceState *dev, Error **errp) CPURISCVState *env = &cpu->env; RISCVCPUClass *mcc = RISCV_CPU_GET_CLASS(dev); int priv_version = PRIV_VERSION_1_11_0; - int vext_version = VEXT_VERSION_0_07_1; + int vext_version = VEXT_VERSION_0_09_0; target_ulong target_misa = 0; Error *local_err = NULL; @@ -456,8 +456,8 @@ static void riscv_cpu_realize(DeviceState *dev, Error **errp) return; } if (cpu->cfg.vext_spec) { - if (!g_strcmp0(cpu->cfg.vext_spec, "v0.7.1")) { - vext_version = VEXT_VERSION_0_07_1; + if (!g_strcmp0(cpu->cfg.vext_spec, "v0.9")) { + vext_version = VEXT_VERSION_0_09_0; } else { error_setg(errp, "Unsupported vector spec version '%s'", @@ -466,7 +466,7 @@ static void riscv_cpu_realize(DeviceState *dev, Error **errp) } } else { qemu_log("vector verison is not specified, " - "use the default value v0.7.1\n"); + "use the default value v0.9\n"); } set_vext_version(env, vext_version); } diff --git a/target/riscv/cpu.h b/target/riscv/cpu.h index 8b4a370572..18015f0bc0 100644 --- a/target/riscv/cpu.h +++ b/target/riscv/cpu.h @@ -81,7 +81,7 @@ enum { #define PRIV_VERSION_1_10_0 0x00011000 #define PRIV_VERSION_1_11_0 0x00011100 -#define VEXT_VERSION_0_07_1 0x00000701 +#define VEXT_VERSION_0_09_0 0x00000900 #define TRANSLATE_PMP_FAIL 2 #define TRANSLATE_FAIL 1