Add threaded -O3 build mode

This commit is contained in:
wgulian3
2020-03-20 18:15:49 -04:00
parent 1c82f9a11d
commit 902aa685b1
4 changed files with 23 additions and 3 deletions

View File

@@ -15,7 +15,8 @@ int main(int argc, char **argv)
#define ALL_TESTS
#ifdef ALL_TESTS
bool passed = true;
std::string tests[NUM_TESTS] = {
std::string tests[NUM_TESTS] = {
"../../emulator/riscv_tests/rv32ui-p-add.hex",
"../../emulator/riscv_tests/rv32ui-p-addi.hex",
"../../emulator/riscv_tests/rv32ui-p-and.hex",

View File

@@ -13,6 +13,7 @@
#include "VX_define.h"
#include "ram.h"
#include "VVortex.h"
#include "VVortex__Syms.h"
#include "verilated.h"
#include "tb_debug.h"
@@ -462,7 +463,7 @@ bool Vortex::simulate(std::string file_to_simulate)
std::cerr << "New Total Cycles: " << (this->stats_total_cycles) << "\n";
int status = (unsigned int) vortex->Vortex__DOT__vx_back_end__DOT__VX_wb__DOT__last_data_wb & 0xf;
int status = (unsigned int) vortex->Vortex->vx_back_end->VX_wb->last_data_wb & 0xf;
// std::cout << "Last wb: " << std::hex << ((unsigned int) vortex->Vortex__DOT__vx_back_end__DOT__VX_wb__DOT__last_data_wb) << "\n";