projects
/
sasm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c5eb0a6
)
Added rdmsr and wrms
master
author
Robert Pengelly
<robertapengelly@hotmail.com>
Wed, 17 Jun 2026 06:48:56 +0000
(07:48 +0100)
committer
Robert Pengelly
<robertapengelly@hotmail.com>
Wed, 17 Jun 2026 06:48:56 +0000
(07:48 +0100)
intel.c
patch
|
blob
|
history
diff --git
a/intel.c
b/intel.c
index 365a94a2e71f0f3d44481a4c783b517cc1717c53..8891fb637b72ea444d76ca9b5ac4028ad089e8f6 100644
(file)
--- a/
intel.c
+++ b/
intel.c
@@
-1185,7
+1185,10
@@
static struct template template_table[] = {
{ "syscall", 0x0F05, NONE, 0, { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0 }, { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0 }, { {0} } },
{ "sysret", 0x0F07, NONE, 0, { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0 }, { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 0, 1, 0, 0, 0, 0 }, { {0} } },
{ "syscall", 0x0F05, NONE, 0, { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0 }, { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0 }, { {0} } },
{ "sysret", 0x0F07, NONE, 0, { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0 }, { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 0, 1, 0, 0, 0, 0 }, { {0} } },
+
{ "cpuid", 0x0FA2, NONE, 0, { 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0 }, { {0} } },
{ "cpuid", 0x0FA2, NONE, 0, { 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0 }, { {0} } },
+ { "rdmsr", 0x0F32, NONE, 0, { 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0 }, { {0} } },
+ { "wrmsr", 0x0F30, NONE, 0, { 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0 }, { {0} } },
{ 0 }
{ 0 }
@@
-2137,7
+2140,7
@@
static void handler_option (char *start, char **pp) {
}
}
- if (xstrcasecmp (arg, "use16") == 0 || xstrcasecmp (arg, "use32") == 0) {
+ if (xstrcasecmp (arg, "use16") == 0 || xstrcasecmp (arg, "use32") == 0
|| xstrcasecmp (arg, "use64") == 0
) {
bits = atoi (arg + 3);
bits = atoi (arg + 3);