diff options
author | Andreas Sandberg <andreas.sandberg@arm.com> | 2014-12-23 09:31:17 -0500 |
---|---|---|
committer | Andreas Sandberg <andreas.sandberg@arm.com> | 2014-12-23 09:31:17 -0500 |
commit | 070b4a81dbf9cc040ecb771e128993ae519cf80f (patch) | |
tree | d3f7f059aafb0dff016a0486166d71c34bc8abc2 /src/arch/arm/isa.cc | |
parent | 809134a2b151f82c29593e64086393b31bc110b7 (diff) | |
download | gem5-070b4a81dbf9cc040ecb771e128993ae519cf80f.tar.xz |
arm: Add support for filtering in the PMU
This patch adds support for filtering events in the PMU. In order to
do so, it updates the ISADevice base class to forward an ISA pointer
to ISA devices. This enables such devices to access the MiscReg file
to determine the current execution level.
Diffstat (limited to 'src/arch/arm/isa.cc')
-rw-r--r-- | src/arch/arm/isa.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/arch/arm/isa.cc b/src/arch/arm/isa.cc index d97c03db5..6bbd55195 100644 --- a/src/arch/arm/isa.cc +++ b/src/arch/arm/isa.cc @@ -139,6 +139,9 @@ ISA::ISA(Params *p) if (!pmu) pmu = &dummyDevice; + // Give all ISA devices a pointer to this ISA + pmu->setISA(this); + system = dynamic_cast<ArmSystem *>(p->system); DPRINTFN("ISA system set to: %p %p\n", system, p->system); |