Register window spill technique for retirement window having entry size less than amount of spill instructions
AssigneeSun Microsystems, Inc.
InventorsChandra Thimmanagari, Sorin Iacobovici, Rabin Sugumar, Robert Nuckolls
Life of this patent
Estimating the term…
Abstract
A register window spill technique for an retirement window having an entry size less than a number of spill instructions used in a spill condition is provided. The technique uses modified spill instructions that allow the retirement window to retire a portion of the spill instructions without having to determine whether a remaining portion of the spill instructions will execute without exceptions.
Claims8
A method for performing a spill operation for a register window, comprising:
- determining whether a save instruction causes a spill condition;
- if the save instruction causes the spill condition, sending a portion of a spill instruction set to a retirement window of a fixed entry size less than an amount of instructions in the spill instruction set;
- retiring at least one instruction of the portion of the spill instruction set, wherein execution of the at least one instruction updates a temporary register;
- sending another portion of the spill instruction set to the retirement window upon retirement of the at least one instruction;
- and
- storing contents of the temporary register to an architectural register upon exception-free execution of the portion of the spill instruction set and the another portion of the spill instruction set.
A method for performing a register window spill operation, comprising:
- step for determining whether a save instruction causes a spill condition;
- if the save instruction causes the spill condition, step for sending a portion of a spill instruction set to a retirement window of a fixed entry size less than an amount of instructions in the spill instruction set;
- step for retiring at least one instruction of the portion of the spill instruction set, wherein execution of the at least one instruction updates a temporary register;
- and
- step for sending another portion of the spill instruction set to the retirement window upon execution of the at least one and instruction;
- and
- step for storing contents of the temporary register to an architectural register upon exception-free execution of the portion of the spill instruction set and the another portion of the spill instruction set.
A computer system, comprising:
- a processor;
- a memory;
- and
- a spill instruction set, residing in the memory and executable by the processor, for saving contents of a register in a register window to a program stack in the memory, wherein the spill instruction set is arranged so as to allow a retirement window to retire a portion of the spill instruction set without a determination as to whether a remaining portion of the spill instruction set will result in at least one exception, and wherein the retirement window is of a fixed entry size less than an amount of instructions in the spill instruction set,
- wherein execution of at least one instruction of the spill instruction set results in an update of a temporary register, and
- wherein contents of the temporary register are stored in an architectural register upon exception-free execution of the spill instruction set.
Dependencies are inferred from the claim text.