From 576e8dc70825a04af3ac9890491d348959bf19ce Mon Sep 17 00:00:00 2001 From: Louis Burda Date: Thu, 4 Aug 2022 10:59:55 +0200 Subject: Vincent' working single eviction test --- src/asm.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/asm.h') 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(); -- cgit v1.2.3-71-gd317