isa.cc (6806:45879b0e3240) | isa.cc (7823:dac01f14f20f) |
---|---|
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; --- 514 unchanged lines hidden (view full) --- 523void 524ISA::scheduleCP0Update(BaseCPU *cpu, int delay) 525{ 526 if (!cp0Updated) { 527 cp0Updated = true; 528 529 //schedule UPDATE 530 CP0Event *cp0_event = new CP0Event(this, cpu, UpdateCP0); | 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; --- 514 unchanged lines hidden (view full) --- 523void 524ISA::scheduleCP0Update(BaseCPU *cpu, int delay) 525{ 526 if (!cp0Updated) { 527 cp0Updated = true; 528 529 //schedule UPDATE 530 CP0Event *cp0_event = new CP0Event(this, cpu, UpdateCP0); |
531 cpu->schedule(cp0_event, curTick + cpu->ticks(delay)); | 531 cpu->schedule(cp0_event, curTick() + cpu->ticks(delay)); |
532 } 533} 534 535void 536ISA::updateCPU(BaseCPU *cpu) 537{ 538 /////////////////////////////////////////////////////////////////// 539 // --- 40 unchanged lines hidden (view full) --- 580ISA::CP0Event::description() const 581{ 582 return "Coprocessor-0 event"; 583} 584 585void 586ISA::CP0Event::scheduleEvent(int delay) 587{ | 532 } 533} 534 535void 536ISA::updateCPU(BaseCPU *cpu) 537{ 538 /////////////////////////////////////////////////////////////////// 539 // --- 40 unchanged lines hidden (view full) --- 580ISA::CP0Event::description() const 581{ 582 return "Coprocessor-0 event"; 583} 584 585void 586ISA::CP0Event::scheduleEvent(int delay) 587{ |
588 cpu->reschedule(this, curTick + cpu->ticks(delay), true); | 588 cpu->reschedule(this, curTick() + cpu->ticks(delay), true); |
589} 590 591void 592ISA::CP0Event::unscheduleEvent() 593{ 594 if (scheduled()) 595 squash(); 596} 597 598} | 589} 590 591void 592ISA::CP0Event::unscheduleEvent() 593{ 594 if (scheduled()) 595 squash(); 596} 597 598} |