simple_thread.hh (4661:44458219add1) | simple_thread.hh (4772:f08370a81812) |
---|---|
1/* 2 * Copyright (c) 2001-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; --- 363 unchanged lines hidden (view full) --- 372 unsigned readStCondFailures() { return storeCondFailures; } 373 374 void setStCondFailures(unsigned sc_failures) 375 { storeCondFailures = sc_failures; } 376 377#if !FULL_SYSTEM 378 TheISA::IntReg getSyscallArg(int i) 379 { | 1/* 2 * Copyright (c) 2001-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; --- 363 unchanged lines hidden (view full) --- 372 unsigned readStCondFailures() { return storeCondFailures; } 373 374 void setStCondFailures(unsigned sc_failures) 375 { storeCondFailures = sc_failures; } 376 377#if !FULL_SYSTEM 378 TheISA::IntReg getSyscallArg(int i) 379 { |
380 assert(i < TheISA::NumArgumentRegs); |
|
380 return regs.readIntReg(TheISA::flattenIntIndex(getTC(), | 381 return regs.readIntReg(TheISA::flattenIntIndex(getTC(), |
381 TheISA::ArgumentReg0 + i)); | 382 TheISA::ArgumentReg[i])); |
382 } 383 384 // used to shift args for indirect syscall 385 void setSyscallArg(int i, TheISA::IntReg val) 386 { | 383 } 384 385 // used to shift args for indirect syscall 386 void setSyscallArg(int i, TheISA::IntReg val) 387 { |
388 assert(i < TheISA::NumArgumentRegs); |
|
387 regs.setIntReg(TheISA::flattenIntIndex(getTC(), | 389 regs.setIntReg(TheISA::flattenIntIndex(getTC(), |
388 TheISA::ArgumentReg0 + i), val); | 390 TheISA::ArgumentReg[i]), val); |
389 } 390 391 void setSyscallReturn(SyscallReturn return_value) 392 { 393 TheISA::setSyscallReturn(return_value, getTC()); 394 } 395 396 void syscall(int64_t callnum) --- 21 unchanged lines hidden --- | 391 } 392 393 void setSyscallReturn(SyscallReturn return_value) 394 { 395 TheISA::setSyscallReturn(return_value, getTC()); 396 } 397 398 void syscall(int64_t callnum) --- 21 unchanged lines hidden --- |