ARM64 AESE指示创建一个Sigill

发布于 2025-01-26 05:06:26 字数 1209 浏览 6 评论 0原文

在Raspberry 4上,在编译和执行仅包含此指令的汇编文件时:

aese v0.16b, v1.16b

该程序由于Sigill而崩溃。这里有什么问题?不是所有ARM64处理器都可能支持AES指令集吗?

一些相关信息:

.arch Armv8-A+加密>在文件开头添加。

$ uname -a
Linux raspberrypi 5.15.32-v8+ #1538 SMP PREEMPT Thu Mar 31 19:40:39 BST 2022 aarch64 GNU/Linux

$ cat /proc/cpuinfo 
processor   : 0
BogoMIPS    : 108.00
Features    : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part    : 0xd08
CPU revision    : 3

processor   : 1
BogoMIPS    : 108.00
Features    : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part    : 0xd08
CPU revision    : 3

processor   : 2
BogoMIPS    : 108.00
Features    : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part    : 0xd08
CPU revision    : 3

processor   : 3
BogoMIPS    : 108.00
Features    : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part    : 0xd08
CPU revision    : 3

Hardware    : BCM2835
Revision    : c03115
Serial      : 1000000005fa511b
Model       : Raspberry Pi 4 Model B Rev 1.5

On a Raspberry 4, when compiling and executing an assembly file containing only this instruction:

aese v0.16b, v1.16b

the program crashes because of a SIGILL. What would be the problem here? Is it possible that not all ARM64 processors support the AES instruction set?

Some relevant informations:

.arch armv8-a+crypto was added at the beginning of the file.

$ uname -a
Linux raspberrypi 5.15.32-v8+ #1538 SMP PREEMPT Thu Mar 31 19:40:39 BST 2022 aarch64 GNU/Linux

$ cat /proc/cpuinfo 
processor   : 0
BogoMIPS    : 108.00
Features    : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part    : 0xd08
CPU revision    : 3

processor   : 1
BogoMIPS    : 108.00
Features    : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part    : 0xd08
CPU revision    : 3

processor   : 2
BogoMIPS    : 108.00
Features    : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part    : 0xd08
CPU revision    : 3

processor   : 3
BogoMIPS    : 108.00
Features    : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part    : 0xd08
CPU revision    : 3

Hardware    : BCM2835
Revision    : c03115
Serial      : 1000000005fa511b
Model       : Raspberry Pi 4 Model B Rev 1.5

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

明天过后 2025-02-02 05:06:26

Rasberry Pi 4不会实现加密指令集扩展名,因此任何尝试使用它们的尝试都会导致未定义的指令例外。

不是所有ARM64处理器都可能支持AES指令集吗?

是的,绝对有可能,这是一个可选功能。

The Rasberry Pi 4 doesn't implement the crypto instruction set extensions, so any attempt to use them will result in an undefined instruction exception.

Is it possible that not all ARM64 processors support the AES instruction set?

Yes definitely possible, it's an optional feature.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文