[nasm:master] insns: add HRESET instruction

nasm-bot for H. Peter Anvin hpa at zytor.com
Mon Nov 14 17:48:04 PST 2022


Commit-ID:  7c784b0ddbda6e17b59421d689710f2251405294
Gitweb:     http://repo.or.cz/w/nasm.git?a=commitdiff;h=7c784b0ddbda6e17b59421d689710f2251405294
Author:     H. Peter Anvin <hpa at zytor.com>
AuthorDate: Mon, 14 Nov 2022 17:45:29 -0800
Committer:  H. Peter Anvin <hpa at zytor.com>
CommitDate: Mon, 14 Nov 2022 17:45:29 -0800

insns: add HRESET instruction

Add the HRESET instruction

Signed-off-by: H. Peter Anvin <hpa at zytor.com>


---
 x86/iflags.ph | 1 +
 x86/insns.dat | 5 ++++-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/x86/iflags.ph b/x86/iflags.ph
index cc638138..ff895360 100644
--- a/x86/iflags.ph
+++ b/x86/iflags.ph
@@ -107,6 +107,7 @@ if_("MSRLIST",           "RDMSRLIST and WRMSRLIST");
 if_("AVXNECONVERT",	 "AVX exceptionless floating-point conversions");
 if_("AVXVNNIINT8",       "AVX Vector Neural Network 8-bit integer instructions");
 if_("AVXIFMA",           "AVX integer multiply and add");
+if_("HRESET",            "History reset");
 
 # Put these last to minimize their relevance
 if_("OBSOLETE",          "Instruction removed from architecture");
diff --git a/x86/insns.dat b/x86/insns.dat
index 3ec13a03..5deb7281 100644
--- a/x86/insns.dat
+++ b/x86/insns.dat
@@ -6358,7 +6358,6 @@ STUI		void					[	f3 0f 01 ef		]	UINTR,FUTURE,LONG
 TESTUI		void					[	f3 0f 01 ed		]	UINTR,FUTURE,LONG
 UIRET		void					[	f3 0f 01 ec		]	UINTR,FUTURE,LONG
 
-
 ;# Compare, exchange and add conditional
 CMPccXADD       mem32,reg32,reg32			[mrv:	vex.128.66.0f38.w0 e0+c /r]	CMPCCXADD,FUTURE,LONG,SD
 CMPccXADD       mem64,reg64,reg64			[mrv:	vex.128.66.0f38.w1 e0+c /r]	CMPCCXADD,FUTURE,LONG,SQ
@@ -6368,6 +6367,10 @@ WRMSRNS		void					[	np 0f 01 c6		]	WRMSRNS,FUTURE,PRIV,LONG
 RDMSRLIST	void					[	f2 0f 01 c6		]	MSRLIST,FUTURE,PRIV,LONG
 WRMSRLIST	void					[	f3 0f 01 c6		]	MSRLIST,FUTURE,PRIV,LONG
 
+;# History reset
+HRESET		imm,reg_eax				[i-:	f3 0f 3a f0 c0 ib	]	HRESET,FUTURE,PRIV,SB
+HRESET		imm					[i:	f3 0f 3a f0 c0 ib	]	HRESET,FUTURE,PRIV,SB,ND
+
 ;# Systematic names for the hinting nop instructions
 ; These should be last in the file
 HINT_NOP0	rm16				[m:	o16 0f 18 /0]				P6,UNDOC


More information about the Nasm-commits mailing list