dyn_inst.hh (7783:9b880b40ac10) dyn_inst.hh (7848:cc5e64f8423f)
1/*
2 * Copyright (c) 2010 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 167 unchanged lines hidden (view full) ---

176
177 for (int i = 0; i < _numDestMiscRegs; i++)
178 this->cpu->setMiscReg(
179 _destMiscRegIdx[i], _destMiscRegVal[i], this->threadNumber);
180
181 this->thread->inSyscall = in_syscall;
182 }
183
1/*
2 * Copyright (c) 2010 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 167 unchanged lines hidden (view full) ---

176
177 for (int i = 0; i < _numDestMiscRegs; i++)
178 this->cpu->setMiscReg(
179 _destMiscRegIdx[i], _destMiscRegVal[i], this->threadNumber);
180
181 this->thread->inSyscall = in_syscall;
182 }
183
184 void forwardOldRegs()
185 {
186
187 for (int idx = 0; idx < this->numDestRegs(); idx++) {
188 PhysRegIndex prev_phys_reg = this->prevDestRegIdx(idx);
189 TheISA::RegIndex original_dest_reg = this->staticInst->destRegIdx(idx);
190 if (original_dest_reg < TheISA::FP_Base_DepTag)
191 this->setIntRegOperand(this->staticInst.get(), idx, this->cpu->readIntReg(prev_phys_reg));
192 else if (original_dest_reg < TheISA::Ctrl_Base_DepTag)
193 this->setFloatRegOperandBits(this->staticInst.get(), idx, this->cpu->readFloatRegBits(prev_phys_reg));
194 }
195 }
184#if FULL_SYSTEM
185 /** Calls hardware return from error interrupt. */
186 Fault hwrei();
187 /** Traps to handle specified fault. */
188 void trap(Fault fault);
189 bool simPalCheck(int palFunc);
190#else
191 /** Calls a syscall. */

--- 88 unchanged lines hidden ---
196#if FULL_SYSTEM
197 /** Calls hardware return from error interrupt. */
198 Fault hwrei();
199 /** Traps to handle specified fault. */
200 void trap(Fault fault);
201 bool simPalCheck(int palFunc);
202#else
203 /** Calls a syscall. */

--- 88 unchanged lines hidden ---