发明名称 Modifying code sequence with replacement parts of which non-beginning parts trigger exception when jumped to
摘要 A technique of modifying a code sequence for a processor includes identifying a set of one or more target instructions in the code sequence. A replacement instruction is selected that includes a set of replacement instruction parts. A length of each of the replacement instruction parts corresponds to a minimum instruction length for an instruction set of the processor. The replacement instruction parts include a first instruction type and one or more second instruction types that are each configured as exception instructions if processed in isolation from the first instruction type. The replacement instruction is then substituted for the set of one or more target instructions in the code sequence for processing by the processor.
申请公布号 US9323551(B2) 申请公布日期 2016.04.26
申请号 US201213345221 申请日期 2012.01.06
申请人 International Business Machines Corporation 发明人 Campbell Neil A.
分类号 G06F9/44;G06F9/455;G06F9/30;G06F9/38;G06F9/45;G06F11/30 主分类号 G06F9/44
代理机构 Yudell Isidore PLLC 代理人 Isidore Eustace P.;Yudell Isidore PLLC
主权项 1. A method of modifying a code sequence for a processor, the method comprising: identifying a set of one or more target instructions in the code sequence; selecting a replacement instruction that includes a set of replacement instruction parts, wherein the replacement instruction, when utilized, causes the processor to execute the replacement instruction in place of the set of one or more target instructions, the replacement instruction including the first instruction part and one or more second instruction parts, wherein a length of each of the first and second instruction parts corresponds to a minimum instruction length for an instruction set of the processor, and wherein the first instruction part is a type of instruction that identifies the replacement instruction and provides an indication that the replacement instruction is a multipart instruction, wherein the first and second instruction parts are processed in combination to perform a single combined function that includes the first and second instruction parts, and the one or more second instruction parts are each configured as exception or trap instructions if processed in isolation from the first instruction part by being jumped to such that the first instruction part is not executed prior to executing the second instruction part; and substituting the replacement instruction for the set of one or more target instructions in the code sequence for processing by the processor.
地址 Armonk NY US