Skip to content

Commit

Permalink
Add backwards compatibility for new stdmem type
Browse files Browse the repository at this point in the history
  • Loading branch information
gvoskuilen committed Dec 10, 2024
1 parent 4858798 commit cbd1b9e
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions src/sst/core/interfaces/stdMem.h
Original file line number Diff line number Diff line change
Expand Up @@ -1098,12 +1098,18 @@ class StandardMem : public SubComponent
virtual ~RequestConverter() {}

/* Built in command converters */
virtual SST::Event* convert(Read* request) = 0;
virtual SST::Event* convert(ReadResp* request) = 0;
virtual SST::Event* convert(Write* request) = 0;
virtual SST::Event* convert(WriteResp* request) = 0;
virtual SST::Event* convert(FlushAddr* request) = 0;
virtual SST::Event* convert(FlushCache* request) = 0;
virtual SST::Event* convert(Read* request) = 0;
virtual SST::Event* convert(ReadResp* request) = 0;
virtual SST::Event* convert(Write* request) = 0;
virtual SST::Event* convert(WriteResp* request) = 0;
virtual SST::Event* convert(FlushAddr* request) = 0;
/* convert(FlushCache) temporarily has a default implementation for backward compatibility
* It will transition to pure virtual in SST 16
*/
virtual SST::Event* convert(FlushCache* request)
{
out->fatal(CALL_INFO, -1, "Error: Event converter for FlushCache requests is not implemented.\n");
}
virtual SST::Event* convert(FlushResp* request) = 0;
virtual SST::Event* convert(ReadLock* request) = 0;
virtual SST::Event* convert(WriteUnlock* request) = 0;
Expand Down

0 comments on commit cbd1b9e

Please sign in to comment.