atomic.cc (3901:64319816e403) | atomic.cc (4022:c422464ca16e) |
---|---|
1/* 2 * Copyright (c) 2002-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 124 unchanged lines hidden (view full) --- 133{ 134 _status = Idle; 135 136 icachePort.snoopRangeSent = false; 137 dcachePort.snoopRangeSent = false; 138 139 ifetch_req = new Request(); 140 ifetch_req->setThreadContext(p->cpu_id, 0); // Add thread ID if we add MT | 1/* 2 * Copyright (c) 2002-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 124 unchanged lines hidden (view full) --- 133{ 134 _status = Idle; 135 136 icachePort.snoopRangeSent = false; 137 dcachePort.snoopRangeSent = false; 138 139 ifetch_req = new Request(); 140 ifetch_req->setThreadContext(p->cpu_id, 0); // Add thread ID if we add MT |
141 ifetch_pkt = new Packet(ifetch_req, Packet::ReadReq, Packet::Broadcast); | 141 ifetch_pkt = new Packet(ifetch_req, MemCmd::ReadReq, Packet::Broadcast); |
142 ifetch_pkt->dataStatic(&inst); 143 144 data_read_req = new Request(); 145 data_read_req->setThreadContext(p->cpu_id, 0); // Add thread ID here too | 142 ifetch_pkt->dataStatic(&inst); 143 144 data_read_req = new Request(); 145 data_read_req->setThreadContext(p->cpu_id, 0); // Add thread ID here too |
146 data_read_pkt = new Packet(data_read_req, Packet::ReadReq, | 146 data_read_pkt = new Packet(data_read_req, MemCmd::ReadReq, |
147 Packet::Broadcast); 148 data_read_pkt->dataStatic(&dataReg); 149 150 data_write_req = new Request(); 151 data_write_req->setThreadContext(p->cpu_id, 0); // Add thread ID here too | 147 Packet::Broadcast); 148 data_read_pkt->dataStatic(&dataReg); 149 150 data_write_req = new Request(); 151 data_write_req->setThreadContext(p->cpu_id, 0); // Add thread ID here too |
152 data_write_pkt = new Packet(data_write_req, Packet::WriteReq, | 152 data_write_pkt = new Packet(data_write_req, MemCmd::WriteReq, |
153 Packet::Broadcast); 154} 155 156 157AtomicSimpleCPU::~AtomicSimpleCPU() 158{ 159} 160 --- 473 unchanged lines hidden --- | 153 Packet::Broadcast); 154} 155 156 157AtomicSimpleCPU::~AtomicSimpleCPU() 158{ 159} 160 --- 473 unchanged lines hidden --- |