Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions core_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ for (i = 0; i < MULTITHREAD; i++)
ee_printf("2K validation run parameters for coremark.\n");
break;
default:
total_errors = -1;
total_errors++;
break;
}
if (known_id >= 0)
Expand Down Expand Up @@ -426,7 +426,7 @@ for (i = 0; i < MULTITHREAD; i++)
}
if (total_errors > 0)
ee_printf("Errors detected\n");
if (total_errors < 0)
if (known_id < 0)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The known_id variable is initialized by -1 and then it reassigned to positive value in switch(seedcrc) block of code. Thus, known_id < 0 is basically the same indicator as current check total_errors < 0, but without error type collision in total_errors variable.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the details. I will look into this in a couple of weeks time.
Joseph

ee_printf(
"Cannot validate operation for these seed values, please compare "
"with results on a known platform.\n");
Expand Down