Compilation targeting multiple processor architectures some of which support generating exceptions for forbidden instructions in branch delay slots
Aspects relate to microprocessors, methods of their operation, and compilers therefor, that provide branch instructions with and without a delay slot. Branch instructions without a delay slot may have a forbidden slot. A processor, when decoding and executing a branch instruction without a delay slo...
Saved in:
Main Author | |
---|---|
Format | Patent |
Language | English |
Published |
19.04.2017
|
Subjects | |
Online Access | Get full text |
Cover
Loading…
Summary: | Aspects relate to microprocessors, methods of their operation, and compilers therefor, that provide branch instructions with and without a delay slot. Branch instructions without a delay slot may have a forbidden slot. A processor, when decoding and executing a branch instruction without a delay slot, at a program counter location, executes an instruction in a subsequent program counter location (a "forbidden slot", in some implementations) only if the branch is not taken. A pre-determined set of instruction types may be identified, and if an instruction location in the forbidden slot is from the pre-determined set of instruction types, implementations may throw an exception without executing the instruction, or may execute the instruction and throw an exception after execution. Such exceptions may be dependent or independent on an outcome of executing the instruction itself. |
---|---|
Bibliography: | Application Number: GB20160010274 |