gem5/sim
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
..
async.hh Import changeset 2003-10-07 10:41:54 -04:00
builder.cc Separate the stuff for SimObject from SimObject builder. 2003-10-20 20:17:01 -04:00
builder.hh Separate the stuff for SimObject from SimObject builder. 2003-10-20 20:17:01 -04:00
debug.cc Make include paths explicit and update makefile accordingly. 2003-10-10 11:09:00 -07:00
debug.hh Import changeset 2003-10-07 10:41:54 -04:00
eventq.cc Make include paths explicit and update makefile accordingly. 2003-10-10 11:09:00 -07:00
eventq.hh Make include paths explicit and update makefile accordingly. 2003-10-10 11:09:00 -07:00
host.hh Import changeset 2003-10-07 10:41:54 -04:00
main.cc Separate the stuff for SimObject from SimObject builder. 2003-10-20 20:17:01 -04:00
param.cc Make include paths explicit and update makefile accordingly. 2003-10-10 11:09:00 -07:00
param.hh Make include paths explicit and update makefile accordingly. 2003-10-10 11:09:00 -07:00
prog.cc Make FullCPU schedule its TickEvent when one of its contexts becomes active. 2003-10-24 23:02:36 -07:00
prog.hh Initial support for CPU switching. New SamplingCPU object encompasses a set 2003-10-23 19:07:52 -07:00
serialize.cc Make include paths explicit and update makefile accordingly. 2003-10-10 11:09:00 -07:00
serialize.hh Make include paths explicit and update makefile accordingly. 2003-10-10 11:09:00 -07:00
sim_events.cc Rename full_cpu/cpu.cc,hh to full_cpu.cc,hh. 2003-10-13 21:51:34 -07:00
sim_events.hh Make include paths explicit and update makefile accordingly. 2003-10-10 11:09:00 -07:00
sim_exit.hh Import changeset 2003-10-07 10:41:54 -04:00
sim_object.cc Separate the stuff for SimObject from SimObject builder. 2003-10-20 20:17:01 -04:00
sim_object.hh Don't need to include sim/param.hh in sim_object.hh anymore. 2003-10-21 21:32:15 -07:00
sim_time.cc Make things work on OpenBSD again 2003-10-10 22:59:51 -04:00
sim_time.hh Make things work on OpenBSD again 2003-10-10 22:59:51 -04:00
system.cc Merge stever@zizzer:/bk/m5 into isabel.reinhardt.house:/z/stever/bk/m5 2003-10-23 19:09:18 -07:00
system.hh Merge stever@zizzer:/bk/m5 into isabel.reinhardt.house:/z/stever/bk/m5 2003-10-23 19:09:18 -07:00
universe.cc Make include paths explicit and update makefile accordingly. 2003-10-10 11:09:00 -07:00