All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ralf Baechle <ralf@linux-mips.org>
To: "Kevin D. Kissell" <kevink@mips.com>
Cc: Carsten Langgaard <carstenl@mips.com>, linux-mips@linux-mips.org
Subject: Re: Latest sources from CVS.
Date: Wed, 4 Dec 2002 14:04:57 +0100	[thread overview]
Message-ID: <20021204140457.C30560@linux-mips.org> (raw)
In-Reply-To: <005701c29b74$f1f76870$10eca8c0@grendel>; from kevink@mips.com on Wed, Dec 04, 2002 at 10:09:54AM +0100

On Wed, Dec 04, 2002 at 10:09:54AM +0100, Kevin D. Kissell wrote:

> > It look like you are only able to compile the kernel, if you got a
> > MIPS32/MIPS64 compliant compiler.

Assembler.  I'm building with egcs 1.1.2 + binutils 1.13 btw.

> I mean, sure, we'd like to move more people toward SDE, 
> but "force" is putting it a bit strongly!  And if those directives
> are really being used unconditionally, I worry that the code
> being generated is likewise emitting MIPS32 instructions
> that won't work on the "ghost fleet" of abandoned workstations
> now running Linux on R4K/R5K CPUs.

It isn't.  We've been dragging around .word stuff in our code for years
and it was time to clean tht mess.  Further we had stuff like:

  read_32bit_cp0_register(CP0_STATUS)

which is a ridiculous long macro name for something that just expands
into a single machine instruction; the macro also didn't provide for
access to another cop0 register set than set 0.  For a few TLB-related
functions we already had functions with shorter names, so two names for
doing the one and same thing.  Another problem was that the name did
already hardcode the size of the access intothe code, so the user of
those macros had to know if it was 32-bit or 64-bit.  In short it was
time to clean the mess and as it seemed that pretty much everybody was
already having a MIPS32 / MIPS64 assembler, simply always emitting a
.set mips32 / .set mips64 seemed the right thing.  That's necessary even
for accessing cop0 set 0 because gas rejects something like

  mfc0 $2, $12, 0

unless running in MIPS32 or MIPS64 mode - even though the generated opcode
is perfectly valid for MIPS I.  The 64-bit kernel was another reason for
me to go with the assumption of rather current binutils - and I'd like
to make the same assumptions on tools versions for both 32-bit and 64-bit
versions.

Anyway, it seems that my assumptions about tools versions were a bit too
agressive, so I'm going to kludge things a bit for pre-MIPS32/MIPS64
assemblers.

Deprecating support for MIPS I - IV legacy CPUs is definately not something
I'd support.  Not before x86 has died out that is ;-)

  Ralf

  reply	other threads:[~2002-12-04 13:05 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-04  8:34 Latest sources from CVS Carsten Langgaard
2002-12-04  9:09 ` Kevin D. Kissell
2002-12-04  9:09   ` Kevin D. Kissell
2002-12-04 13:04   ` Ralf Baechle [this message]
2002-12-05  3:34   ` Ralf Baechle
2002-12-05 11:14     ` Carsten Langgaard
2002-12-05 13:47       ` Maciej W. Rozycki
2002-12-05 14:12         ` Carsten Langgaard
2002-12-05 14:27           ` Ralf Baechle
2002-12-06 12:52           ` Carsten Langgaard
2002-12-06 13:07             ` Ralf Baechle
2002-12-06 13:24               ` Carsten Langgaard
2002-12-06 13:24             ` Thiemo Seufer
2002-12-06 13:34               ` Thiemo Seufer
2002-12-06 13:41                 ` Carsten Langgaard
2002-12-06 13:51                   ` Thiemo Seufer
2002-12-06 16:32                     ` Maciej W. Rozycki
2002-12-06 16:45                       ` Thiemo Seufer
2002-12-06 17:01                         ` Maciej W. Rozycki
2002-12-06 17:24                           ` Thiemo Seufer
2002-12-06 18:04                             ` Ralf Baechle
2002-12-06 18:30                             ` Maciej W. Rozycki
2002-12-06 18:41                               ` Thiemo Seufer
2002-12-06 18:58                                 ` Maciej W. Rozycki
2002-12-06 17:02                         ` Ralf Baechle
2002-12-06 17:15                           ` Thiemo Seufer
2002-12-06 17:34                           ` Greg Lindahl
2002-12-06 18:18                           ` Dominic Sweetman
2002-12-06 18:40                             ` Greg Lindahl
2002-12-06 23:17                             ` Ralf Baechle
2002-12-06 23:33                               ` Thiemo Seufer
2002-12-07  0:00                                 ` Ralf Baechle

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=20021204140457.C30560@linux-mips.org \
    --to=ralf@linux-mips.org \
    --cc=carstenl@mips.com \
    --cc=kevink@mips.com \
    --cc=linux-mips@linux-mips.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.