From: Daniel Hellstrom <daniel@gaisler.com>
To: sparclinux@vger.kernel.org
Subject: Re: How to recognize a LEON CPU?
Date: Tue, 22 May 2012 06:41:02 +0000 [thread overview]
Message-ID: <4FBB34FE.4030304@gaisler.com> (raw)
In-Reply-To: <20120521162253.GB5733@merkur.ravnborg.org>
On 05/21/2012 11:12 PM, David Miller wrote:
> From: Sam Ravnborg<sam@ravnborg.org>
> Date: Mon, 21 May 2012 18:22:53 +0200
>
>> I assume this can be determinded from PSR.
> > From arch/sparc/kernel/cpu.c:
>
> psr IMPL 0xf with psr VERS of 3
Correct. As I written Sam:
The LEON is SPARC compliant and has a registered number, from the manual (http://gaisler.com/products/grlib/grip.pdf section LEON3 and LEON4):
65.2.3 SPARC Implementor's ID
Gaisler Research is assigned number 15 (0xF) as SPARC implementor's identification. This value is
hard-coded into bits 31:28 in the %psr register. The version number for LEON3 is 3, which is hard-
coded in to bits 27:24 of the %psr.
Note that LEON3 and LEON4 have the same version number, they are software compatible.
Daniel
prev parent reply other threads:[~2012-05-22 6:41 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-21 16:22 How to recognize a LEON CPU? Sam Ravnborg
2012-05-21 21:12 ` David Miller
2012-05-22 6:28 ` Konrad Eisele
2012-05-22 6:40 ` Daniel Hellstrom
2012-05-22 6:41 ` Daniel Hellstrom [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4FBB34FE.4030304@gaisler.com \
--to=daniel@gaisler.com \
--cc=sparclinux@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.