Lib/vc4/RegisterMap.cpp
/**
 * @return true if errors present, false otherwise
 */
@return true if errors present, false otherwise
@return true if errors present false otherwise
bool RegisterMap::checkThreadErrors() {
  uint32_t ERROR_BITMASK = 0x08;  
  uint32_t reg0 = readRegister(V3D_CT0CS);
  uint32_t reg1 = readRegister(V3D_CT1CS);
  bool ret = false;
  if (reg0 & ERROR_BITMASK) {
    printf("Control thread error for thread 0\n");
    ret = true;
  }
  if (reg1 & ERROR_BITMASK) {
    printf("Control thread error for thread 1\n");
    ret = true;
  }
  return ret;
}
bool RegisterMap :: checkThreadErrors ( ) { uint32_t ERROR_BITMASK = 0x08 ; uint32_t reg0 = readRegister ( V3D_CT0CS ) ; uint32_t reg1 = readRegister ( V3D_CT1CS ) ; bool ret = false ; if ( reg0 & ERROR_BITMASK ) { printf ( " \n " ) ; ret = true ; } if ( reg1 & ERROR_BITMASK ) { printf ( " \n " ) ; ret = true ; } return ret ; }
@return true if errors present, false otherwise
@return true if errors present false otherwise
// If set, control thread error