Managing instruction side-effects
    4.
    发明授权
    Managing instruction side-effects 有权
    管理指令副作用

    公开(公告)号:US07228404B1

    公开(公告)日:2007-06-05

    申请号:US09672440

    申请日:2000-09-28

    IPC分类号: G06F9/00

    摘要: A computer. When an instruction calling for an architecturally-visible side-effect in an architecturally-visible storage location is recognized, a value is stored representative of an architecturally-visible representation of the side-effect, a format of the representative value being different than an architecturally-visible representation of the side-effect. Execution is resumed without generating the architecturally-visible side-effect. Later, the architecturally-visible representation corresponding to the representative value is written into the architecturally-visible storage location. On a context switch, a context of a first process is written and a context of a second process is loaded to place the second process into execution. At least some instructions maintain results in storage resources outside the context resource set, and instructions are marked to indicate whether or not a context switch may be performed at a boundary of the marked instruction. Instruction execution is monitored for a condition that is a superset of a condition whose occurrence is desired to be detected, and a first exception is raised as a result of recognizing the superset condition. Software filters the superset condition to determine whether the monitored condition has occurred, and if so, the software establishes a second exception to be raised after execution of further instructions of the instruction stream. When it is recognized that an instruction is to affect the execution of a second instruction, the processor is set into single-step mode. After the second instruction is executed, the computer is set out of single-step mode.

    摘要翻译: 一台电脑。 当识别到在建筑上可见的存储位置中要求建筑上可见的副作用的指令时,存储代表该副作用的结构可视表示的值,代表值的格式不同于体系结构 副作用的隐形表示。 恢复执行,而不产生架构上可见的副作用。 之后,对应于代表值的架构可视化表示被写入架构可见的存储位置。 在上下文切换中,写入第一进程的上下文并加载第二进程的上下文以使第二进程执行。 至少一些指令在上下文资源集合之外保持存储资源的结果,并且标记指令以指示是否可以在标记指令的边界执行上下文切换。 监视指示执行是作为期望发生的条件的超集的条件,并且作为识别超集条件的结果而引起第一异常。 软件过滤超集条件以确定监视条件是否已经发生,如果是,则软件在执行指令流的进一步指令之后建立第二个异常。 当识别到指令影响第二指令的执行时,处理器被设置为单步模式。 执行第二条指令后,计算机将处于单步模式。