]> xenbits.xensource.com Git - people/andrewcoop/xen-test-framework.git/commitdiff
Simplify setting the overflow flag
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 17 Feb 2020 13:43:59 +0000 (13:43 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 17 Feb 2020 13:44:34 +0000 (13:44 +0000)
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
tests/swint-emulation/lowlevel.S

index 236ac5298aa5c4e0025c4b0ed2a4e04381fbb906..b7bf0fc76dc410cb30f3e732a61a2882f230c00f 100644 (file)
@@ -12,9 +12,8 @@ ENTRY(stub_\insn\()_\type)
 
         .ifc \insn, into
             /* Ensure the overflow flag is set, to trigger 'into'. */
-            pushf
-            orl $X86_EFLAGS_OF, (%esp)
-            popf
+            mov $0x7f, %al
+            add %al, %al
         .else
             /* Avoid function label and fault label possibly aliasing. */
             nop