Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: han han <piggie111000@yahoo.com>
To: "Kevin D. Kissell" <kevink@mips.com>, linux-mips@oss.sgi.com
Subject: Re: MIPS 32bit and 64bit mode
Date: Fri, 26 Oct 2001 11:54:52 -0700 (PDT)	[thread overview]
Message-ID: <20011026185452.88972.qmail@web10804.mail.yahoo.com> (raw)
In-Reply-To: <038401c15e47$50331ae0$0deca8c0@Ulysses>


--- "Kevin D. Kissell" <kevink@mips.com> wrote:
> > Does Anybody help me to clear some concepts about
> MIPS
> > 5kc?
> > How to detect and set a MIPS 5kc chip working in
> 32bit
> > or 64bit mode? or the chip can automatically enter
> > proper mode when it fetchs an MIPS 32/64
> instruction?
> > 
> > Also, does MIPS 5kc have some 64bit instructions? 
> 
> I guess somebody (probably me) need to write a
> MIPS32/MIPS64 FAQ one of these days.
> 
> To answer your last question first, yes, the MIPS5Kc
> has the full compliment of 64-bit integer
> instructions.
> It does not have the integrated FPU of the 5Kf,
> however,
> so you have neither 32-bit nor 64-bit FP
> instructions.
> 
> There are two kinds of "64-bit-ness" to consider:
> 64-bit data types and 64-bit addresses.   In kernel
> mode, a MIPS64 CPU always has access to 64-bit
> data types, but to have 64-bit instructions in user
> mode, one needs to explicitly enable them in the
> CP0.Status register.

But, how does MIPS 5kc work with 32bit Linux kernel?
Do you means there is no difference between 32 bit
mode and 64 bit mode for MIPS 5kc in kernel mode? 

> 
> In pre-MIPS64 64-bit MIPS CPUs such as the
> R4000 and R5000, user mode access to 64-bit
> data types was only possible if 64-bit addressing
> was also enabled for user mode by setting the
> CP0.Status.UX bit.  Kernel mode 64-bit addressing
> is independently enabled by setting the
> CP0.Status.KX
> bit.  In MIPS64 (e.g. the 5Kc), it is also possible
> to enable 
> 64-bit data types in user mode *without* 64-bit
> addressing
> by setting the CP0.Status.PX bit (bit 23).
> 
>             Regards,
> 
>             Kevin K.
> 


__________________________________________________
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com

  parent reply	other threads:[~2001-10-26 18:54 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-26 17:30 MIPS 32bit and 64bit mode han han
2001-10-26 17:54 ` Kevin D. Kissell
2001-10-26 17:54   ` Kevin D. Kissell
2001-10-26 18:54   ` han han [this message]
2001-10-26 19:42     ` Kevin D. Kissell
2001-10-26 19:42       ` Kevin D. Kissell
2001-10-26 17:54 ` George Gensure
2001-10-26 17:54   ` George Gensure
2001-10-26 18:05   ` Kevin D. Kissell
2001-10-26 18:05     ` Kevin D. Kissell

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=20011026185452.88972.qmail@web10804.mail.yahoo.com \
    --to=piggie111000@yahoo.com \
    --cc=kevink@mips.com \
    --cc=linux-mips@oss.sgi.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox