Skip to content

Commit

Permalink
Removed the Component* versions of SubComponent constructors.
Browse files Browse the repository at this point in the history
  • Loading branch information
feldergast committed Jan 29, 2020
1 parent 8c370c2 commit 50fda15
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 29 deletions.
3 changes: 1 addition & 2 deletions src/custominst/junocustinst.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,8 @@ namespace Juno {
class JunoCustomInstructionHandler : public SST::SubComponent {

public:
SST_ELI_REGISTER_SUBCOMPONENT_API(SST::Juno::JunoCustomInstructionHandler)
SST_ELI_REGISTER_SUBCOMPONENT_API(SST::Juno::JunoCustomInstructionHandler)

JunoCustomInstructionHandler( Component* owner, Params& params ) : SubComponent(owner) {}
JunoCustomInstructionHandler( ComponentId_t id, Params& params) : SubComponent(id) {}
~JunoCustomInstructionHandler() {}

Expand Down
10 changes: 0 additions & 10 deletions src/custominst/junorandextinst.cc
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,6 @@ JunoExternalRandInstructionHandler::JunoExternalRandInstructionHandler( Componen
statCyclesBusy = registerStatistic<uint64_t>("cycles-busy");
}

JunoExternalRandInstructionHandler::JunoExternalRandInstructionHandler( Component* owner, Params& params ) :
JunoCustomInstructionHandler( owner, params ), nextEvID(0), targetReg(0) {

randAccLink = configureLink( "genlink", "1ns", new Event::Handler<JunoExternalRandInstructionHandler>(
this, &JunoExternalRandInstructionHandler::handleGenerateResp));

statRandCalls = registerStatistic<uint64_t>("rand-calls");
statCyclesBusy = registerStatistic<uint64_t>("cycles-busy");
}

JunoExternalRandInstructionHandler::~JunoExternalRandInstructionHandler() {

}
Expand Down
3 changes: 1 addition & 2 deletions src/custominst/junorandextinst.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,8 @@ namespace Juno {
class JunoExternalRandInstructionHandler : public JunoCustomInstructionHandler {

public:
JunoExternalRandInstructionHandler( Component* owner, Params& params );
JunoExternalRandInstructionHandler( ComponentId_t id, Params& params );
~JunoExternalRandInstructionHandler();
~JunoExternalRandInstructionHandler();

// Return true if the op-code is either RAND or RSEED instructions
// that's all we can process in this unit
Expand Down
12 changes: 0 additions & 12 deletions src/custominst/junorandinst.cc
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,6 @@ JunoRandInstructionHandler::JunoRandInstructionHandler( ComponentId_t id, Params
cyclesLeft = 0;
}

JunoRandInstructionHandler::JunoRandInstructionHandler( Component* owner, Params& params ) :
JunoCustomInstructionHandler( owner, params ) {

const uint64_t rngSeed = params.find<uint64_t>("seed", 101010101);
rng = new MersenneRNG( rngSeed );

statRandCalls = registerStatistic<uint64_t>("calls-to-rand");
statRandSeedCalls = registerStatistic<uint64_t>("calls-to-rseed");

cyclesLeft = 0;
}

JunoRandInstructionHandler::~JunoRandInstructionHandler() {
delete rng;
}
Expand Down
5 changes: 2 additions & 3 deletions src/custominst/junorandinst.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,8 @@ namespace Juno {
class JunoRandInstructionHandler : public JunoCustomInstructionHandler {

public:
JunoRandInstructionHandler( Component* owner, Params& params );
JunoRandInstructionHandler( ComponentId_t id, Params& params );
~JunoRandInstructionHandler();
JunoRandInstructionHandler( ComponentId_t id, Params& params );
~JunoRandInstructionHandler();

// Return true if the op-code is either RAND or RSEED instructions
// that's all we can process in this unit
Expand Down

0 comments on commit 50fda15

Please sign in to comment.