gem5/cpu
Steve Reinhardt 91cb532f9f Make FullCPU schedule its TickEvent when one of its contexts becomes active.
This fixes detailed-mpboot, which was broken as of my last change.
Also clean up some of the ExecContext status initialization.

cpu/base_cpu.hh:
    CPU::execCtxStatusChg() now takes thread_num as an arg so the CPU knows
    which execContext had the status change.
    BaseCPU::registerExecContexts() no longer needs to be virtual.
cpu/exec_context.cc:
    Initialize _status directly... don't use setStatus() as this will notify the CPU
    of the change before it is ready.
    CPU::execCtxStatusChg() now takes thread_num as an arg so the CPU knows
    which execContext had the status change.
cpu/exec_context.hh:
    Don't need initStatus() any more.
cpu/simple_cpu/simple_cpu.cc:
    Move execCtxStatusChg() from header to .cc file.
    No longer need specialized version of registerExecContexts to schedule TickEvent.
cpu/simple_cpu/simple_cpu.hh:
    Move execCtxStatusChg() from header to .cc file.
    CPU::execCtxStatusChg() now takes thread_num as arg (must be 0 for SimpleCPU).
    No longer need specialized version of registerExecContexts to schedule TickEvent.
kern/tru64/tru64_system.cc:
    Don't need initRegs; the PC etc. get initialized in the CPU constructor.
    ExecContexts start out as Unallocated, so no need to set them to Unallocated here.
kern/tru64/tru64_system.hh:
    Don't need initRegs; the PC etc. get initialized in the CPU constructor.
sim/prog.cc:
    ExecContexts start out as Unallocated, so no need to set them to Unallocated here.

--HG--
extra : convert_revision : e960ebbeb845960344633798e251b6c8bf1c0378
2003-10-24 23:02:36 -07:00
..
full_cpu File moves for the reorg. Tree is in broken state until I commit the makefile and 2003-10-10 09:57:26 -07:00
memtest Probe is now in. You currently can't probe uncacheable (of course it doesn't make much sense either. 2003-10-22 00:22:25 -04:00
simple_cpu Make FullCPU schedule its TickEvent when one of its contexts becomes active. 2003-10-24 23:02:36 -07:00
base_cpu.cc Initial support for CPU switching. New SamplingCPU object encompasses a set 2003-10-23 19:07:52 -07:00
base_cpu.hh Make FullCPU schedule its TickEvent when one of its contexts becomes active. 2003-10-24 23:02:36 -07:00
exec_context.cc Make FullCPU schedule its TickEvent when one of its contexts becomes active. 2003-10-24 23:02:36 -07:00
exec_context.hh Make FullCPU schedule its TickEvent when one of its contexts becomes active. 2003-10-24 23:02:36 -07:00
exetrace.cc Don't need to include sim/param.hh in sim_object.hh anymore. 2003-10-21 21:32:15 -07:00
exetrace.hh Get rid of obsolete code, most of it '#if 0'ed anyway. 2003-10-19 17:30:26 -07:00
inst_seq.hh File moves for the reorg. Tree is in broken state until I commit the makefile and 2003-10-10 09:57:26 -07:00
intr_control.cc Separate the stuff for SimObject from SimObject builder. 2003-10-20 20:17:01 -04:00
intr_control.hh Make include paths explicit and update makefile accordingly. 2003-10-10 11:09:00 -07:00
pc_event.cc Remove all of the Tru64 specific stuff from the base System object 2003-10-14 12:19:59 -04:00
pc_event.hh Move to non-architecture specific MemReq 2003-10-23 16:40:08 -04:00
static_inst.cc Make include paths explicit and update makefile accordingly. 2003-10-10 11:09:00 -07:00
static_inst.hh Rename CPU object to FullCPU 2003-10-13 22:21:19 -07:00