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; --- 388 unchanged lines hidden (view full) --- 397 "register access.\n"); 398 } 399 400 //Fault CacheOp(uint8_t Op, Addr EA); 401 402#if FULL_SYSTEM 403 Fault hwrei() { return thread->hwrei(); } 404 bool simPalCheck(int palFunc) { return thread->simPalCheck(palFunc); } |
405#endif 406 407 void 408 syscall(int64_t callnum) 409 { 410#if FULL_SYSTEM 411 panic("Syscall emulation isn't available in FS mode.\n"); |
412#else |
413 thread->syscall(callnum); |
414#endif |
415 } |
416 417 bool misspeculating() { return thread->misspeculating(); } 418 ThreadContext *tcBase() { return tc; } 419}; 420 421#endif // __CPU_SIMPLE_BASE_HH__ |