US8190865B2

Instruction encoding for system register bit set and clear

Summary by NHIP

Atomic Register Bit Modification

The microprocessor executes instructions to atomically set or clear specific bit fields within privileged architecture registers without reading them into general purpose registers. An immediate value specifies the target bit field, a second operand identifies the register, and a third operand designates whether to set or clear the field.

Claim Score by NHIP

Read claim 10, the broadest

Abstract

An instruction encoding architecture is provided for a microprocessor to allow atomic modification of privileged architecture registers. The instructions include an opcode that designates to the microprocessor that the instructions are to execute in privileged (kernel) state only, and that the instructions are to communicate with privileged control registers, a field for designating which of a plurality of privileged architecture registers is to be modified, a field for designating which bit fields within the designated privileged architecture register is to be modified, and a field to designate whether the whether the designated bit fields are to be set or cleared. The instruction encoding allows a single instruction to atomically set or clear bit fields within privileged architecture registers, without reading the privileged architecture registers into a general purpose register. In addition, the instruction encoding allows a programmer to specify whether the previous content of a privileged architecture register is to be saved to a general purpose register during the atomic modification.

US8190865B2, drawing sheet 1
Sheet 1 of 8

Term

Term ended

Expired 15 February 2023, 3.6 years ago.

  1. Priority
  2. Filed
  3. Granted
  4. Expired
  5. Today

18 claims: 3 independent, 15 dependent

  1. 1
    A microprocessor having an architecture register that is modifiable by an instruction, the microprocessor comprising:an execution core, for receiving the instruction and for modifying the architecture register upon execution of the instruction, wherein the instruction comprises: a first operand that is an immediate value to specify a particular bit field within the architecture register to be modified upon execution of the instruction;a second operand to identify the architecture register to be modified;and a third operand to specify whether the particular bit field is to be set or cleared;and whereby the architecture register is modified atomically when the instruction executes.
  2. 10
    Broadest claimClaim Score 82, broad(NHIP)A method for modifying an architecture register in a microprocessor having an architecture register, comprising:decoding an instruction comprising: an immediate value to specify a particular bit field within the architecture register;a second operand to identify the architecture register to be modified;and a third operand to specify whether the particular bit field is to be set or cleared;and executing an instruction to atomically modify the specified particular bit field within the architecture register.
  3. 18
    A microprocessor having an architecture register that is modifiable by an instruction, the microprocessor comprising:an execution core, for receiving the instruction and for modifying the architecture register upon execution of the instruction, wherein the instruction comprises: a first operand that is an immediate value to specify a particular bit field within the architecture register to be modified upon execution of the instruction;and a second operand to specify whether the particular bit field is to be set or cleared;and whereby the architecture register is modified atomically when the instruction executes.