linux-mips
[Top] [All Lists]

Re: [PATCH] MIPS: Tell R4k SC and MC variations apart

To: Ralf Baechle <ralf@linux-mips.org>
Subject: Re: [PATCH] MIPS: Tell R4k SC and MC variations apart
From: "Maciej W. Rozycki" <macro@linux-mips.org>
Date: Wed, 25 Sep 2013 00:37:42 +0100 (BST)
Cc: linux-mips@linux-mips.org
In-reply-to: <20130924084845.GA21257@linux-mips.org>
List-archive: <http://www.linux-mips.org/archives/linux-mips/>
List-help: <mailto:ecartis@linux-mips.org?Subject=help>
List-id: linux-mips <linux-mips.eddie.linux-mips.org>
List-owner: <mailto:ralf@linux-mips.org>
List-post: <mailto:linux-mips@linux-mips.org>
List-software: Ecartis version 1.0.0
List-subscribe: <mailto:ecartis@linux-mips.org?subject=subscribe%20linux-mips>
List-unsubscribe: <mailto:ecartis@linux-mips.org?subject=unsubscribe%20linux-mips>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <alpine.LFD.2.03.1309222307440.16797@linux-mips.org> <20130924084845.GA21257@linux-mips.org>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Alpine 2.03 (LFD 1266 2009-07-14)
On Tue, 24 Sep 2013, Ralf Baechle wrote:

> My reservations may have been about userland reading /proc/cpuinfo and
> looking at the CPU type.  Some software may know how to handle the
> PC/SC variants but not the MC versions.  But this seems to be a fairly
> weak concern - and I trust you checked gcc's parsing of /proc/cpuinfo.

 Actually I wasn't actually aware GCC's got /proc/cpuinfo-based native 
arch support for the MIPS target these days, thanks for the hint.

 I have now checked the relevant source file and support is pretty weak 
there, only half a dozen processors are recognised and no R4k model is 
among them.  In any case strstr is used to check for matches there so I'd 
expect strings like "R4000" or "R4400" without a further suffix to be 
chosen.

  Maciej

<Prev in Thread] Current Thread [Next in Thread>