Some version of Andes core support FPU coprocessor, if this is the case,
we should enable it at low level initialization time.
Signed-off-by: Kuan-Yu Kuo
Cc: Macpaul Lin
---
arch/nds32/cpu/n1213/ag101/lowlevel_init.S | 22 ++
arch/nds32/cpu/n1213/ag102/lowlevel_init.S |
Hi Kuan-Yu Kuo,
2013/7/18 Kuan-Yu Kuo :
> + /*
> +* enable_fpu:
> +* Some of Andes CPU version support FPU coprocessor, if so,
> +* we should enable it.
> +*/
> +enable_fpu:
> + mfsr$r0, $CPU_VER /* enable FPU if it exists */
> + sr
Hi Kuan-Yu,
2013/7/18 :
> Hi Kuan-Yu Kuo,
>
...
>> +enable_fpu:
>> + mfsr$r0, $CPU_VER /* enable FPU if it exists */
>> + srli$r0, $r0, 3
>> + andi$r0, $r0, 1
>> + beqz$r0, 1f /* skip if
>> no COP */
>> +
3 matches
Mail list logo