首页> 外国专利> Apparatus and method for emulation routine pointer prefetch

Apparatus and method for emulation routine pointer prefetch

机译:用于仿真例程指针预取的设备和方法

摘要

An apparatus and method for emulation routine pointer prefetch are disclosed. The apparatus includes an emulated program counter (EPC), a prefetch state machine, a summing device, an opcode storage device, and a pointer storage device. The EPC, opcode storage device and pointer storage device are coupled to a bus to receive, store and output an emulated program counter value, an opcode value and a pointer to a next emulation routine. The EPC, opcode storage device, and pointer storage device are controlled by the prefetch state machine, which also is coupled to the bus to detect a reference to a reserved memory address and stores an updated emulated program counter value in the EPC using the summing device. The prefetch state machine uses the EPC value to prefetch the next source instruction to be emulated in a first memory operation. A portion of the prefetched source instruction is the opcode value and is stored in the opcode storage device. The prefetch state machine uses the opcode value in a second memory operation to retrieve a pointer to a corresponding emulation routine which is stored in the pointer storage device. The method for emulation routine pointer prefetch preferably comprises the steps of determining if a currently executing emulation routine has issued an instruction to update the EPC; prefetching a next source instruction based upon the value of the EPC; and using an opcode within the prefetched source instruction to prefetch a pointer to a next emulation routine corresponding to the prefetched source instruction.
机译:公开了一种用于仿真例程指针预取的设备和方法。该设备包括仿真程序计数器(EPC),预取状态机,求和设备,操作码存储设备和指针存储设备。 EPC,操作码存储设备和指针存储设备耦合到总线,以接收,存储和输出仿真程序计数器值,操作码值和指向下一个仿真例程的指针。 EPC,操作码存储设备和指针存储设备由预取状态机控制,预取状态机还耦合到总线,以检测对保留内存地址的引用,并使用求和设备将更新后的仿真程序计数器值存储在EPC中。预取状态机使用EPC值预取下一个要在第一存储器操作中模拟的源指令。预取的源指令的一部分是操作码值,并存储在操作码存储设备中。预取状态机在第二次存储操作中使用操作码值来检索指向存储在指针存储设备中的相应仿真例程的指针。用于仿真例程指针预取的方法优选地包括以下步骤:确定当前正在执行的仿真例程是否已经发布了更新EPC的指令;以及根据EPC的值预取下一条源指令;在预取的源指令中使用操作码,以预取指向与该预取的源指令相对应的下一个仿真例程的指针。

著录项

  • 公开/公告号US5574887A

    专利类型

  • 公开/公告日1996-11-12

    原文格式PDF

  • 申请/专利权人 APPLE COMPUTER INC.;

    申请/专利号US19930124315

  • 发明设计人 JONATHAN FITCH;

    申请日1993-09-20

  • 分类号G06F3/00;H01J9/00;

  • 国家 US

  • 入库时间 2022-08-22 03:11:05

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号