我想在裸金属皮质 A-15 上初始化 NEON cp。在遵循ARM 的指令后,我在平台初始化序列的末尾编写了这个序列:
MOV r0, #0x00F00000
MRC p15, 0, r0, c1, c1, 2
ORR r0, r0, #0x0C00
BIC r0, r0, #0xC000
MCR p15, 0, r0, c1, c1, 2
ISB
MRC p15, 4, r0, c1, c1, 2
BIC r0, r0, #0x0C00
BIC r0, r0, #(3<<14)
MCR p15, 4, r0, c1, c1, 2
ISB
MOV r3, #0x40000000
VMSR FPEXC, r3
我收到此错误:
Error: operand 0 must be FPSCR -- `vmsr FPEXC,r3'
我正在使用 arm-eabi-as --version
:
GNU assembler (GNU Binutils) 2.21
Copyright 2010 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or later.
This program has absolutely no warranty.
This assembler was configured for a target of `arm-eabi'.
如果我更改FPEXC
为FPSCR
程序编译并且正在运行引发 unhandler 异常:
MRC p15, 4, r0, c1, c1, 2