From b4229c01ca7c46e2dc4086c8fc4a0a1434031384 Mon Sep 17 00:00:00 2001 From: Ross Thompson Date: Sun, 18 Dec 2022 17:20:30 -0600 Subject: [PATCH] Have a basic cache test to fill all ways and sets. --- tests/custom/cacheTest/main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/custom/cacheTest/main.c b/tests/custom/cacheTest/main.c index 4e041d99..baf8a595 100644 --- a/tests/custom/cacheTest/main.c +++ b/tests/custom/cacheTest/main.c @@ -1,10 +1,11 @@ #include "header.h" -int main(){ +int main(int argc, char *argv[]){ long int array [1024]; int index; for(index = 0; index < 1024; index++) { array[index] = index; } - return 0; + *argv = array; + return array[1023] + argc; }