+Added icache stage -- 3rd case of AUIPC os broken?

This commit is contained in:
felsabbagh3
2020-03-01 18:01:02 -08:00
parent 23aabbf01d
commit 6bf25b5b78
4 changed files with 96 additions and 37 deletions

View File

@@ -67,14 +67,19 @@ int main(int argc, char **argv)
for (std::string s : tests) {
Vortex v;
std::cerr << DEFAULT << "\n---------------------------------------\n";
std::cerr << s << std::endl;
bool curr = v.simulate(s);
if ( curr) std::cerr << GREEN << "Test Passed: " << s << std::endl;
if (!curr) std::cerr << RED << "Test Failed: " << s << std::endl;
std::cerr << DEFAULT;
passed = passed && curr;
}
std::cerr << DEFAULT << "\n***************************************\n";
if( passed) std::cerr << DEFAULT << "PASSED ALL TESTS\n";
if(!passed) std::cerr << DEFAULT << "Failed one or more tests\n";
@@ -82,15 +87,15 @@ int main(int argc, char **argv)
#else
char testing[] = "../../emulator/riscv_tests/rv32ui-p-sw.hex";
char testing[] = "../../emulator/riscv_tests/rv32ui-p-auipc.hex";
Vortex v;
const char *testing;
// const char *testing;
if (argc >= 2) {
testing = argv[1];
} else {
testing = "../../kernel/vortex_test.hex";
}
// if (argc >= 2) {
// testing = argv[1];
// } else {
// testing = "../../kernel/vortex_test.hex";
// }
std::cerr << testing << std::endl;