syscall_emul.cc (6134:8652636856b3) syscall_emul.cc (6337:cac56cd6b015)
1/*
2 * Copyright (c) 2003-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;

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

687 #elif THE_ISA == SPARC_ISA
688 TheISA::copyRegs(tc, ctc);
689
690 // TODO: Explain what this code actually does :-)
691 ctc->setIntReg(NumIntArchRegs + 6, 0);
692 ctc->setIntReg(NumIntArchRegs + 4, 0);
693 ctc->setIntReg(NumIntArchRegs + 3, NWindows - 2);
694 ctc->setIntReg(NumIntArchRegs + 5, NWindows);
1/*
2 * Copyright (c) 2003-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;

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

687 #elif THE_ISA == SPARC_ISA
688 TheISA::copyRegs(tc, ctc);
689
690 // TODO: Explain what this code actually does :-)
691 ctc->setIntReg(NumIntArchRegs + 6, 0);
692 ctc->setIntReg(NumIntArchRegs + 4, 0);
693 ctc->setIntReg(NumIntArchRegs + 3, NWindows - 2);
694 ctc->setIntReg(NumIntArchRegs + 5, NWindows);
695 ctc->setMiscRegNoEffect(MISCREG_CWP, 0);
695 ctc->setMiscReg(MISCREG_CWP, 0);
696 ctc->setIntReg(NumIntArchRegs + 7, 0);
697 ctc->setMiscRegNoEffect(MISCREG_TL, 0);
698 ctc->setMiscRegNoEffect(MISCREG_ASI, ASI_PRIMARY);
699
700 for (int y = 8; y < 32; y++)
701 ctc->setIntReg(y, tc->readIntReg(y));
702 #else
703 fatal("sys_clone is not implemented for this ISA\n");

--- 35 unchanged lines hidden ---
696 ctc->setIntReg(NumIntArchRegs + 7, 0);
697 ctc->setMiscRegNoEffect(MISCREG_TL, 0);
698 ctc->setMiscRegNoEffect(MISCREG_ASI, ASI_PRIMARY);
699
700 for (int y = 8; y < 32; y++)
701 ctc->setIntReg(y, tc->readIntReg(y));
702 #else
703 fatal("sys_clone is not implemented for this ISA\n");

--- 35 unchanged lines hidden ---