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 --- 61 unchanged lines hidden (view full) --- 70 const StaticInstPtr mi = NULL) 71 : InstRecord(when, tc, si, pc, mi), tracer(_tracer) 72 {} 73 74 /** called by the cpu when the instruction commits. 75 * This implementation of dump calls InstPBTrace to output the contents to a 76 * protobuf file 77 */ |
78 void dump() override; |
79 80 protected: 81 InstPBTrace& tracer; 82 83}; 84 85class InstPBTrace : public InstTracer 86{ 87 public: 88 InstPBTrace(const InstPBTraceParams *p); 89 virtual ~InstPBTrace(); 90 91 InstPBTraceRecord* getInstRecord(Tick when, ThreadContext *tc, const 92 StaticInstPtr si, TheISA::PCState pc, const |
93 StaticInstPtr mi = NULL) override; |
94 95 protected: 96 /** One output stream for the entire simulation. 97 * We encode the CPU & system ID so all we need is a single file 98 */ 99 static ProtoOutputStream *traceStream; 100 101 --- 34 unchanged lines hidden --- |