在线咨询
eetop公众号 创芯大讲堂 创芯人才网
切换到宽版

EETOP 创芯网论坛 (原名:电子顶级开发网)

手机号码,快捷登录

手机号码,快捷登录

找回密码

  登录   注册  

快捷导航
搜帖子
芯片精品文章合集(500篇!)    创芯人才网--重磅上线啦!
查看: 11935|回复: 2

[原创] eieio,sync,isync区别

[复制链接]
发表于 2011-1-13 12:59:48 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

x
官方的解释,在这里备份一下,大家可以参考一下。

The eieio, sync and isync are context-synchronizing instructions. Term “context-synchronizing” means the following: the processor core consists of several independent execution units, so it is able to execute several instructions in parallel and out-of-order. The context-synchronizing instructions are used to force strict order of instructions, where required. eieio means "Enforce In-Order execution of I/O". During execution, Load/Store Unit waits for previous accesses to terminate before beginning accesses associated with load/store instructions after eieio. The purpose of eieio is to prevent loads and stores from executing speculatively when appropriate. This might be desirable for fifo, where performing a read or write changes the FIFO's data. isync means "Instruction sync". This instruction waits for all instructions to complete and discards any prefetched instructions, causing subsequent instructions to be refetched from memory. The isync instruction is context synchronizing, which guarantees that all of effects of previous instructions are in place and any instructions in the instruction queue are flushed (which means all instructions that were in the instruction queue need to be refetched). sync is a memory synchronization instruction. It delays execution of subsequent instructions until previous instructions have completed to the point that they can no longer cause an exception and until all previous memory accesses are performed globally; the sync operation is not broadcast onto the bus interface. Additionally, all load and store cache/bus activities initiated by prior instructions are completed.
发表于 2011-1-31 12:11:47 | 显示全部楼层
支持BITLIU的原创
发表于 2011-2-21 14:21:57 | 显示全部楼层
楼主看的真仔细!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

站长推荐 上一条 /2 下一条

小黑屋| 关于我们| 联系我们| 在线咨询| 隐私声明| EETOP 创芯网
( 京ICP备:10050787号 京公网安备:11010502037710 )

GMT+8, 2024-4-28 07:34 , Processed in 0.021409 second(s), 10 queries , Gzip On, Redis On.

eetop公众号 创芯大讲堂 创芯人才网
快速回复 返回顶部 返回列表