simpoint.cc (10381:ab8b8601b6ff) simpoint.cc (10417:710ee116eb68)
1/*
2 * Copyright (c) 2012-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

--- 63 unchanged lines hidden (view full) ---

72 listeners.push_back(new SimPointListener(this, "Commit",
73 &SimPoint::profile));
74}
75
76void
77SimPoint::profile(const std::pair<SimpleThread*, StaticInstPtr>& p)
78{
79 SimpleThread* thread = p.first;
1/*
2 * Copyright (c) 2012-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

--- 63 unchanged lines hidden (view full) ---

72 listeners.push_back(new SimPointListener(this, "Commit",
73 &SimPoint::profile));
74}
75
76void
77SimPoint::profile(const std::pair<SimpleThread*, StaticInstPtr>& p)
78{
79 SimpleThread* thread = p.first;
80 StaticInstPtr inst = p.second;
80 const StaticInstPtr &inst = p.second;
81
82 if (!currentBBVInstCount)
83 currentBBV.first = thread->pcState().instAddr();
84
85 ++intervalCount;
86 ++currentBBVInstCount;
87
88 // If inst is control inst, assume end of basic block.

--- 57 unchanged lines hidden ---
81
82 if (!currentBBVInstCount)
83 currentBBV.first = thread->pcState().instAddr();
84
85 ++intervalCount;
86 ++currentBBVInstCount;
87
88 // If inst is control inst, assume end of basic block.

--- 57 unchanged lines hidden ---