isa.cc (9423:43caa4ca5979) isa.cc (9425:a24092160ec7)
1/*
2 * Copyright (c) 2009 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;

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

365 return;
366 default:
367 break;
368 }
369 setMiscRegNoEffect(miscReg, newVal);
370}
371
372void
1/*
2 * Copyright (c) 2009 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;

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

365 return;
366 default:
367 break;
368 }
369 setMiscRegNoEffect(miscReg, newVal);
370}
371
372void
373ISA::serialize(EventManager *em, std::ostream & os)
373ISA::serialize(std::ostream & os)
374{
375 SERIALIZE_ARRAY(regVal, NumMiscRegs);
376}
377
378void
374{
375 SERIALIZE_ARRAY(regVal, NumMiscRegs);
376}
377
378void
379ISA::unserialize(EventManager *em, Checkpoint * cp,
380 const std::string & section)
379ISA::unserialize(Checkpoint * cp, const std::string & section)
381{
382 UNSERIALIZE_ARRAY(regVal, NumMiscRegs);
383 updateHandyM5Reg(regVal[MISCREG_EFER],
384 regVal[MISCREG_CR0],
385 regVal[MISCREG_CS_ATTR],
386 regVal[MISCREG_SS_ATTR],
387 regVal[MISCREG_RFLAGS],
388 NULL);
389}
390
391}
392
393X86ISA::ISA *
394X86ISAParams::create()
395{
396 return new X86ISA::ISA(this);
397}
380{
381 UNSERIALIZE_ARRAY(regVal, NumMiscRegs);
382 updateHandyM5Reg(regVal[MISCREG_EFER],
383 regVal[MISCREG_CR0],
384 regVal[MISCREG_CS_ATTR],
385 regVal[MISCREG_SS_ATTR],
386 regVal[MISCREG_RFLAGS],
387 NULL);
388}
389
390}
391
392X86ISA::ISA *
393X86ISAParams::create()
394{
395 return new X86ISA::ISA(this);
396}