Problem with trap 0x07
Sebastian Huber
sebastian.huber at embedded-brains.de
Fri Mar 15 13:38:54 UTC 2013
On 03/15/2013 02:30 PM, Nicolás Alvarez wrote:
> Hi all, I`m having a strange problem with OOP. I create a int attribute in a
> class, and when I try to read o write it in any method (except in the
> contructor) a 0x07 trap occur:
>
> Unexpected trap (0x07) at address 0x400016C8
> memory address not aligned
>
> IU in error mode (tt = 0x07)
> 400016c8 c4206004 st %g2, [%g1 + 0x4]
>
> Anyone knows why this is happening?
The SPARC processor can only load and store data if it is properly aligned,
e.g. an int value must be on a 4-byte aligned address.
Do you have a code example that leads to this error?
--
Sebastian Huber, embedded brains GmbH
Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone : +49 89 189 47 41-16
Fax : +49 89 189 47 41-09
E-Mail : sebastian.huber at embedded-brains.de
PGP : Public key available on request.
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
More information about the users
mailing list