cpu_impl.hh (4172:141705d83494) | cpu_impl.hh (5543:3af77710f397) |
---|---|
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; --- 127 unchanged lines hidden (view full) --- 136 DPRINTF(Checker, "Changed NextPC recently to %#x\n", 137 thread->readNextPC()); 138 changedNextPC = false; 139 } 140 141 // Try to fetch the instruction 142 143#if FULL_SYSTEM | 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; --- 127 unchanged lines hidden (view full) --- 136 DPRINTF(Checker, "Changed NextPC recently to %#x\n", 137 thread->readNextPC()); 138 changedNextPC = false; 139 } 140 141 // Try to fetch the instruction 142 143#if FULL_SYSTEM |
144#define IFETCH_FLAGS(pc) ((pc) & 1) ? PHYSICAL : 0 | 144#define IFETCH_FLAGS(pc) ((pc) & 1) ? PHYSICAL : 0 |
145#else | 145#else |
146#define IFETCH_FLAGS(pc) 0 | 146#define IFETCH_FLAGS(pc) 0 |
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()), --- 329 unchanged lines hidden --- | 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()), --- 329 unchanged lines hidden --- |