unittests: Adds tests for CLWB and CLFLUSHOPT

This commit is contained in:
Ryan Houdek committed 2023-01-18 17:56:21 -08:00
1 parent 7450b5d406
commit 965c6ff6cc
2 files changed
+28

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
%ifdef CONFIG
{
"RegData": {
"RAX": "1"
}
}
%endif
mov rdx, 0xe0000000
; Just ensures the code is executed.
clflushopt [rdx]
mov rax, 1
hlt
+14
View File
@@ -0,0 +1,14 @@
%ifdef CONFIG
{
"RegData": {
"RAX": "1"
}
}
%endif
mov rdx, 0xe0000000
; Just ensures the code is executed.
clwb [rdx]
mov rax, 1
hlt