X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fcpu%2Fintr_control.hh;h=ee7b3ea7f5c51452c77bff62046517d1468c555d;hb=0e6dc004978fbf2963dc467b8330544f563231d0;hp=2e3f9e038d7ff1cd8c7f999539d53bc9ed717770;hpb=4ed184eadefb16627f2807cb3dc7886bb1b920d1;p=gem5.git diff --git a/src/cpu/intr_control.hh b/src/cpu/intr_control.hh index 2e3f9e038..ee7b3ea7f 100644 --- a/src/cpu/intr_control.hh +++ b/src/cpu/intr_control.hh @@ -33,22 +33,34 @@ #define __INTR_CONTROL_HH__ #include + #include "base/misc.hh" #include "cpu/base.hh" +#include "params/IntrControl.hh" #include "sim/sim_object.hh" #include "sim/system.hh" - class IntrControl : public SimObject { public: - BaseCPU *cpu; - IntrControl(const std::string &name, BaseCPU *c); + System *sys; + typedef IntrControlParams Params; + IntrControl(const Params *p); - void clear(int int_num, int index = 0); - void post(int int_num, int index = 0); void clear(int cpu_id, int int_num, int index); void post(int cpu_id, int int_num, int index); + + void + clear(int int_num, int index = 0) + { + clear(0, int_num, index); + } + + void + post(int int_num, int index = 0) + { + post(0, int_num, index); + } }; #endif // __INTR_CONTROL_HH__