1. A cache memory comprising: a tag memory array including at least one tag memory; a data memory array including at least one data memory, with the at least one data memory and the at least one tag memory together forming at least one cache way; a control register for storing a mode byte, a tag base address, and a data base address, with the mode byte recording a reconfiguration status of the at least one cache way, with the tag base address being a start address of the tag memory array, and with the data base address being a start address of the data memory array; a memory controller electrically connected to the tag memory array, the data memory array, and the control register, with the memory controller controlling a data access state of the tag memory array according to the mode byte and the tag base address, and with the memory controller controlling a data access state of the data memory array according to the mode byte and the data base address; and a selection module electrically connected between the tag memory array, the data memory array, and the memory controller, with the selection module permitting the memory controller to control the tag memory array and the data memory array to access data.