The XOR instruction affects the carry and zero flag. Move it before
authorbluhm <bluhm@openbsd.org>
Thu, 14 Apr 2022 20:24:15 +0000 (20:24 +0000)
committerbluhm <bluhm@openbsd.org>
Thu, 14 Apr 2022 20:24:15 +0000 (20:24 +0000)
commit091ee8fb348a643bc60ab34799aa30ff747d79bf
tree8d60109055edb049ac2d1ac012261ff3d1289c8a
parent3fe80b7fb1a5bd0bd4a7a666724b5696fc175a21
The XOR instruction affects the carry and zero flag.  Move it before
the VM instructions so that SETNA propagates the error condition
of the latter.  Avoids "cpu0: failed to enter VMM mode" errors.
Fixes previous commit.
tested by Hrvoje; OK dv@
sys/arch/amd64/amd64/vmm_support.S