Branch processing method and system
Abstract
A method for branch processing is provided. The method includes determining an instruction type of an instruction written into a cache memory and recording the instruction type. The method also includes calculating a branch target instruction address of the branch instruction and recording target address information corresponding to the branch target instruction address when the instruction is a branch instruction, where the target address information corresponds to one instruction segment containing at least the branch target instruction. Further, the method includes filling the instruction segment containing at least the branch target instruction into the position corresponding to the target address information in the cache memory based on the branch target instruction address when the branch target instruction is not stored in the cache memory, such that before a CPU core executes the branch instruction, a next instruction following the branch instruction in a program sequence and the branch target instruction of the branch instruction are stored in the cache memory.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 5 · Forward citations: 3.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A branch processing method for controlling a pipeline operation of a processor, comprising: determining an instruction type of an instruction written into a cache memory and recording the instruction type; when the instruction is a branch instruction, calculating a branch target instruction address of the branch instruction and recording target address information corresponding to the branch target instruction address, wherein the target address information corresponds to one instruction segment containing at least the branch target instruction; and when the branch target instruction is not st
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (3 of 3 total)
References Cited — Backward Prior Art (5)
Non-Patent Literature (1)
- The World Intellectual Property Organization (WIPO) International Search Report for PCT/CN2013/087723 Mar. 6, 2014.