macsim/macsim-seq.c
// Print reason why the process was stopped and return core state
Print reason why the process was stopped and return core state
Print reason why the process was stopped and return core state
uint_fast32_t reason_for_stop(node_t *node)
{
    uint_fast32_t cs = node->state;
    switch (cs)
    {
    case CS_STOPPED:
        info(log_general, "%02x@%08x: Core stopped at cycle %ld.\n",
             node->rank, node->pc, node->cycle);
        break;
    case CS_UNKNOWN_INSTRUCTION:
        info(log_general, "%02x@%08x: Unknown instruction %x.\n",
             node->rank, node->pc, node->instruction_word);
        break;
    default:
        fatal("%02x@%08x: Core stopped in unknown state %d.\n",
              node->rank, node->pc, node->state);
    }
    return cs;
}
uint_fast32_t reason_for_stop ( node_t * node ) { uint_fast32_t cs = node -> state ; switch ( cs ) { case CS_STOPPED : info ( log_general , " \n " , node -> rank , node -> pc , node -> cycle ) ; break ; case CS_UNKNOWN_INSTRUCTION : info ( log_general , " \n " , node -> rank , node -> pc , node -> instruction_word ) ; break ; default : fatal ( " \n " , node -> rank , node -> pc , node -> state ) ; } return cs ; }
Print reason why the process was stopped and return core state
Print reason why the process was stopped and return core state