Benchmarks now run in user-mode.
[riscv-tests.git] / benchmarks / vvadd / vvadd_main.c
index 70b3f75e1116c5d3ae7dcf8890771420e6bbeccb..0be305159eb456fd0cbaf4aac94c06c2bb169f4e 100644 (file)
 // not on the smips processor simulator itself. You should not change
 // anything except the HOST_DEBUG and PREALLOCATE macros for your timing
 // runs.
-
+int ncores = 1;
+#include "util.h"
 //--------------------------------------------------------------------------
 // Macros
 
@@ -68,19 +71,19 @@ void printArray( char name[], int n, int arr[] )
 }
 #endif
 
-void finishTest( int toHostValue )
-{
-#if HOST_DEBUG
-  if ( toHostValue == 1 )
-    printf( "*** PASSED ***\n" );
-  else
-    printf( "*** FAILED *** (tohost = %d)\n", toHostValue );
-  exit(0);
-#else
-  asm( "mtpcr %0, tohost" : : "r" (toHostValue) );
-  while ( 1 ) { }
-#endif
-}
+//void finishTest( int toHostValue )
+//{
+//#if HOST_DEBUG
+//  if ( toHostValue == 1 )
+//    printf( "*** PASSED ***\n" );
+//  else
+//    printf( "*** FAILED *** (tohost = %d)\n", toHostValue );
+//  exit(0);
+//#else
+//  asm( "mtpcr %0, tohost" : : "r" (toHostValue) );
+//  while ( 1 ) { }
+//#endif
+//}
 
 void setStats( int enable )
 {