Change-Id: Ib4415a7c5918da03bbd16fe9adb4dd593dcaa95c
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/29929
Reviewed-by: Anthony Gutierrez <anthony.gutierrez@amd.com>
Maintainer: Anthony Gutierrez <anthony.gutierrez@amd.com>
Tested-by: kokoro <noreply+kokoro@google.com>
assert(gpuTc);
}
-void
-Shader::hostWakeUp(BaseCPU *cpu) {
- if (cpuPointer == cpu) {
- if (gpuTc->status() == ThreadContext::Suspended)
- cpu->activateContext(gpuTc->threadId());
- } else {
- //Make sure both dispatcher and shader are trying to
- //wakeup same host. Hack here to enable kernel launch
- //from multiple CPUs
- panic("Dispatcher wants to wakeup a different host");
- }
-}
-
Shader*
ShaderParams::create()
{
Addr mmap(int length);
void functionalTLBAccess(PacketPtr pkt, int cu_id, BaseTLB::Mode mode);
void updateContext(int cid);
- void hostWakeUp(BaseCPU *cpu);
void notifyCuSleep();
};