摘要 |
In a data processing system having a central processing unit including a register file for storage of often-used data, a method and system is provided for saving and restoring the contents of the register file from the main memory only when necessary. Each register unit in the register file includes a register protection flag, a save area pointer and a plurality of general purpose registers. The register protection flag is coded to identify if the register unit is in actual use by having contents stored in any of the general purpose registers. Before saving or restoring the register unit, its register protection flag is checked, and only if the flag indicates actual use is the saving or restoring performed.
|