utility.cc (8852:c744483edfcf) utility.cc (9920:028e4da64b42)
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;

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

66 // First loop through the integer registers.
67 for (int i = 0; i < NumIntRegs; ++i)
68 dest->setIntReg(i, src->readIntReg(i));
69
70 // Then loop through the floating point registers.
71 for (int i = 0; i < NumFloatRegs; ++i)
72 dest->setFloatRegBits(i, src->readFloatRegBits(i));
73
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;

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

66 // First loop through the integer registers.
67 for (int i = 0; i < NumIntRegs; ++i)
68 dest->setIntReg(i, src->readIntReg(i));
69
70 // Then loop through the floating point registers.
71 for (int i = 0; i < NumFloatRegs; ++i)
72 dest->setFloatRegBits(i, src->readFloatRegBits(i));
73
74 // Would need to add condition-code regs if implemented
75 assert(NumCCRegs == 0);
76
74 // Copy misc. registers
75 copyMiscRegs(src, dest);
76
77 // Lastly copy PC/NPC
78 dest->pcState(src->pcState());
79}
80
81void

--- 25 unchanged lines hidden ---
77 // Copy misc. registers
78 copyMiscRegs(src, dest);
79
80 // Lastly copy PC/NPC
81 dest->pcState(src->pcState());
82}
83
84void

--- 25 unchanged lines hidden ---