INSTRUCTION PROCESSING METHOD OF NETWORK PROCESSOR AND NETWORK PROCESSOR
    1.
    发明申请
    INSTRUCTION PROCESSING METHOD OF NETWORK PROCESSOR AND NETWORK PROCESSOR 审中-公开
    网络处理器和网络处理器的指令处理方法

    公开(公告)号:US20130145122A1

    公开(公告)日:2013-06-06

    申请号:US13763811

    申请日:2013-02-11

    CPC classification number: G06F9/32 G06F9/322 G06F9/4486

    Abstract: The present invention provides an instruction processing method of a network processor and a network processor. The method includes: when executes a pre-added combined function call instruction, adding an address of its next instruction to a stack top of a first stack; judging, according to the combined function call instruction, whether an enable flag of each additional feature is enabled, and if enabled, adding a function entry address corresponding to an additional feature to the stack top of the first stack; and after finishing judging all enable flags, popping a function entry address in the first stack, and executing a function corresponding to a popped function entry address until the address of the next instruction is popped. In the present invention, only one judgment jump instruction needs to be added to a main line procedure to implement function call of enabled additional features, which saves an instruction execution cycle.

    Abstract translation: 本发明提供一种网络处理器和网络处理器的指令处理方法。 该方法包括:当执行预先组合的功能调用指令时,将其下一指令的地址添加到第一堆栈的堆叠顶部; 根据所述组合功能调用指令判断是否启用每个附加特征的使能标志,并且如果启用,则将与附加特征相对应的功能入口地址添加到所述第一堆栈的堆栈顶部; 并且在完成判定所有使能标志之后,弹出第一堆栈中的功能入口地址,并执行与弹出的功能入口地址对应的功能,直到下一条指令的地址被弹出。 在本发明中,仅需要将一条判断跳转指令添加到主线程序中,以实现启用的附加特征的功能调用,从而节省指令执行周期。

Patent Agency Ranking