kernel_cpu: enable perf counters

This commit is contained in:
Robert Jördens 2017-02-11 14:22:28 +01:00
parent 9501d37378
commit c022b53578
1 changed files with 5 additions and 1 deletions

View File

@ -23,7 +23,11 @@ class KernelCPU(Module):
self.cd_sys_kernel.rst.eq(self._reset.storage) self.cd_sys_kernel.rst.eq(self._reset.storage)
] ]
self.submodules.cpu = ClockDomainsRenamer("sys_kernel")( self.submodules.cpu = ClockDomainsRenamer("sys_kernel")(
mor1kx.MOR1KX(platform, exec_address)) mor1kx.MOR1KX(
platform,
OPTION_RESET_PC=exec_address,
FEATURE_PERFCOUNTERS="ENABLED",
OPTION_PERFCOUNTERS_NUM=7))
# DRAM access # DRAM access
self.wb_sdram = wishbone.Interface() self.wb_sdram = wishbone.Interface()