]> xenbits.xensource.com Git - xtf.git/commit
various: Fix scan-build deadcode.DeadStores issues
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 15 Apr 2021 01:03:00 +0000 (02:03 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 16 Apr 2021 22:41:56 +0000 (23:41 +0100)
commit8b9b625d0bb309f2771c290033114dcbbcec3434
treeb29ca193c9381fc813fd877c78fc4d69ffd5767b
parentdcd6c07b003c2f5500c8fef79a9405c185b53a87
various: Fix scan-build deadcode.DeadStores issues

Scan-build complains:

  main.c:164:15: warning: Although the value stored to 'cr4' is used in the enclosing expression, the value is never actually read from 'cr4' [deadcode.DeadStores]
      write_cr4(cr4 &= ~X86_CR4_DE);
                ^      ~~~~~~~~~~~

Rework all impacted logic avoid dead stores of this form.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
tests/debug-regs/main.c
tests/nested-vmx/vmxon.c
tests/pv-fsgsbase/main.c
tests/xsa-269/main.c