Floating point issue in rtems 4.8.2 when running on TSIM
Óscar Álvarez Paredes
oalvarez at gmv.com
Thu Jun 30 10:05:05 UTC 2011
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 informacion clasificada por su emisor como confidencial
en el marco de su Sistema de Gestion de Seguridad de la
Informacion siendo para uso exclusivo del destinatario, quedando
prohibida su divulgacion copia o distribucion a terceros sin la
autorizacion expresa del remitente. Si Vd. ha recibido este mensaje
erroneamente, se ruega lo notifique al remitente y proceda a su borrado.
Gracias por su colaboracion.
______________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20110630/67a3b89c/attachment.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: init.c
URL: <http://lists.rtems.org/pipermail/users/attachments/20110630/67a3b89c/attachment.c>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: test.c
URL: <http://lists.rtems.org/pipermail/users/attachments/20110630/67a3b89c/attachment-0001.c>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: test.h
URL: <http://lists.rtems.org/pipermail/users/attachments/20110630/67a3b89c/attachment.h>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: init.h
URL: <http://lists.rtems.org/pipermail/users/attachments/20110630/67a3b89c/attachment-0001.h>
More information about the users
mailing list