base.cc (7045:e21fe6a62b1c) | base.cc (7100:3467916569e3) |
---|---|
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; --- 396 unchanged lines hidden (view full) --- 405 //if(predecoder.needMoreBytes()) 406 predecoder.moreBytes(thread->readPC(), fetchPC, inst); 407 //else 408 // predecoder.process(); 409 410 //If an instruction is ready, decode it. Otherwise, we'll have to 411 //fetch beyond the MachInst at the current pc. 412 if (predecoder.extMachInstReady()) { | 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; --- 396 unchanged lines hidden (view full) --- 405 //if(predecoder.needMoreBytes()) 406 predecoder.moreBytes(thread->readPC(), fetchPC, inst); 407 //else 408 // predecoder.process(); 409 410 //If an instruction is ready, decode it. Otherwise, we'll have to 411 //fetch beyond the MachInst at the current pc. 412 if (predecoder.extMachInstReady()) { |
413#if THE_ISA == X86_ISA | 413#if THE_ISA == X86_ISA || THE_ISA == ARM_ISA |
414 thread->setNextPC(thread->readPC() + predecoder.getInstSize()); 415#endif // X86_ISA 416 stayAtPC = false; 417 instPtr = StaticInst::decode(predecoder.getExtMachInst(), 418 thread->readPC()); 419 } else { 420 stayAtPC = true; 421 fetchOffset += sizeof(MachInst); --- 141 unchanged lines hidden --- | 414 thread->setNextPC(thread->readPC() + predecoder.getInstSize()); 415#endif // X86_ISA 416 stayAtPC = false; 417 instPtr = StaticInst::decode(predecoder.getExtMachInst(), 418 thread->readPC()); 419 } else { 420 stayAtPC = true; 421 fetchOffset += sizeof(MachInst); --- 141 unchanged lines hidden --- |