cachepc-qemu

Fork of AMDESE/qemu with changes for cachepc side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-qemu
Log | Files | Refs | Submodules | LICENSE | sfeed.txt

use-error_fatal.cocci (350B)


      1@@
      2type T;
      3identifier FUN, RET;
      4expression list ARGS;
      5expression ERR, EC, FAIL;
      6@@
      7(
      8-    T RET = FUN(ARGS, &ERR);
      9+    T RET = FUN(ARGS, &error_fatal);
     10|
     11-    RET = FUN(ARGS, &ERR);
     12+    RET = FUN(ARGS, &error_fatal);
     13|
     14-    FUN(ARGS, &ERR);
     15+    FUN(ARGS, &error_fatal);
     16)
     17-    if (FAIL) {
     18-        error_report_err(ERR);
     19-        exit(EC);
     20-    }