cpu_impl.hh (5543:3af77710f397) | cpu_impl.hh (5712:199d31b47f7b) |
---|---|
1/* 2 * Copyright (c) 2006 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; --- 138 unchanged lines hidden (view full) --- 147#endif 148 149 uint64_t fetch_PC = thread->readPC() & ~3; 150 151 // set up memory request for instruction fetch 152 memReq = new Request(inst->threadNumber, fetch_PC, 153 sizeof(uint32_t), 154 IFETCH_FLAGS(thread->readPC()), | 1/* 2 * Copyright (c) 2006 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; --- 138 unchanged lines hidden (view full) --- 147#endif 148 149 uint64_t fetch_PC = thread->readPC() & ~3; 150 151 // set up memory request for instruction fetch 152 memReq = new Request(inst->threadNumber, fetch_PC, 153 sizeof(uint32_t), 154 IFETCH_FLAGS(thread->readPC()), |
155 fetch_PC, thread->readCpuId(), inst->threadNumber); | 155 fetch_PC, thread->cpuId(), inst->threadNumber); |
156 157 bool succeeded = translateInstReq(memReq); 158 159 if (!succeeded) { 160 if (inst->getFault() == NoFault) { 161 // In this case the instruction was not a dummy 162 // instruction carrying an ITB fault. In the single 163 // threaded case the ITB should still be able to --- 320 unchanged lines hidden --- | 156 157 bool succeeded = translateInstReq(memReq); 158 159 if (!succeeded) { 160 if (inst->getFault() == NoFault) { 161 // In this case the instruction was not a dummy 162 // instruction carrying an ITB fault. In the single 163 // threaded case the ITB should still be able to --- 320 unchanged lines hidden --- |