This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

EVMK2H开发板浮点使能代码

Other Parts Discussed in Thread: 66AK2H14

在66ak2h14的手册中描述A15处理器是支持vfp向量处理能力,但在进行处理器vfp使能时不成功,使能的指令还会产生异常,使能的汇编指令如下,求指导~

/***********************************************************************************/

MRC p15,0,r0,c1,c1,2                   @read NSACR into Rt

ORR r0,r0,#0x00000C00             @Enable access to NEON/VFP

MCR p15,0,r0,c1,c1,2                   @write Rt to NSACR

 

MRC p15,0,r0,c1,c0,2                   @read CP access register

ORR r0,r0,0x#00F00000              @Enable full acess to NEON/VFP

MCR p15,0,r0,c1,c0,2                   @write CP acess register

MOV r0,#0x40000000                   

VMSR FPEXC,r0                             @set EN bit in FPEXC

/***********************************************************************************/

通过板载仿真器调试,在执行”MRC p15,0,r0,c1,c1,2                   @read NSACR into Rt“指令时就产生异常,

请各位专家帮看下是否还需要有别的处理器状态设置后才能使能vfp功能吗?

求指导。。。。。。