Problem with floating point operations
"Rajesh" <[email protected]> Mon, 24 Jul 2006 07:37:19 -0000
| Newsgroups | gmane.comp.hardware.motorola.microcontrollers |
|---|---|
| Message-ID | <[email protected]> |
Dear All,
I am working with MPC566EVB. I am trying to step into a
function, called in main(),with a breakpoint, but as soon as I am
entering, it is jumping to an instruction,
"stfd fp14,-144(save_restore_reg)" shown below in a "runtime.c" file.
static asm void __save_fpr(void)
{
#if __PPC_EABI__
nofralloc
#endif
ENTRY_SAVE_FPR(14)
ENTRY_SAVE_FPR2(14)
----> stfd fp14,-144(save_restore_reg)
The FPSCR value resulting from this is : 0x00002000
i.e. 18th bit is 1 = Floating-point equal or zero (FE or =).
Is it a problem of floating point operations that are going on in
this function?
One more thing I did, I set the the FP,FP0 and FP1 bit of MSR during
initialization, but still jumping to same instruction.
Can anyone please help on this, I am not able to find out what
exactly the problem is and how to fix it?
-regards
Rajesh
-----------------------------------------------------------
To learn more about Freescale Microcontrollers, please visit
http://www.freescale.com/mcu
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/MPC500/
<*> To unsubscribe from this group, send an email to:
[email protected]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/