Enable performance counter for everything beyond Armv7

This commit is contained in:
Stefan Kalkowski
2013-08-20 14:42:48 +02:00
committed by Sebastian Sumpf
parent 14ef3a3a2b
commit 90a76c9592
2 changed files with 4 additions and 1 deletions

View File

@@ -40,6 +40,7 @@ public:
Copro_dbg_model_v6 = 2,
Copro_dbg_model_v6_1 = 3,
Copro_dbg_model_v7 = 4,
Copro_dbg_model_v7_1 = 5,
};
unsigned copro_dbg_model() const { return _cpu_id._dfr0 & 0xf; }

View File

@@ -261,6 +261,7 @@ Perf_cnt::init_cpu()
//set_event_type(0, EVENT_EXTMEM_TRANSFER_READ);
//set_event_type(1, EVENT_EXTMEM_TRANSFER_WRITE);
#if 0
set_event_type(3, EVENT_EXTMEM_TRANSFER_READ);
set_event_type(4, EVENT_LINE_MIGRATION);
@@ -296,7 +297,8 @@ int Perf_cnt::_nr_counters;
PRIVATE static
bool
Perf_cnt::is_avail()
{ return Cpu::boot_cpu()->copro_dbg_model() == Cpu::Copro_dbg_model_v7; }
{ return Cpu::boot_cpu()->copro_dbg_model() == Cpu::Copro_dbg_model_v7 ||
Cpu::boot_cpu()->copro_dbg_model() == Cpu::Copro_dbg_model_v7_1; }
PRIVATE static
void