Subject: Re: Ultrix 'cc -mips3' binaries work
To: Simon Burge <simonb@telstra.com.au>
From: Michael L. Hitch <mhitch@lightning.oscs.montana.edu>
List: port-pmax
Date: 10/29/1997 19:06:38
On Oct 30,  9:20am, Simon Burge wrote:
> On Wed, 29 Oct 1997 14:05:26 -0800  Jonathan Stone wrote:
> > Whatever. I've put the PR in feedback state, in case you wanted
> > similar support for native NetBSD 32-bit binaries with mips3
> > instructions.
> 
> I believe gcc can't produce runable mips3 binaries at the moment -
> should this be added to the pr?
> 
> vlad:~ 8> gcc -mcpu=r4000 -mips3 -v -o test-prog test-prog.c 
...
> vlad:~ 9> ./test-prog 
> Illegal instruction (core dumped)

  The biggest problem here is that -mips3 on gcc and -mips3 on the
Ultrix compiler are completely different.  I think the Ultrix compiler
still generates 32-bit mode programs, but presumably enables
mips3-specific instructions.  The gcc compiler will generate 64 -bit
mode programs - which means the  CPU must enable 64-bit mode, including
64-bit addressing and 64-bit registers.  I have no desire to try to
change the kernel to deal with 32 bit mode in the kernel and 32 or 64
bit mode for user programs.

Michael

-- 
Michael L. Hitch			mhitch@montana.edu
Computer Consultant
Information Technology Center
Montana State University	Bozeman, MT	USA