Better HN
topnewbestaskshowjobs
Log inSign up

luc157

22 karma · joined Jun 1, 2017 (9y ago) · 1 submissions

Submissions

comment 8y ago · link · parent

As I understand it, the function that used the xdcbt instruction had an oversight that led to the first set of crashes, so it was rewritten to fix that issue. Even with the fix, the game programmer decided to remove the PREFETCH_EX flag, which is what caused the copy routine to use xdcbt in the first place. So xdcbt ended up in the compiled code, but the flag that caused it to be used wasn't there. The branch predictor ran it anyway, in an unsafe way, leading to the next set of crashes.