在ARM到Thumb开关上是否发生管道停顿? [英] Does a pipeline stall occur on an ARM to Thumb switch?

查看:115
本文介绍了在ARM到Thumb开关上是否发生管道停顿?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在ARM体系结构中,如果发生从ARM到Thumb模式的切换,流水线停顿会发生吗? 如果是这样,将影响多少个周期? Thumb到ARM模式切换是否相同? 这种行为是否随不同的ARM处理器而有所不同?

In ARM architecture, if an ARM to Thumb mode switch occurs, will a pipeline stall occur? If so, how many cycles are affected? Is this same for Thumb to ARM mode switching ? Does this behavior vary with different ARM processors ?

推荐答案

不,完全没有.

费用与其他任何分支指令一样.如果预测变量达到目标,则它是免费的;否则,它会花费通常的13个周期.

The cost is just like any other branch instruction. If the predictor hits, it's free, if not, it costs the usual 13 cycles.

由于切换,没有其他隐藏的打ic.

There's no additional hidden hiccups due to the switching.

因此,您可以使用互通模式,而不必担心与模式切换有关的潜在惩罚.

Therefore, you can use the interworking mode without worrying about potential penalties related to the mode switching.

这篇关于在ARM到Thumb开关上是否发生管道停顿?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆