Re: [PATCH 32/35] m68k: add ColdFire FPU support for the V4e ColdFire CPU's

Greg Ungerer
2011-12-28T12:58:37Z

Hi Joshua,

On 12/28/2011 09:17 PM, Joshua Juran wrote:
> On Dec 27, 2011, at 9:53 PM, Greg Ungerer wrote:
>
>> if (CPU_IS_COLDFIRE) {
>> __asm__ volatile ("fsave %0"
>> : : "m" (*sc->sc_fpstate) :
>> "memory");
>> } else {
>> __asm__ volatile (".chip 68k/68881\n\t"
>> "fsave %0\n\t"
>> ".chip 68k"
>> : : "m" (*sc->sc_fpstate) :
>> "memory");
>> }
>>
>> I am still concerned about the use of ".chip 68k" in general though.
>> Just not sure how we can avoid it. I guess there is no way to jus
>> t revert to the original CPU choice?
>
> #define CPU "68040"
>
> _asm__ volatile (".chip 68k/68881\n\t"
> "fsave %0\n\t"
> ".chip " CPU
> : : "m" (*sc->sc_fpstate) : "memory");

Possibly.

Regards
Greg

------------------------------------------------------------------------
Greg Ungerer -- Principal Engineer EMAIL: gerg@snapgear.com
SnapGear Group, McAfee PHONE: +61 7 3435 2888
8 Gardner Close, FAX: +61 7 3891 3630
Milton, QLD, 4064, Australia WEB: http://www.SnapGear.com