sifive/devices/ccache.h
static inline void ccache_inject_error_data(uint64_t base_addr, uint8_t bit) {
  ccache_barrier_0();
  *(volatile uint32_t *)(base_addr + CCACHE_INJECT) = CCACHE_ECC_TOGGLE_DATA | bit;
  ccache_barrier_1();
}
// The next time the cache updates an SRAM, inject this bit error
The next time the cache updates an SRAM, inject this bit error
The next time the cache updates an SRAM inject this bit error
static inline void ccache_inject_error_data(uint64_t base_addr, uint8_t bit) {
  ccache_barrier_0();
  *(volatile uint32_t *)(base_addr + CCACHE_INJECT) = CCACHE_ECC_TOGGLE_DATA | bit;
  ccache_barrier_1();
}
static inline void ccache_inject_error_data ( uint64_t base_addr , uint8_t bit ) { ccache_barrier_0 ( ) ; * ( volatile uint32_t * ) ( base_addr + CCACHE_INJECT ) = CCACHE_ECC_TOGGLE_DATA | bit ; ccache_barrier_1 ( ) ; }
The next time the cache updates an SRAM, inject this bit error
The next time the cache updates an SRAM inject this bit error