summaryrefslogtreecommitdiffstats
path: root/src/asm.h
diff options
context:
space:
mode:
authorLouis Burda <quent.burda@gmail.com>2022-08-04 10:59:55 +0200
committerLouis Burda <quent.burda@gmail.com>2022-08-04 10:59:55 +0200
commit576e8dc70825a04af3ac9890491d348959bf19ce (patch)
treea87ea6a627ade4cfc883aa00ec1f22b22d71efd1 /src/asm.h
parent8dc6462e70009c0bbcf0bbfcfd2d4494d3772580 (diff)
downloadcachepc-576e8dc70825a04af3ac9890491d348959bf19ce.tar.gz
cachepc-576e8dc70825a04af3ac9890491d348959bf19ce.zip
Vincent' working single eviction test
Diffstat (limited to 'src/asm.h')
-rwxr-xr-xsrc/asm.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/asm.h b/src/asm.h
index 3498f2c..101faa9 100755
--- a/src/asm.h
+++ b/src/asm.h
@@ -36,7 +36,7 @@ cachepc_readpmc(uint64_t event)
: "c"(event)
);
- return ((uint64_t) hi << 32) | lo;
+ return ((uint64_t) hi << 32) | (uint64_t)lo;
}
void
@@ -58,7 +58,7 @@ cachepc_lfence(void)
);
}
-void
+inline void
cachepc_sfence(void)
{
asm volatile(
@@ -67,7 +67,7 @@ cachepc_sfence(void)
);
}
-void
+inline void
cachepc_mfence(void)
{
asm volatile(
@@ -76,7 +76,7 @@ cachepc_mfence(void)
);
}
-void
+inline void
cachepc_readq(void *p)
{
asm volatile (
@@ -85,7 +85,7 @@ cachepc_readq(void *p)
);
}
-void
+inline void
cachepc_victim(void *p)
{
cachepc_mfence();