Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-gpu-driver/blob/main/gsp/sec2sim.om # omega-gpu-driver aien-dev/omega-gpu-driver Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-gpu-driver / gsp / sec2sim.om` 83 lines ยท 1219 bytes Raw Blame History 1 note GB20B register-model extension. Pure simulator, not device evidence. 2 note s2sc: secure-delay,response-delay,missing-response,bad-header,error,bad-pointer,short-response. 3 global s2sc ulong 7 4 global s2ss ulong 8 5 fn s2simrd off ulong to ulong 6 put s2ss 7 add get s2ss 7 1 7 if eq off S2SCR 8 if eq get s2sc 0 0 9 ret 255 10 end 11 put s2sc 0 sub get s2sc 0 1 12 ret 0 13 end 14 if eq off S2MH 15 if eq get s2ss 0 1 16 v = srmb0 17 if and eq v 0 eq get s2sc 2 0 18 if eq get s2sc 1 0 19 put s2ss 1 1 20 else 21 put s2sc 1 sub get s2sc 1 1 22 end 23 end 24 end 25 ret 0 26 end 27 if eq off S2MT 28 if eq get s2ss 1 0 29 ret 0 30 end 31 if ne get s2sc 6 0 32 ret 12 33 end 34 ret 16 35 end 36 if and eq off S2EMC eq get s2ss 2 1 37 ret mul add get s2ss 3 get s2sc 5 4 38 end 39 if and eq off S2EMD eq get s2ss 2 1 40 i = get s2ss 3 41 put s2ss 3 add i 1 42 if eq i 0 43 ret `3221225472` 44 end 45 if eq i 1 46 ret add `353427070` get s2sc 3 47 end 48 if eq i 2 49 ret 7 50 end 51 if eq i 3 52 ret 20 53 end 54 if eq i 4 55 ret get s2sc 4 56 end 57 ret 0 58 end 59 ret simrd off 60 end 61 fn s2simwr off ulong v ulong to void 62 put s2ss 7 add get s2ss 7 1 63 if eq off S2MH 64 if and eq v 0 eq get s2ss 5 1 65 put s2ss 6 1 66 end 67 ret 68 end 69 if eq off S2MT 70 put s2ss 5 1 71 put s2ss 1 0 72 ret 73 end 74 if and eq off S2EMC eq v S2AINCR 75 put s2ss 2 1 76 put s2ss 3 0 77 ret 78 end 79 simwr off v 80 if eq off S2QH 81 put s2ss 0 1 82 end 83 end