trace_cpu.cc (13784:1941dc118243) trace_cpu.cc (14192:595a4358b844)
1/*
2 * Copyright (c) 2013 - 2016 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

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

101 progressMsgThreshold += progressMsgInterval;
102 }
103}
104
105void
106TraceCPU::takeOverFrom(BaseCPU *oldCPU)
107{
108 // Unbind the ports of the old CPU and bind the ports of the TraceCPU.
1/*
2 * Copyright (c) 2013 - 2016 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

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

101 progressMsgThreshold += progressMsgInterval;
102 }
103}
104
105void
106TraceCPU::takeOverFrom(BaseCPU *oldCPU)
107{
108 // Unbind the ports of the old CPU and bind the ports of the TraceCPU.
109 assert(!getInstPort().isConnected());
110 assert(oldCPU->getInstPort().isConnected());
111 Port &inst_peer_port = oldCPU->getInstPort().getSlavePort();
112 oldCPU->getInstPort().unbind();
113 getInstPort().bind(inst_peer_port);
114
115 assert(!getDataPort().isConnected());
116 assert(oldCPU->getDataPort().isConnected());
117 Port &data_peer_port = oldCPU->getDataPort().getSlavePort();
118 oldCPU->getDataPort().unbind();
119 getDataPort().bind(data_peer_port);
109 getInstPort().takeOverFrom(&oldCPU->getInstPort());
110 getDataPort().takeOverFrom(&oldCPU->getDataPort());
120}
121
122void
123TraceCPU::init()
124{
125 DPRINTF(TraceCPUInst, "Instruction fetch request trace file is \"%s\"."
126 "\n", instTraceFile);
127 DPRINTF(TraceCPUData, "Data memory request trace file is \"%s\".\n",

--- 1392 unchanged lines hidden ---
111}
112
113void
114TraceCPU::init()
115{
116 DPRINTF(TraceCPUInst, "Instruction fetch request trace file is \"%s\"."
117 "\n", instTraceFile);
118 DPRINTF(TraceCPUData, "Data memory request trace file is \"%s\".\n",

--- 1392 unchanged lines hidden ---