isa.cc (9384:877293183bdf) | 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; --- 624 unchanged lines hidden (view full) --- 633 case MISCREG_HPSTATE: 634 setFSReg(miscReg, val, tc); 635 return; 636 } 637 setMiscRegNoEffect(miscReg, new_val); 638} 639 640void | 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; --- 624 unchanged lines hidden (view full) --- 633 case MISCREG_HPSTATE: 634 setFSReg(miscReg, val, tc); 635 return; 636 } 637 setMiscRegNoEffect(miscReg, new_val); 638} 639 640void |
641ISA::serialize(EventManager *em, std::ostream &os) | 641ISA::serialize(std::ostream &os) |
642{ 643 SERIALIZE_SCALAR(asi); 644 SERIALIZE_SCALAR(tick); 645 SERIALIZE_SCALAR(fprs); 646 SERIALIZE_SCALAR(gsr); 647 SERIALIZE_SCALAR(softint); 648 SERIALIZE_SCALAR(tick_cmpr); 649 SERIALIZE_SCALAR(stick); --- 59 unchanged lines hidden (view full) --- 709 SERIALIZE_SCALAR(tc_num); 710 SERIALIZE_SCALAR(tick_cmp); 711 SERIALIZE_SCALAR(stick_cmp); 712 SERIALIZE_SCALAR(hstick_cmp); 713 } 714} 715 716void | 642{ 643 SERIALIZE_SCALAR(asi); 644 SERIALIZE_SCALAR(tick); 645 SERIALIZE_SCALAR(fprs); 646 SERIALIZE_SCALAR(gsr); 647 SERIALIZE_SCALAR(softint); 648 SERIALIZE_SCALAR(tick_cmpr); 649 SERIALIZE_SCALAR(stick); --- 59 unchanged lines hidden (view full) --- 709 SERIALIZE_SCALAR(tc_num); 710 SERIALIZE_SCALAR(tick_cmp); 711 SERIALIZE_SCALAR(stick_cmp); 712 SERIALIZE_SCALAR(hstick_cmp); 713 } 714} 715 716void |
717ISA::unserialize(EventManager *em, Checkpoint *cp, const std::string §ion) | 717ISA::unserialize(Checkpoint *cp, const std::string §ion) |
718{ 719 UNSERIALIZE_SCALAR(asi); 720 UNSERIALIZE_SCALAR(tick); 721 UNSERIALIZE_SCALAR(fprs); 722 UNSERIALIZE_SCALAR(gsr); 723 UNSERIALIZE_SCALAR(softint); 724 UNSERIALIZE_SCALAR(tick_cmpr); 725 UNSERIALIZE_SCALAR(stick); --- 50 unchanged lines hidden (view full) --- 776 UNSERIALIZE_SCALAR(tc_num); 777 UNSERIALIZE_SCALAR(tick_cmp); 778 UNSERIALIZE_SCALAR(stick_cmp); 779 UNSERIALIZE_SCALAR(hstick_cmp); 780 tc = cpu->getContext(tc_num); 781 782 if (tick_cmp) { 783 tickCompare = new TickCompareEvent(this, tc); | 718{ 719 UNSERIALIZE_SCALAR(asi); 720 UNSERIALIZE_SCALAR(tick); 721 UNSERIALIZE_SCALAR(fprs); 722 UNSERIALIZE_SCALAR(gsr); 723 UNSERIALIZE_SCALAR(softint); 724 UNSERIALIZE_SCALAR(tick_cmpr); 725 UNSERIALIZE_SCALAR(stick); --- 50 unchanged lines hidden (view full) --- 776 UNSERIALIZE_SCALAR(tc_num); 777 UNSERIALIZE_SCALAR(tick_cmp); 778 UNSERIALIZE_SCALAR(stick_cmp); 779 UNSERIALIZE_SCALAR(hstick_cmp); 780 tc = cpu->getContext(tc_num); 781 782 if (tick_cmp) { 783 tickCompare = new TickCompareEvent(this, tc); |
784 em->schedule(tickCompare, tick_cmp); | 784 schedule(tickCompare, tick_cmp); |
785 } 786 if (stick_cmp) { 787 sTickCompare = new STickCompareEvent(this, tc); | 785 } 786 if (stick_cmp) { 787 sTickCompare = new STickCompareEvent(this, tc); |
788 em->schedule(sTickCompare, stick_cmp); | 788 schedule(sTickCompare, stick_cmp); |
789 } 790 if (hstick_cmp) { 791 hSTickCompare = new HSTickCompareEvent(this, tc); | 789 } 790 if (hstick_cmp) { 791 hSTickCompare = new HSTickCompareEvent(this, tc); |
792 em->schedule(hSTickCompare, hstick_cmp); | 792 schedule(hSTickCompare, hstick_cmp); |
793 } 794 } 795 } 796 797} 798 799} 800 801SparcISA::ISA * 802SparcISAParams::create() 803{ 804 return new SparcISA::ISA(this); 805} | 793 } 794 } 795 } 796 797} 798 799} 800 801SparcISA::ISA * 802SparcISAParams::create() 803{ 804 return new SparcISA::ISA(this); 805} |