thread_state.hh (11168:f98eb2da15a4) | thread_state.hh (11359:b0b976a1ceda) |
---|---|
1/* 2 * Copyright (c) 2012 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 --- 130 unchanged lines hidden (view full) --- 139 /** Returns a pointer to the TC of this thread. */ 140 ThreadContext *getTC() { return tc; } 141 142 /** Handles the syscall. */ 143 void syscall(int64_t callnum) { process->syscall(callnum, tc); } 144 145 void dumpFuncProfile() 146 { | 1/* 2 * Copyright (c) 2012 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 --- 130 unchanged lines hidden (view full) --- 139 /** Returns a pointer to the TC of this thread. */ 140 ThreadContext *getTC() { return tc; } 141 142 /** Handles the syscall. */ 143 void syscall(int64_t callnum) { process->syscall(callnum, tc); } 144 145 void dumpFuncProfile() 146 { |
147 std::ostream *os = simout.create(csprintf("profile.%s.dat", cpu->name())); 148 profile->dump(tc, *os); | 147 OutputStream *os( 148 simout.create(csprintf("profile.%s.dat", cpu->name()))); 149 profile->dump(tc, *os->stream()); 150 simout.close(os); |
149 } 150}; 151 152#endif // __CPU_O3_THREAD_STATE_HH__ | 151 } 152}; 153 154#endif // __CPU_O3_THREAD_STATE_HH__ |