Patent ID: 7702855
Filing Date: 2010-04-20
Classification: G06F

Abstract:
1. A device, comprising: a stack memory; a stack allocation indicator including an end of stack pointer to identify an active portion of the stack memory, the end of stack pointer indicating furthest data of the active portion of the stack memory; a cache memory to cache at least a portion of the stack memory; and a circuit to implement a cache memory policy for the stack memory, the circuit to allocate a cache line for the stack memory in the cache memory without reading a corresponding portion of the stack memory when an address referenced is outside the active portion of the stack memory, to invalidate a cache line that was caching a previously active portion of the stack memory but now resides in a region beyond the active portion of the stack memory, and to allocate a cache line for the stack memory in the cache memory and read a corresponding portion of the stack memory when an address referenced is within the active region of the stack memory and was not allocated a cache line when the end of stack pointer was moved.