Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1236197imu; Fri, 9 Nov 2018 13:07:46 -0800 (PST) X-Google-Smtp-Source: AJdET5dWTl3JHa1+PfZvTE3P26glEct6rnraRWhfT79iQmP5n/v0j8oZF64BjU3HSoNWlgkoyhjM X-Received: by 2002:a17:902:e089:: with SMTP id cb9-v6mr7107755plb.196.1541797666362; Fri, 09 Nov 2018 13:07:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541797666; cv=none; d=google.com; s=arc-20160816; b=FpMdhpvUtxuc2NW5JoHSDmLLoaCTJ9vWmcRsKqScKvQ+l/gnh7Tbfdj1nLj7yc72Dx MT/CHY8fycjPYw5PJzrMgJKrwYJDO/LP8lI7yYkGeMifChicl/z2tHQzlRLfPf/beWUh z1K6gQdz79zt004DrDIoxNGY0FLyrBxklTqoLLfh/z7nwpI/VBp61czOAvFFiukug9RX 5UMfwcxnapaoEKeMrH2L1Z9UQQ4NRlNmx/i2eHHavvZK+7ozIHYX8JepO89jv75/xChy Kbs3tlKdLmPAR4br1WMnYgIW+CVoD3dQpNry5ok8rbtiZzBMs0YKZ3FHQXevEWh1+6UQ 2M6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:to:from:cc:in-reply-to:subject:date:dkim-signature; bh=DtZf/Yhf6YcoCJQtZF/0TckJMdJbZDAs+n97jsH+NWg=; b=pKGEwmSBoFrUOIwiqXXRdTLhuf7b9Swq9UxEIBubcCgMRNLJGP3FNH42+yylAF57J2 SKEB0oVbiFIs7/MBJ3YAdTi0n4nM2berXHM+w9WKAeszVdrx9jbgdZpq0YtKcqJIC/KH 8loQX+Pwdq8iMYJZ666A+ZqmNotRTL6rdR7CYmV+AuhKfiEN1l9gLWCbSXXvPxeJjWQI 9l/xhnRj/hZ6LKyEYzBimxWTUM2o0t40NmbcGMDA2azUJhvdoaIhxxHbenWkvgy37EKl JwFg0flrMLsH543luKkOL/sWoLfTcXaPHlqvHuEHyHEh1WjaYNu6Br6osNddgmoLKMY5 NcCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=Lo0LkcDj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o28si7057796pgm.238.2018.11.09.13.07.30; Fri, 09 Nov 2018 13:07:46 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=Lo0LkcDj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728287AbeKJGtY (ORCPT + 99 others); Sat, 10 Nov 2018 01:49:24 -0500 Received: from mail-pf1-f196.google.com ([209.85.210.196]:42686 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725799AbeKJGtY (ORCPT ); Sat, 10 Nov 2018 01:49:24 -0500 Received: by mail-pf1-f196.google.com with SMTP id u10-v6so1456003pfn.9 for ; Fri, 09 Nov 2018 13:07:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=date:subject:in-reply-to:cc:from:to:message-id:mime-version :content-transfer-encoding; bh=DtZf/Yhf6YcoCJQtZF/0TckJMdJbZDAs+n97jsH+NWg=; b=Lo0LkcDjzceyGEbQmVDxX2QEbERLDpRj0iVjak0bfGElpu8kKxQctdqHnTa4bLktZu 06K1OLwk/rEH2+KN3bbfuhpH/pYBgWVmEeiFDu1P9/OgizrbRJGGTfhdvj7vY5/aZiif LiNMYgQirHQrM/8IHhX/N0RvQMqbVlUhRBim55fWJw9178eubvxN11qttm68RJvYFmzf W43TMUXNANiHxNfAwmkVg2CsYeJ3j0ZlUcSv7z2AK9ulmJN3lE0fv6INFFoAhpj2/kRi 02g1Dh6XUcYtoat+UxSiaX58tQLYvccKzCnmU1Ot/pWFXYrhjUqP9Da/don0a4bwVnBC jOvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:subject:in-reply-to:cc:from:to:message-id :mime-version:content-transfer-encoding; bh=DtZf/Yhf6YcoCJQtZF/0TckJMdJbZDAs+n97jsH+NWg=; b=oEeYdVE5UJLsaTqnSS5kWO7qVt4emxciLz3yVs8y4sPkZnpleDMRH2bSymShV20ZKr p813B5fByuEwHcvGqEtTVRVCDCgbI4AW5zGdz1cllC6rrLvjKpuD+XydORgVUkelipZu wBKBg/4ovvCVo2WzTpOn/7yP2Tx8ReDdCGdsE465+woJWEfxso5MsaH4J6L2dGIccN3O xpnDD7c8+w0YmQ5hbAhJChyT0SCSZ+LbYUmToyhE/9XCs4v5AKdn0/XReJA9WXhfXnSv 1hRLRGCEpVpybmPFILZDa+0tdKK1BHTbkPYfGWh0VHa1gU79xwwYSxJTzloItKuKq2Tj BlMg== X-Gm-Message-State: AGRZ1gK/5y75efOwH5jYkrZNSfgqg36/B09dtixbzvOJu9VGMl1fPQ1m xO3/A7P9opKABPeVzRmxkqshrhnM4Dg= X-Received: by 2002:a62:380e:: with SMTP id f14-v6mr10425998pfa.203.1541797624592; Fri, 09 Nov 2018 13:07:04 -0800 (PST) Received: from localhost ([12.206.222.5]) by smtp.gmail.com with ESMTPSA id n87-v6sm10101474pfb.62.2018.11.09.13.07.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 09 Nov 2018 13:07:03 -0800 (PST) Date: Fri, 09 Nov 2018 13:07:03 -0800 (PST) X-Google-Original-Date: Fri, 09 Nov 2018 13:06:44 PST (-0800) Subject: Re: [PATCH] RISC-V: recognize S/U mode bits in print_isa In-Reply-To: <20181109193349.28179-1-me@packi.ch> CC: linux-riscv@lists.infradead.org, me@packi.ch, aou@eecs.berkeley.edu, atish.patra@wdc.com, anup@brainfault.org, linux-kernel@vger.kernel.org From: Palmer Dabbelt To: me@packi.ch Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 09 Nov 2018 11:33:47 PST (-0800), me@packi.ch wrote: > Removes the warning about an unsupported ISA when reading /proc/cpuinfo > on QEMU. > > Signed-off-by: Patrick Stählin > --- > arch/riscv/kernel/cpu.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/riscv/kernel/cpu.c b/arch/riscv/kernel/cpu.c > index 3a5a2ee31547..4029c7e6872b 100644 > --- a/arch/riscv/kernel/cpu.c > +++ b/arch/riscv/kernel/cpu.c > @@ -64,7 +64,7 @@ int riscv_of_processor_hartid(struct device_node *node) > > static void print_isa(struct seq_file *f, const char *orig_isa) > { > - static const char *ext = "mafdc"; > + static const char *ext = "mafdcsu"; > const char *isa = orig_isa; > const char *e; This is a bit pedantic, but the "S" extension should really be hidden from userspace.