If there are more than one cache map to be generated for different types, a redeclaration error will occur, to avoid this error, put common part in a single file. Signed-off-by: Peng Gao <peng.gao.dut@gmail.com>