base.hh (3735:86a7cf4dcc11) | base.hh (3792:dae368e56d0e) |
---|---|
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; --- 289 unchanged lines hidden (view full) --- 298 return thread->setMiscReg(misc_reg, val); 299 } 300 301 void setMiscRegWithEffect(int misc_reg, const MiscReg &val) 302 { 303 return thread->setMiscRegWithEffect(misc_reg, val); 304 } 305 | 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; --- 289 unchanged lines hidden (view full) --- 298 return thread->setMiscReg(misc_reg, val); 299 } 300 301 void setMiscRegWithEffect(int misc_reg, const MiscReg &val) 302 { 303 return thread->setMiscRegWithEffect(misc_reg, val); 304 } 305 |
306 MiscReg readMiscRegOperand(const StaticInst *si, int idx) 307 { 308 int reg_idx = si->srcRegIdx(idx) - TheISA::Ctrl_Base_DepTag; 309 return thread->readMiscReg(reg_idx); 310 } 311 312 MiscReg readMiscRegOperandWithEffect(const StaticInst *si, int idx) 313 { 314 int reg_idx = si->srcRegIdx(idx) - TheISA::Ctrl_Base_DepTag; 315 return thread->readMiscRegWithEffect(reg_idx); 316 } 317 318 void setMiscRegOperand(const StaticInst *si, int idx, const MiscReg &val) 319 { 320 int reg_idx = si->destRegIdx(idx) - TheISA::Ctrl_Base_DepTag; 321 return thread->setMiscReg(reg_idx, val); 322 } 323 324 void setMiscRegOperandWithEffect( 325 const StaticInst *si, int idx, const MiscReg &val) 326 { 327 int reg_idx = si->destRegIdx(idx) - TheISA::Ctrl_Base_DepTag; 328 return thread->setMiscRegWithEffect(reg_idx, val); 329 } 330 |
|
306#if FULL_SYSTEM 307 Fault hwrei() { return thread->hwrei(); } 308 void ev5_trap(Fault fault) { fault->invoke(tc); } 309 bool simPalCheck(int palFunc) { return thread->simPalCheck(palFunc); } 310#else 311 void syscall(int64_t callnum) { thread->syscall(callnum); } 312#endif 313 314 bool misspeculating() { return thread->misspeculating(); } 315 ThreadContext *tcBase() { return tc; } 316}; 317 318#endif // __CPU_SIMPLE_BASE_HH__ | 331#if FULL_SYSTEM 332 Fault hwrei() { return thread->hwrei(); } 333 void ev5_trap(Fault fault) { fault->invoke(tc); } 334 bool simPalCheck(int palFunc) { return thread->simPalCheck(palFunc); } 335#else 336 void syscall(int64_t callnum) { thread->syscall(callnum); } 337#endif 338 339 bool misspeculating() { return thread->misspeculating(); } 340 ThreadContext *tcBase() { return tc; } 341}; 342 343#endif // __CPU_SIMPLE_BASE_HH__ |