Skip to content

Commit bda185c

Browse files
committed
application/cpuinfo: Add new mem_crc_xxx registers in CIF_IINFO_Type
These registers are mostly used in RTL self test. In RV64, test program can write these memory-mapped register to auto calc crc by hardware. And the result will appear in the corresponding crc_rf0/crc_rf1/crc_fp0 register. Signed-off-by: Jiandong Qiu <qiujiandong@nucleisys.com>
1 parent 078bf31 commit bda185c

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

application/baremetal/cpuinfo/cpuinfo.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,13 @@ typedef struct {
279279
uint32_t ecc_inj_addr_lo; /*!< offset 0x01A8 */
280280
uint32_t ecc_inj_addr_hi; /*!< offset 0x01AC */
281281
uint32_t ecc_inj_way; /*!< offset 0x01B0 */
282+
uint32_t reserved9[83]; /*!< offset 0x01B4 */
283+
uint32_t mem_crc_x22_lo; /*!< offset 0x0300 */
284+
uint32_t mem_crc_x22_hi; /*!< offset 0x0304 */
285+
uint32_t mem_crc_x23_lo; /*!< offset 0x0308 */
286+
uint32_t mem_crc_x23_hi; /*!< offset 0x030C */
287+
uint32_t mem_crc_f23_lo; /*!< offset 0x0310 */
288+
uint32_t mem_crc_f23_hi; /*!< offset 0x0314 */
282289
} CIF_IINFO_Type;
283290

284291
/**

0 commit comments

Comments
 (0)