Re: [Mono-dev] Arm9 NS9215 floating point troubles

2010-08-25 Thread jaekim
I'm having a similar problem. I'm using a Freescale mc9328mxs processor that doesn't have hardware floating point. I've tried Trevor's C# test code and the console outputs incorrect floating point values. I have also tried Trevor's hack to method-to-ir.c and it doesn't help for me. Example:

Re: [Mono-dev] Arm9 NS9215 floating point troubles

2010-08-16 Thread jaekim
I'm having a similar problem. I'm using a Freescale mc9328mxs processor (ARM920T core) that doesn't have hardware floating point. I've tried Trevor's C# test code and the console outputs incorrect floating point values. I have also tried Trevor's hack to method-to-ir.c and it doesn't help for

Re: [Mono-dev] Arm9 NS9215 floating point troubles

2010-08-16 Thread jaekim
There seems to be an endianness problem when the floating point value goes to the JIT. I used Trevor's code and changed the byte order and my problems disappeared. In method-to-ir.c: case OP_R8CONST: { DVal d; //

Re: [Mono-dev] Arm9 NS9215 floating point troubles

2010-06-18 Thread Trevor Ackerman
the example change I posted is appropriate or not. Thanks --- On Thu, 6/17/10, Geoff Norton gnor...@novell.com wrote: From: Geoff Norton gnor...@novell.com Subject: Re: [Mono-dev] Arm9 NS9215 floating point troubles To: Trevor Ackerman t_acker...@yahoo.com Cc: mono-devel-list@lists.ximian.com Date

Re: [Mono-dev] Arm9 NS9215 floating point troubles

2010-06-18 Thread Geoff Norton
/10, Geoff Norton gnor...@novell.com wrote: From: Geoff Norton gnor...@novell.com Subject: Re: [Mono-dev] Arm9 NS9215 floating point troubles To: Trevor Ackerman t_acker...@yahoo.com Cc: mono-devel-list@lists.ximian.com Date: Thursday, June 17, 2010, 9:54 PM Is your system armeb or armel

Re: [Mono-dev] Arm9 NS9215 floating point troubles

2010-06-18 Thread Trevor Ackerman
on a JSCC9P9215 Devboard Revision    : Serial  : --- On Fri, 6/18/10, Geoff Norton gnor...@novell.com wrote: From: Geoff Norton gnor...@novell.com Subject: Re: [Mono-dev] Arm9 NS9215 floating point troubles To: Trevor Ackerman t_acker...@yahoo.com Cc: mono-devel-list

[Mono-dev] Arm9 NS9215 floating point troubles

2010-06-17 Thread Trevor Ackerman
I have been able to cross-compile Mono 2.6.4 for the NS9215 (no fpu afaik) and I'm having trouble with floats when executing code. I thought I had correctly specified soft-float and indeed mono tells me so ~ # /usr/local/bin/mono -V Mono JIT compiler version 2.6.4 (tarball Wed Jun 16

Re: [Mono-dev] Arm9 NS9215 floating point troubles

2010-06-17 Thread Robert Jordan
On 17.06.2010 18:07, Trevor Ackerman wrote: I have been able to cross-compile Mono 2.6.4 for the NS9215 (no fpu afaik) and I'm having trouble with floats when executing code. ... My CFLAGS and CPPFLAGS environment variables are both -DARM_FPU_NONE=1 -DMONO_ARCH_SOFT_FLOAT=1

Re: [Mono-dev] Arm9 NS9215 floating point troubles

2010-06-17 Thread Trevor Ackerman
Good suggestion but that did not change the results. --- On Thu, 6/17/10, Robert Jordan robe...@gmx.net wrote: From: Robert Jordan robe...@gmx.net Subject: Re: [Mono-dev] Arm9 NS9215 floating point troubles To: mono-devel-list@lists.ximian.com Date: Thursday, June 17, 2010, 10:53 AM

Re: [Mono-dev] Arm9 NS9215 floating point troubles

2010-06-17 Thread Geoff Norton
Trevor, I tested your testcase on a: Processor : ARMv7 Processor rev 0 (v7l) Features: swp half thumb fastmult vfp edsp thumbee vfpv3 vfpv3d16 I tested: Mono JIT compiler version 2.4.2.3 (Debian 2.4.2.3+dfsg-2) Architecture: armel,soft-float Mono JIT compiler version

Re: [Mono-dev] Arm9 NS9215 floating point troubles

2010-06-17 Thread Trevor Ackerman
} --- On Thu, 6/17/10, Trevor Ackerman t_acker...@yahoo.com wrote: From: Trevor Ackerman t_acker...@yahoo.com Subject: Re: [Mono-dev] Arm9 NS9215 floating point troubles To: mono-devel-list@lists.ximian.com Date: Thursday, June 17, 2010, 11:31 AM Good suggestion but that did not change

Re: [Mono-dev] Arm9 NS9215 floating point troubles

2010-06-17 Thread Geoff Norton
...@yahoo.com Subject: Re: [Mono-dev] Arm9 NS9215 floating point troubles To: mono-devel-list@lists.ximian.com Date: Thursday, June 17, 2010, 11:31 AM Good suggestion but that did not change the results. --- On Thu, 6/17/10, Robert Jordan robe...@gmx.net wrote: From: Robert Jordan robe