Compacted context state management

    公开(公告)号:US09898330B2

    公开(公告)日:2018-02-20

    申请号:US14076341

    申请日:2013-11-11

    申请人: Intel Corporation

    IPC分类号: G06F9/46 G06F9/30

    摘要: Embodiments of an invention related to compacted context state management are disclosed. In one embodiment, a processor includes instruction hardware and state management logic. The instruction hardware is to receive a first save instruction and a second save instruction. The state management logic is to, in response to the first save instruction, save context state in an un-compacted format in a first save area. The state management logic is also to, in response to the second save instruction, save a compaction mask and context state in a compacted format in a second save area and set a compacted-save indicator in the second save area. The state management logic is also to, in response to a single restore instruction, determine, based on the compacted-save indicator, whether to restore context from the un-compacted format in the first save area or from the compacted format in the second save area.