[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [microblaze-uclinux] Big endian contra Little endian



	It seems to me that reversing the "endity" whenever it's needed is
exactly the kind of optimization in *gates* rather than microcode or
software that makes uCL/MB a better platform than a hard CPU. Why not
code a register retrieval opcode that checks a flag for which endity is
used in a given scope, compared to a flag of which endity is stored,
flags set by static #defines in the source code but executed at runtime?


On Thu, 2006-08-31 at 15:05 +0200, Antti Lukats wrote:
> With the MicroBlaze and EDK specially Xilinx has actually introduced a 3rd 
> endian, it is called
> 
> "wrongendian"
> 
> meaning that whatever you try first it will be wrong one.
> 
> all the endian stuff comes from IBM as Xilinx is using their bus models both 
> for ppc and microblaze
> 
> the endian stuff causes major headache with all kind of different drivers :(
> you only find it out when you are facing with some other thing that doesnt 
> work
> 
> another thing is the missing future of unaligned accesses, this could be 
> fixed by enabling the unaligned exception adding the exception handler and 
> recompiling the kernel with unalign support
> 
> Antti Lukats
> 
> 
> ----- Original Message ----- 
> From: "Roman Wojnar" <r.wojnar@xxxxxxxx>
> To: <microblaze-uclinux@xxxxxxxxxxxxxx>
> Sent: Thursday, August 31, 2006 2:17 PM
> Subject: RE: [microblaze-uclinux] Big endian contra Little endian
> 
> 
> >
> > Hi all,
> >
> > We find out that BIG ENDIAN used in microblaze is source of problems as 
> > some
> > drivers
> > and applications don't count with big endian but only widely used little
> > endian.
> >
> > 1. Could somebody explain me why it is necessary to use big endian od
> > Microblaze?
> > It is only question of memory model, which could be simply replaced?
> >
> > 2. Which of Linux system files are ENDIAN depended?
> >
> >
> > Roman Wojnar
> >
> > ___________________________
> > microblaze-uclinux mailing list
> > microblaze-uclinux@xxxxxxxxxxxxxx
> > Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
> > Mailing List Archive : 
> > http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/
> >
> > 
> 
> ___________________________
> microblaze-uclinux mailing list
> microblaze-uclinux@xxxxxxxxxxxxxx
> Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
> Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/
> 
-- 

(C) Matthew Rubenstein

___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/