process.cc (5286:0ef359b4a1f2) | process.cc (5287:0ef7cfb67c97) |
---|---|
1/* 2 * Copyright (c) 2003-2004 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; --- 439 unchanged lines hidden (view full) --- 448 { 449 if (Otherwin) { 450 panic("Otherwin non-zero.\n"); 451 } else { 452 tc->setMiscReg(MISCREG_CWP, CWP); 453 //Do the stores 454 IntReg sp = tc->readIntReg(StackPointerReg); 455 for (int index = 16; index < 32; index++) { | 1/* 2 * Copyright (c) 2003-2004 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; --- 439 unchanged lines hidden (view full) --- 448 { 449 if (Otherwin) { 450 panic("Otherwin non-zero.\n"); 451 } else { 452 tc->setMiscReg(MISCREG_CWP, CWP); 453 //Do the stores 454 IntReg sp = tc->readIntReg(StackPointerReg); 455 for (int index = 16; index < 32; index++) { |
456 IntReg regVal = tc->readIntReg(index); | 456 uint32_t regVal = tc->readIntReg(index); |
457 regVal = htog(regVal); 458 if (!tc->getMemPort()->tryWriteBlob( 459 sp + (index - 16) * 4, (uint8_t *)®Val, 4)) { 460 warn("Failed to save register to the stack when " 461 "flushing windows.\n"); 462 } 463 } 464 Canrestore--; --- 43 unchanged lines hidden --- | 457 regVal = htog(regVal); 458 if (!tc->getMemPort()->tryWriteBlob( 459 sp + (index - 16) * 4, (uint8_t *)®Val, 4)) { 460 warn("Failed to save register to the stack when " 461 "flushing windows.\n"); 462 } 463 } 464 Canrestore--; --- 43 unchanged lines hidden --- |