CPC G06F 9/3844 (2013.01) [G06F 9/30101 (2013.01); G06F 9/3806 (2013.01)] | 28 Claims |
1. An apparatus comprising:
a core;
a register to store a capability bit that when set to a value of one indicates the core supports an always-on mode for indirect branch restricted speculation;
a hardware branch predictor to predict a target instruction of an indirect branch instruction; and
a model specific register to store an indirect branch restricted speculation bit for the core that when set to a value of one causes the hardware branch predictor to enable the always-on mode, wherein the always-on mode prevents branches predicted in a less privileged predictor mode from influencing branch predictions for indirect branches in a more privileged predictor mode, and stays enabled unless the apparatus is rebooted; and wherein the capability bit when set to a value of zero indicates the hardware branch predictor is to support another indirect branch restricted speculation mode that does not stay enabled unless the apparatus is rebooted.
|