mirror of
https://github.com/saymrwulf/pulp-runtime.git
synced 2026-11-17 08:41:03 +00:00
fix ri5cy compatibility
This commit is contained in:
parent
babf8b1c4e
commit
a907bd73bd
2 changed files with 4 additions and 4 deletions
|
|
@ -174,9 +174,9 @@ static inline void perf_stop(void) {
|
||||||
*/
|
*/
|
||||||
static inline void perf_reset(void) {
|
static inline void perf_reset(void) {
|
||||||
#ifdef CSR_PCER_ALL_EVENTS_MASK
|
#ifdef CSR_PCER_ALL_EVENTS_MASK
|
||||||
cpu_perf_stop();
|
perf_stop();
|
||||||
cpu_perf_setall(0);
|
cpu_perf_setall(0);
|
||||||
cpu_perf_start();
|
perf_start();
|
||||||
#endif
|
#endif
|
||||||
// TODO this is failing on most targets, please include that also for specific ones
|
// TODO this is failing on most targets, please include that also for specific ones
|
||||||
#if 0
|
#if 0
|
||||||
|
|
|
||||||
|
|
@ -336,9 +336,9 @@ static inline void cpu_perf_start(unsigned int conf) {
|
||||||
|
|
||||||
/* Stops counting in all counters. As this is using the mode register,
|
/* Stops counting in all counters. As this is using the mode register,
|
||||||
* the rest of the config can be given through conf parameter */
|
* the rest of the config can be given through conf parameter */
|
||||||
static inline void cpu_perf_stop(unsigned int conf) {
|
static inline void cpu_perf_stop() {
|
||||||
#ifndef PLP_NO_PERF_COUNTERS
|
#ifndef PLP_NO_PERF_COUNTERS
|
||||||
cpu_perf_conf(conf); // TODO
|
cpu_perf_conf(0); // TODO
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue