Commit 7f5e4fd7 authored by KO Myung-Hun's avatar KO Myung-Hun
Browse files

Use smartalign for long nops with NASM

'CPU amdnop' is supported by YASM only.

Change-Id: Ia3f7c2ba6d3bdf2889b62f5c6127fd515d7c7394
Showing with 5 additions and 0 deletions
...@@ -114,7 +114,12 @@ ...@@ -114,7 +114,12 @@
%endif %endif
; Always use long nops (reduces 0x90 spam in disassembly on x86_32) ; Always use long nops (reduces 0x90 spam in disassembly on x86_32)
%ifndef __NASM_VER__
CPU amdnop CPU amdnop
%else
%use smartalign
ALIGNMODE k7
%endif
; Macros to eliminate most code duplication between x86_32 and x86_64: ; Macros to eliminate most code duplication between x86_32 and x86_64:
; Currently this works only for leaf functions which load all their arguments ; Currently this works only for leaf functions which load all their arguments
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment