Floating point issue in rtems 4.8.2 when running on TSIM

Needell Gerald jerry.needell at unh.edu
Thu Jun 30 13:13:24 UTC 2011


In your init.h, I think you have to add:
#include <rtems/confdefs.h> 

after the #define CONFIGURE_INIT

see:
http://rtems.org/onlinedocs/releases/rtemsdocs-4.8.1/share/rtems/html/c_user/c_user00403.html

 


On Jun 30, 2011, at 6:05 AM, Óscar Álvarez Paredes wrote:

> Hi,
>  
> I have the following files in rtems 4.8.2.
>  
> It compiles Ok, but when I run it on TSIM it gives the following error:
>  
> TSIM/LEON SPARC simulator, version 2.0.15 (professional version)
>  
> Copyright (C) 2001, Gaisler Research - all rights reserved.
> For latest updates, go to http://www.gaisler.com/
> Comments or bug-reports to tsim at gaisler.com
>  
> serial port A on stdin/stdout
> allocated 4096 K RAM memory, in 1 bank(s)
> allocated 32 M SDRAM memory, in 1 bank
> allocated 2048 K ROM memory
> icache: 1 * 4 kbytes, 16 bytes/line (4 kbytes total)
> dcache: 1 * 4 kbytes, 16 bytes/line (4 kbytes total)
> section: .text, addr: 0x40000000, size 95760 bytes
> section: .data, addr: 0x40017610, size 3184 bytes
> section: .jcr, addr: 0x40018280, size 4 bytes
> read 639 symbols
> tsim> go 0x40000000
> resuming at 0x40000000
> Call to testRun ...
> Init
> Math test
> Unexpected trap ( 4) at address 0x40001584
> fp disabled
>  
> Program exited normally.
>  
> It seems as if the fp was no enabled at RTEMS level, but as you can see in the init.h file I have:
> #define CONFIGURE_INIT_TASK_ATTRIBUTES RTEMS_FLOATING_POINT
>  
> Any idea why?
>  
> Thanks,
>  
> Oscar
> 
> This message including any attachments may contain confidential information, according to our Information Security Management System, and intended solely for a specific individual to whom they are addressed. Any unauthorised copy, disclosure or distribution of this message is strictly forbidden. If you have received this transmission in error, please notify the sender immediately and delete it.
> Este mensaje, y en su caso, cualquier fichero anexo al mismo, puede contener información clasificada por su emisor como confidencial en el marco de su Sistema de Gestión de Seguridad de la Información siendo para uso exclusivo del destinatario, quedando prohibida su divulgación copia o distribución a terceros sin la autorización expresa del remitente. Si Vd. ha recibido este mensaje erróneamente, se ruega lo notifique al remitente y proceda a su borrado. Gracias por su colaboración.
> Esta mensagem, incluindo qualquer ficheiro anexo, pode conter informação confidencial, de acordo com nosso Sistema de Gestão de Segurança da Informação, sendo para uso exclusivo do destinatário e estando proibida a sua divulgação, cópia ou distribuição a terceiros sem autorização expressa do remetente da mesma. Se recebeu esta mensagem por engano, por favor avise de imediato o remetente e apague-a. Obrigado pela sua colaboração.
> 
> <init.c><test.c><test.h><init.h>_______________________________________________
> rtems-users mailing list
> rtems-users at rtems.org
> http://www.rtems.org/mailman/listinfo/rtems-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20110630/e8e6bc19/attachment-0001.html>


More information about the users mailing list