Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Implement the xgetbv opcode.

This solves a FIXME in core.cpuid.
  • Loading branch information...
commit 7d1ec52c6868a3fe40c20e733851dd4a8edd3900 1 parent ebf5d8b
@redstar redstar authored
Showing with 7 additions and 1 deletion.
  1. +3 −0  gen/asm-x86-32.h
  2. +3 −0  gen/asm-x86-64.h
  3. +1 −1  runtime/druntime
View
3  gen/asm-x86-32.h
@@ -277,6 +277,7 @@ namespace AsmParserx8632
Op_scasX,
Op_stos,
Op_stosX,
+ Op_xgetbv,
Op_xlat,
N_AsmOpInfo,
Op_Align,
@@ -522,6 +523,7 @@ namespace AsmParserx8632
/* Op_scasX */ { 0, 0, 0, 0, Clb_DI|Clb_Flags },
/* Op_stos */ { mem, 0, 0, 1, Clb_DI },
/* Op_stosX */ { 0, 0, 0, 0, Clb_DI },
+ /* Op_xgetbv */ { 0, 0, 0, 0, Clb_SizeDXAX },
/* Op_xlat */ { mem, 0, 0, 0, Clb_SizeAX }
/// * Op_arpl */ { D|mr, reg }, // 16 only -> DstSrc
@@ -1144,6 +1146,7 @@ namespace AsmParserx8632
{ "wrmsr", Op_0 },
{ "xadd", Op_UpdUpdF },
{ "xchg", Op_UpdUpd },
+ { "xgetbv", Op_xgetbv },
{ "xlat", Op_xlat },
{ "xlatb", Op_0_AX },
{ "xor", Op_DstSrcF },
View
3  gen/asm-x86-64.h
@@ -354,6 +354,7 @@ namespace AsmParserx8664
Op_scasX,
Op_stos,
Op_stosX,
+ Op_xgetbv,
Op_xlat,
N_AsmOpInfo,
Op_Align,
@@ -605,6 +606,7 @@ namespace AsmParserx8664
/* Op_scasX */ { 0, 0, 0, 0, Clb_DI|Clb_Flags },
/* Op_stos */ { mem, 0, 0, 1, Clb_DI },
/* Op_stosX */ { 0, 0, 0, 0, Clb_DI },
+ /* Op_xgetbv */ { 0, 0, 0, 0, Clb_SizeRDXRAX },
/* Op_xlat */ { mem, 0, 0, 0, Clb_SizeAX }
/// * Op_arpl */ { D|mr, reg }, // 16 only -> DstSrc
@@ -1256,6 +1258,7 @@ namespace AsmParserx8664
{ "wrmsr", Op_0 },
{ "xadd", Op_UpdUpdF },
{ "xchg", Op_UpdUpd },
+ { "xgetbv", Op_xgetbv },
{ "xlat", Op_xlat },
{ "xlatb", Op_0_AX },
{ "xor", Op_DstSrcF },
2  runtime/druntime
@@ -1 +1 @@
-Subproject commit 205b90fa364a7340e20d8f640d46c0058fc34288
+Subproject commit a803febd0808425234421a7ceed5da1882612427
Please sign in to comment.
Something went wrong with that request. Please try again.