diff options
| author | Louis Burda <quent.burda@gmail.com> | 2022-12-11 02:51:47 +0100 |
|---|---|---|
| committer | Louis Burda <quent.burda@gmail.com> | 2022-12-11 02:51:47 +0100 |
| commit | 5e99ea7f111134c7a1c7103590b711d59edafa9b (patch) | |
| tree | 0d27dc1e30a77123f31dc6dee678063f5258fe7d /test/access-detect_guest.c | |
| parent | 05a4fbf680b806327a9c53525e9d8716dcdb55f3 (diff) | |
| download | cachepc-5e99ea7f111134c7a1c7103590b711d59edafa9b.tar.gz cachepc-5e99ea7f111134c7a1c7103590b711d59edafa9b.zip | |
Adding support for exec based tracking (unstable)
Diffstat (limited to 'test/access-detect_guest.c')
| -rw-r--r-- | test/access-detect_guest.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/access-detect_guest.c b/test/access-detect_guest.c index 67e58fe..9fdf4ce 100644 --- a/test/access-detect_guest.c +++ b/test/access-detect_guest.c @@ -4,6 +4,7 @@ #include <unistd.h> #include <stdint.h> #include <string.h> +#include <stdio.h> #include <stdlib.h> int @@ -17,10 +18,9 @@ main(int argc, const char **argv) memset(buf, 0, L1_LINESIZE * L1_SETS); while (1) { + printf("LOOP\n"); CPC_DO_VMMCALL(CPC_CPUID_START_TRACK, 0); - - *(uint8_t *)(buf + L1_LINESIZE * 15) += 1; - + *(uint8_t *)(buf + L1_LINESIZE * 15) = 1; CPC_DO_VMMCALL(CPC_CPUID_STOP_TRACK, 0); } } |
