The embodiment of the invention provides a cache replacing method, a
cache controller and a processor. The method comprises the following steps that: the
cache controller determines an associated cache
pool of a cache line to be replaced, wherein each associated cache row in the associated cache
pool and the cache row to be replaced belong to the same memory row; a cache row to be written back is further determined from the associated cache
pool according to the access information of the associated cache row; and data in the cache row to be replaced and the cache row to be written back are simultaneously written into a memory. The cache row to be replaced and the cache row to be written back belong to the same memory row, so that the
hit rate of the cache region can be improved; and the memory access performance is improved. The
cache controller further determines the cache row to be written back from the associated cache pool according to the access information of the associated cache row, and only the cache row to be written back in the associated cache pool is written into the memory, so that the number of the memory writing times can be reduced; and the service life of the memory is prolonged.