inst_pb_trace.cc (12615:ccdc49c36ad3) | inst_pb_trace.cc (12619:00be589dbe16) |
---|---|
1/* 2 * Copyright (c) 2014 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 146 unchanged lines hidden (view full) --- 155 curMsg->set_inst(letoh(*reinterpret_cast<uint32_t *>(buf.get()))); 156 } else if (instSize) { 157 curMsg->set_inst_bytes( 158 std::string(reinterpret_cast<const char *>(buf.get()), bufSize)); 159 } 160 curMsg->set_cpuid(tc->cpuId()); 161 curMsg->set_tick(curTick()); 162 curMsg->set_type(static_cast<ProtoMessage::Inst_InstType>(si->opClass())); | 1/* 2 * Copyright (c) 2014 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 146 unchanged lines hidden (view full) --- 155 curMsg->set_inst(letoh(*reinterpret_cast<uint32_t *>(buf.get()))); 156 } else if (instSize) { 157 curMsg->set_inst_bytes( 158 std::string(reinterpret_cast<const char *>(buf.get()), bufSize)); 159 } 160 curMsg->set_cpuid(tc->cpuId()); 161 curMsg->set_tick(curTick()); 162 curMsg->set_type(static_cast<ProtoMessage::Inst_InstType>(si->opClass())); |
163 curMsg->set_inst_flags(bits(si->machInst, 7, 0)); 164 | |
165} 166 167void 168InstPBTrace::traceMem(StaticInstPtr si, Addr a, Addr s, unsigned f) 169{ 170 panic_if(!curMsg, "Memory access w/o msg?!"); 171 172 // We do a poor job identifying macro-ops that are load/stores --- 18 unchanged lines hidden --- | 163} 164 165void 166InstPBTrace::traceMem(StaticInstPtr si, Addr a, Addr s, unsigned f) 167{ 168 panic_if(!curMsg, "Memory access w/o msg?!"); 169 170 // We do a poor job identifying macro-ops that are load/stores --- 18 unchanged lines hidden --- |