syscall_emul.hh (13534:6068637fc0c0) syscall_emul.hh (13535:14b3f5a55d38)
1/*
2 * Copyright (c) 2012-2013, 2015 ARM Limited
3 * Copyright (c) 2015 Advanced Micro Devices, Inc.
4 * All rights reserved
5 *
6 * The license below extends only to copyright in the software and shall
7 * not be construed as granting a license to any other intellectual
8 * property including but not limited to intellectual property relating

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

1397
1398#if THE_ISA == ALPHA_ISA
1399 ctc->setIntReg(TheISA::SyscallSuccessReg, 0);
1400#elif THE_ISA == SPARC_ISA
1401 tc->setIntReg(TheISA::SyscallPseudoReturnReg, 0);
1402 ctc->setIntReg(TheISA::SyscallPseudoReturnReg, 1);
1403#endif
1404
1/*
2 * Copyright (c) 2012-2013, 2015 ARM Limited
3 * Copyright (c) 2015 Advanced Micro Devices, Inc.
4 * All rights reserved
5 *
6 * The license below extends only to copyright in the software and shall
7 * not be construed as granting a license to any other intellectual
8 * property including but not limited to intellectual property relating

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

1397
1398#if THE_ISA == ALPHA_ISA
1399 ctc->setIntReg(TheISA::SyscallSuccessReg, 0);
1400#elif THE_ISA == SPARC_ISA
1401 tc->setIntReg(TheISA::SyscallPseudoReturnReg, 0);
1402 ctc->setIntReg(TheISA::SyscallPseudoReturnReg, 1);
1403#endif
1404
1405 ctc->pcState(tc->nextInstAddr());
1405 TheISA::PCState cpc = tc->pcState();
1406 cpc.advance();
1407 ctc->pcState(cpc);
1406 ctc->activate();
1407
1408 return cp->pid();
1409}
1410
1411/// Target fstatfs() handler.
1412template <class OS>
1413SyscallReturn

--- 689 unchanged lines hidden ---
1408 ctc->activate();
1409
1410 return cp->pid();
1411}
1412
1413/// Target fstatfs() handler.
1414template <class OS>
1415SyscallReturn

--- 689 unchanged lines hidden ---