“银行"是什么意思? [英] What does 'bank'ing a register mean?
问题描述
在 Wikipedia 上阅读ARM 架构",发现如下语句:
Reading 'ARM Architecture' on Wikipedia and found the following statement:
寄存器 R0-R7 在所有 CPU 模式下都是相同的;他们从来不是银行.
Registers R0-R7 are the same across all CPU modes; they are never banked.
R13 和 R14 跨所有特权 CPU 模式存储,系统除外模式.
R13 and R14 are banked across all privileged CPU modes except system mode.
银行注册是什么意思?
推荐答案
寄存器银行是指在同一地址提供多个寄存器副本.
Register banking refers to providing multiple copies of a register at the same address.
取自 arm 的第 1.4.6 节 文档
Taken from section 1.4.6 of the arm docs
该术语是指无法同时看到所有寄存器的问题的解决方案.
The term is referring to a solution for the problem that not all registers can be seen at once.
每种处理器模式都有不同的寄存器组.分组寄存器为处理处理器异常和特权操作提供了快速的上下文切换.
There is a different register bank for each processor mode. The banked registers give rapid context switching for dealing with processor exceptions and privileged operations.
如果您正在寻找更理论的推理,我推荐 this纸.
给出了比我更深刻的答案 这里
If your looking for a more theoretical reasoning, I recommend this paper.
A much deeper answer than mine is given here
这篇关于“银行"是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!