DecodeResult& FrontEnd::decodeInstruction(ADDRESS pc) { if (pBF->GetSectionInfoByAddr(pc) == NULL) { LOG << "ERROR: attempted to decode outside any known segment " << pc << "\n"; static DecodeResult invalid; invalid.reset(); invalid.valid = false; return invalid; } //donbinhvn for test only return decoder->decodeInstruction(pc, pBF->getTextDelta()); }
// Stub from PPC... DecodeResult& MIPSDecoder::decodeInstruction(ADDRESS pc, int delta) { static DecodeResult result; ADDRESS hostPC = pc+delta; // Clear the result structure; result.reset(); // The actual list of instantiated statements std::list<Statement*>* stmts = NULL; ADDRESS nextPC = NO_ADDRESS; }