According to Bspec, EU may access 8 instrunctions beyond the
kernel program because of prefetch.
Pad the instruction stream with 8 nop to avoid access into an
invalide page.
Signed-off-by: Zou Nanhai <nanhai.zou@intel.com>
Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
}
p->pop();
}
+ /* per spec, pad the instruction stream with 8 nop to avoid
+ instruction prefetcher prefetch into an invalide page */
+ for(int i = 0; i < 8; i++)
+ p->NOP();
}
void GenContext::patchBranches(void) {