atomic.cc (2816:776562207565) | atomic.cc (2827:45c3bdb0ffd4) |
---|---|
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; --- 110 unchanged lines hidden (view full) --- 119 : BaseSimpleCPU(p), tickEvent(this), 120 width(p->width), simulate_stalls(p->simulate_stalls), 121 icachePort(name() + "-iport", this), dcachePort(name() + "-iport", this) 122{ 123 _status = Idle; 124 125 // @todo fix me and get the real cpu id & thread number!!! 126 ifetch_req = new Request(); | 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; --- 110 unchanged lines hidden (view full) --- 119 : BaseSimpleCPU(p), tickEvent(this), 120 width(p->width), simulate_stalls(p->simulate_stalls), 121 icachePort(name() + "-iport", this), dcachePort(name() + "-iport", this) 122{ 123 _status = Idle; 124 125 // @todo fix me and get the real cpu id & thread number!!! 126 ifetch_req = new Request(); |
127 ifetch_req->setThreadContext(0,0); //Need CPU/Thread IDS HERE |
|
127 ifetch_pkt = new Packet(ifetch_req, Packet::ReadReq, Packet::Broadcast); 128 ifetch_pkt->dataStatic(&inst); 129 130 data_read_req = new Request(); | 128 ifetch_pkt = new Packet(ifetch_req, Packet::ReadReq, Packet::Broadcast); 129 ifetch_pkt->dataStatic(&inst); 130 131 data_read_req = new Request(); |
132 data_read_req->setThreadContext(0,0); //Need CPU/Thread IDS HERE |
|
131 data_read_pkt = new Packet(data_read_req, Packet::ReadReq, 132 Packet::Broadcast); 133 data_read_pkt->dataStatic(&dataReg); 134 135 data_write_req = new Request(); | 133 data_read_pkt = new Packet(data_read_req, Packet::ReadReq, 134 Packet::Broadcast); 135 data_read_pkt->dataStatic(&dataReg); 136 137 data_write_req = new Request(); |
138 data_write_req->setThreadContext(0,0); //Need CPU/Thread IDS HERE |
|
136 data_write_pkt = new Packet(data_write_req, Packet::WriteReq, 137 Packet::Broadcast); 138} 139 140 141AtomicSimpleCPU::~AtomicSimpleCPU() 142{ 143} --- 383 unchanged lines hidden --- | 139 data_write_pkt = new Packet(data_write_req, Packet::WriteReq, 140 Packet::Broadcast); 141} 142 143 144AtomicSimpleCPU::~AtomicSimpleCPU() 145{ 146} --- 383 unchanged lines hidden --- |