ts-7000
[Top] [All Lists]

Re: [ts-7000] Floating Point problems with supplied JFFS2 image

To:
Subject: Re: [ts-7000] Floating Point problems with supplied JFFS2 image
From: Jim Jackson <>
Date: Wed, 6 Apr 2005 21:04:56 +0100 (BST)

On Wed, 6 Apr 2005, Eddie Dawydiuk wrote:

> > Given there is an FP emulator in the kernel, I sort of guessing that
> > because the EP9301 has FP H/W (albeit broken) the kernel never gets the
> > illegal instruction trap to get to the FP emulation code?
> >
> > Is there anyway to tell the EP9301 to disable the FP H/W and generate
> > traps? I searched the chips user manual but didn't find anything.
> >
> > Is there any way to fix this generally?
>
> I have been told by other developers the problem has been fixed by
> upgrading to a newer version of crosstools. In my limited amount of
> testing I did see a problem with the function atof() that seems to be
> related to the math libraries on the onboard flash. Other than that I have
> been unable to find any problems related to floating point... Could you
> provide more details as to what failures you are seeing, is it related to
> all floating point operations or specific function calls...? What version
> of crosstools and gcc are you using?
>

It's an EP9301 from a TS7200 board bought in Sept last year.

cross tools arm-linux/gcc-3.3.2-glibc-2.3.2

A simple program that just calculates the inverse of numbers given on
command line generates garbage......

/* double.c
 */

#include <math.h>
#include <stdio.h>

main(argc,argv)
int argc;
char **argv;
{
  double da,b,c;
  int a;

  argv++; argc--;
  for ( ; argc; argc--) {
    a=atoi(*argv++);
    da=(double)a;
    printf("%3d  1/%f = %f\n",a,da,1.0/da);
  }
}




 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU