]> git.ipfire.org Git - thirdparty/LuaJIT.git/commitdiff
DynASM/x86: Add endbr instruction.
authorMike Pall <mike>
Mon, 22 Jan 2024 18:17:45 +0000 (19:17 +0100)
committerMike Pall <mike>
Mon, 22 Jan 2024 18:17:45 +0000 (19:17 +0100)
Thanks to Dmitry Stogov. #1143 #1142

dynasm/dasm_x86.lua
dynasm/dynasm.lua

index df70fed83eeb9da9b439e8c37ca4a2ab19c770fd..7c789f8216dc9fb064dd3352357a810b30e83956 100644 (file)
@@ -1151,6 +1151,8 @@ local map_op = {
   rep_0 =      "F3",
   repe_0 =     "F3",
   repz_0 =     "F3",
+  endbr32_0 =  "F30F1EFB",
+  endbr64_0 =  "F30F1EFA",
   -- F4: *hlt
   cmc_0 =      "F5",
   -- F6: test... mb,i; div... mb
index 5be75f7fc7a3ad45af87b6ee31eb1caa6b40cfcf..0d15a87282f2f1ddde40246b664ccbcb56f92baf 100644 (file)
@@ -75,7 +75,7 @@ local function wline(line, needindent)
   g_synclineno = g_synclineno + 1
 end
 
--- Write assembler line as a comment, if requestd.
+-- Write assembler line as a comment, if requested.
 local function wcomment(aline)
   if g_opt.comment then
     wline(g_opt.comment..aline..g_opt.endcomment, true)