summaryrefslogtreecommitdiffstats
path: root/test/util.h
diff options
context:
space:
mode:
authorLouis Burda <quent.burda@gmail.com>2023-01-27 00:01:09 +0100
committerLouis Burda <quent.burda@gmail.com>2023-01-27 00:55:29 +0100
commit1f418a1c4480cef90b8596ae17bdca9cc7ca1b88 (patch)
treeb0358e4febd22c65612c80fa93cfaeb0a3510053 /test/util.h
parent5e21196a9c7ee8eee921d74f6b5eef2f1980ec97 (diff)
downloadcachepc-1f418a1c4480cef90b8596ae17bdca9cc7ca1b88.tar.gz
cachepc-1f418a1c4480cef90b8596ae17bdca9cc7ca1b88.zip
Added initial qemu-eviction and qemu-pagestep
Qemu-eviction seems to get stuck somewhere, potentially in the VC-handler(?) since we use the active gfn after resuming execution. Added qemu-pagestep to show viability of page-stepping for later use.
Diffstat (limited to 'test/util.h')
-rw-r--r--test/util.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/util.h b/test/util.h
index 7163238..799e55b 100644
--- a/test/util.h
+++ b/test/util.h
@@ -7,6 +7,9 @@
#define ARRLEN(x) (sizeof(x) / sizeof((x)[0]))
#define MIN(a,b) ((a) > (b) ? (b) : (a))
+#define TARGET_CORE 2
+#define SECONDARY_CORE 3
+
struct ipc {
pthread_mutex_t lock;
pthread_cond_t sig_parent;