The invention is directed to efficient stack cache logic, which reduces
the number of accesses to main memory. More specifically, in one
embodiment, the invention prevents writing old line data to main memory
when the old line data represents a currently unused area of the cache.
In another embodiment, the invention prevents reading previous line data
for a new tag from main memory when the new tag represents a currently
unused area of the cache.