Instruction conversion method and processor
AssigneeShanghai Zhaoxin Semiconductor Co., Ltd.
InventorsWeilin Wang, Yingbing Guan, Mengchen Yang
Life of this patent
Estimating the term…
Abstract
An instruction conversion method is provided. The instruction conversion method includes: determining whether a ready-for-execution instruction is an extended instruction, wherein the extended instruction is not a supported instruction of the current processor, but belongs to a new instruction set or an extended instruction set of a same ISA as an instruction set of the current processor; and sending a format information of the extended instruction to a conversion system, and then returning a converted instruction sequence from the conversion system to the processor for executions if the ready-for-execution instruction is the extended instruction.
Claims21
An instruction conversion method, comprising:
- determining whether a ready-for-execution instruction is an extended instruction, wherein the extended instruction is not a supported instruction of the current processor, but belongs to a new instruction set or an extended instruction set of a same ISA as an instruction set of the current processor;
- and
- sending a format information of the extended instruction to a conversion system, and then returning a converted instruction sequence from the conversion system to the processor for executions if the ready-for-execution instruction is the extended instruction.
A processor configured to execute an extended instruction, wherein the extended instruction is not a supported instruction of the processor but belongs to a new instruction set or an extended instruction set of a same type of instruction set as an instruction set of the processor, and the processor comprises:
- a monitor determining whether a ready-for-execution instruction by the processor is the extended instruction;
- an interrupt control unit configured to issue an interrupt to call a conversion system when an no operation instruction corresponding to the extended instruction is retired, wherein a format information of the extended instruction is sent to the conversion system, the conversion system generates a converted instruction sequence corresponding to the extended instruction according to the format information, and returns the converted instruction sequence to the processor;
- and
- an executor executing the converted instruction sequence corresponding to the extended instruction to return an execution result corresponding to the extended instruction.
Dependencies are inferred from the claim text.