Add coremark

This commit is contained in:
Charles Papon 2019-04-10 15:41:38 +02:00
parent d7f6c18c0a
commit 189cadfbb3
7 changed files with 22 additions and 4 deletions

View File

@ -3499,8 +3499,8 @@ int main(int argc, char **argv, char **env) {
soc.loadBin(DTB, 0xC3000000); soc.loadBin(DTB, 0xC3000000);
soc.loadBin(RAMDISK, 0xC2000000); soc.loadBin(RAMDISK, 0xC2000000);
#endif #endif
soc.setIStall(true); //TODO It currently improve speed but should be removed later //soc.setIStall(true); //TODO It currently improve speed but should be removed later
soc.setDStall(true); //soc.setDStall(true);
soc.bootAt(0x80000000); soc.bootAt(0x80000000);
soc.run(0); soc.run(0);
// soc.run((496300000l + 2000000) / 2); // soc.run((496300000l + 2000000) / 2);
@ -3679,8 +3679,24 @@ int main(int argc, char **argv, char **env) {
#endif #endif
#ifdef COREMARK #ifdef COREMARK
Dhrystone("coremark","/home/miaou/pro/riscv/coremark/coremark",false,false).run(1.9e6); for(int withStall = 1; true ;withStall--){
string rv = "rv32i";
#if defined(MUL) && defined(DIV)
rv += "m";
#endif
#if defined(COMPRESSED)
if(withStall == -2) break;
if(withStall != -1) rv += "c";
#else
if(withStall == -1) break;
#endif
WorkspaceRegression("coremark_" + rv + (withStall > 0 ? "_stall" : "_nostall")).withRiscvRef()
->loadBin("../../resources/bin/coremark_" + rv + ".bin", 0x80000000)
->bootAt(0x80000000)
->setIStall(withStall > 0)
->setDStall(withStall > 0)
->run(50e6);
}
#endif #endif
#ifdef FREERTOS #ifdef FREERTOS

1
src/test/resources/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
!bin

1
src/test/resources/bin/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
!*.bin

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.