Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial vanadis #1638

Merged
merged 2 commits into from
Apr 8, 2021
Merged
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions src/sst/elements/vanadis/inst/vfp2fp.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ class VanadisFP2FPInstruction : public VanadisInstruction {
case VANADIS_FORMAT_FP64:
return "FP2FP64";
}

return "FPUNK";
}

virtual void printToBuffer(char* buffer, size_t buffer_size) {
Expand Down
2 changes: 2 additions & 0 deletions src/sst/elements/vanadis/inst/vfp2gpr.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ class VanadisFP2GPRInstruction : public VanadisInstruction {
case VANADIS_FORMAT_FP64:
return "FP2GPR64";
}

return "FPGPRUNK";
}

virtual void printToBuffer(char* buffer, size_t buffer_size) {
Expand Down
2 changes: 2 additions & 0 deletions src/sst/elements/vanadis/inst/vfpadd.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ class VanadisFPAddInstruction : public VanadisInstruction {
case VANADIS_FORMAT_INT32:
return "FPINT32ADD";
}

return "FPUNK";
}

virtual void printToBuffer(char* buffer, size_t buffer_size) {
Expand Down
2 changes: 2 additions & 0 deletions src/sst/elements/vanadis/inst/vfpconv.h
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ class VanadisFPConvertInstruction : public VanadisInstruction {
}
break;
}

return "FPCONVUNK";
}

virtual void printToBuffer(char* buffer, size_t buffer_size) {
Expand Down
2 changes: 2 additions & 0 deletions src/sst/elements/vanadis/inst/vfpdiv.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ class VanadisFPDivideInstruction : public VanadisInstruction {
case VANADIS_FORMAT_INT32:
return "FPINT32DIV";
}

return "FPUNK";
}

virtual void printToBuffer(char* buffer, size_t buffer_size) {
Expand Down
2 changes: 2 additions & 0 deletions src/sst/elements/vanadis/inst/vfpmul.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ class VanadisFPMultiplyInstruction : public VanadisInstruction {
case VANADIS_FORMAT_INT64:
return "FPINT64ADD";
}

return "FPUNK";
}

virtual void printToBuffer(char* buffer, size_t buffer_size) {
Expand Down
2 changes: 2 additions & 0 deletions src/sst/elements/vanadis/inst/vfpscmp.h
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ class VanadisFPSetRegCompareInstruction : public VanadisInstruction {
case VANADIS_FORMAT_INT32:
return "FPINT32CMP";
}

return "FPCNVUNK";
}

virtual void printToBuffer(char* buffer, size_t buffer_size ) {
Expand Down
2 changes: 2 additions & 0 deletions src/sst/elements/vanadis/inst/vfpsub.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ class VanadisFPSubInstruction : public VanadisInstruction {
case VANADIS_FORMAT_INT32:
return "FPINT32SUB";
}

return "FPUNK";
}

virtual void printToBuffer(char* buffer, size_t buffer_size) {
Expand Down
2 changes: 2 additions & 0 deletions src/sst/elements/vanadis/inst/vgpr2fp.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ class VanadisGPR2FPInstruction : public VanadisInstruction {
case VANADIS_FORMAT_FP64:
return "GPR2FP64";
}

return "GPRCONVUNK";
}

virtual void printToBuffer(char* buffer, size_t buffer_size) {
Expand Down
2 changes: 2 additions & 0 deletions src/sst/elements/vanadis/inst/vload.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ class VanadisLoadInstruction : public VanadisInstruction {
return "LOADFP";
}
}

return "LOADUNK";
}

uint16_t getMemoryAddressRegister() const { return phys_int_regs_in[1]; }
Expand Down
2 changes: 2 additions & 0 deletions src/sst/elements/vanadis/inst/vstore.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ class VanadisStoreInstruction : public VanadisInstruction {
}
}
}

return "STOREUNK";
}

virtual void printToBuffer(char* buffer, size_t buffer_size) {
Expand Down
4 changes: 2 additions & 2 deletions src/sst/elements/vanadis/lsq/vlsqseq.h
Original file line number Diff line number Diff line change
Expand Up @@ -759,15 +759,15 @@ class VanadisSequentialLoadStoreQueue : public SST::Vanadis::VanadisLoadStoreQue
protected:
void writeTrace( VanadisInstruction* ins, SimpleMem::Request* req ) {
if( nullptr != address_trace_file ) {
char* req_type = nullptr;
const char* req_type = nullptr;

switch( req->cmd ) {
case SimpleMem::Request::Read: req_type = "READ"; break;
case SimpleMem::Request::Write: req_type = "WRITE"; break;
default: req_type = "UNKNOWN"; break;
}

char* sub_type = "";
const char* sub_type = "";
if( (req->flags & Interfaces::SimpleMem::Request::F_LLSC) != 0 ) {
sub_type = "LLSC";
}
Expand Down
2 changes: 1 addition & 1 deletion src/sst/elements/vanadis/tools/tracediff/tracediff.cc
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ void read_line( FILE* input_file, char* buffer ) {
buffer[next_index] = '\0';
};

void generate_error( int left_line, int right_line, char* error_msg ) {
void generate_error( int left_line, int right_line, const char* error_msg ) {
fprintf(stderr, "Error left-line: %d, right-line: %d, cause: %s\n",
left_line, right_line, error_msg);
}
Expand Down