A storage device in a set associative system includes N-pieces (N is an integer
of 2 or larger) of ways each having a plurality of entries containing at least
replace flags and predetermined data, an acquisition unit acquiring the replace
flags contained in the entries specified by the same address from the N-pieces
of ways, and a selection unit selecting a replace target way on the basis of the
replace flags acquired by the acquisition unit.