summaryrefslogtreecommitdiffstats
path: root/test/kvm-step_guest.S
diff options
context:
space:
mode:
authorLouis Burda <quent.burda@gmail.com>2023-01-17 16:30:33 +0100
committerLouis Burda <quent.burda@gmail.com>2023-01-17 16:30:33 +0100
commitf2ea010b8180b4160d85c92e312971d0cd8a34d4 (patch)
tree64e2598df2a0860187b1516e196ce7124de459a9 /test/kvm-step_guest.S
parent89785aa3c8d5d4007f856b14543a9b8aef31d661 (diff)
downloadcachepc-f2ea010b8180b4160d85c92e312971d0cd8a34d4.tar.gz
cachepc-f2ea010b8180b4160d85c92e312971d0cd8a34d4.zip
Fixup kvm-eviction and refactor kvm-step
Diffstat (limited to 'test/kvm-step_guest.S')
-rw-r--r--test/kvm-step_guest.S18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/kvm-step_guest.S b/test/kvm-step_guest.S
new file mode 100644
index 0000000..0dfe98f
--- /dev/null
+++ b/test/kvm-step_guest.S
@@ -0,0 +1,18 @@
+#include "cachepc/const.h"
+
+#define TARGET_SET 15
+
+.global guest_start
+.global guest_stop
+
+guest_start:
+ mov $(L1_LINESIZE * (L1_SETS + TARGET_SET)), %rbx
+ mov $(L1_LINESIZE * (L1_SETS + TARGET_SET)), %rbx
+ mov $(L1_LINESIZE * (L1_SETS + TARGET_SET)), %rbx
+ mov $(L1_LINESIZE * (L1_SETS + TARGET_SET)), %rbx
+ mov $(L1_LINESIZE * (L1_SETS + TARGET_SET)), %rbx
+ mov $(L1_LINESIZE * (L1_SETS + TARGET_SET)), %rbx
+ mov $(L1_LINESIZE * (L1_SETS + TARGET_SET)), %rbx
+ jmp guest_start
+guest_stop:
+