OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 1540 to Rev 1541
    Reverse comparison

Rev 1540 → Rev 1541

/trunk/or1ksim/support/dbchs.h
22,6 → 22,7
DECLARE_DEBUG_CHANNEL(sched)
DECLARE_DEBUG_CHANNEL(except)
DECLARE_DEBUG_CHANNEL(cycles)
DECLARE_DEBUG_CHANNEL(sched_jobs)
DECLARE_DEBUG_CHANNEL(spr)
DECLARE_DEBUG_CHANNEL(immu)
DECLARE_DEBUG_CHANNEL(dmmu)
/trunk/or1ksim/support/sched.h
27,13 → 27,11
 
#include "debug.h"
 
/* Scheduler debug level */
#define SCHED_DEBUG 0
 
#define SCHED_HEAP_SIZE 128
#define SCHED_TIME_MAX INT32_MAX
 
DECLARE_DEBUG_CHANNEL(sched);
DECLARE_DEBUG_CHANNEL(sched_jobs);
 
/* Structure for holding one job entry */
struct sched_entry {
54,8 → 52,6
 
extern struct scheduler_struct scheduler;
 
#if SCHED_DEBUG > 1
#define SCHED_PRINT_JOBS() sched_print_jobs()
static inline void sched_print_jobs(void)
{
struct sched_entry *cur;
65,9 → 61,6
TRACE_(sched)("\t%i: %p $%p @ %"PRIi32"\n", i, cur->func, cur->param,
cur->time);
}
#else
#define SCHED_PRINT_JOBS()
#endif
 
/* Adds new job to the queue */
static inline void sched_add(void (*job_func)(void *), void *job_param,
76,12 → 69,13
struct sched_entry *cur, *prev, *new_job;
int32_t alltime;
 
if (SCHED_DEBUG > 1)
TRACE_(sched)("%s@%lli:SCHED_ADD(time %"PRIi32")\n", func,
runtime.sim.cycles, job_time);
SCHED_PRINT_JOBS();
TRACE_(sched)("%s@%lli:SCHED_ADD(time %"PRIi32")\n", func, runtime.sim.cycles,
job_time);
if(TRACE_ON(sched_jobs))
sched_print_jobs();
 
if (SCHED_DEBUG > 1) TRACE_(sched) ("--------\n");
if(TRACE_ON(sched_jobs))
TRACE_(sched) ("--------\n");
 
cur = scheduler.job_queue;
prev = NULL;
120,7 → 114,8
if(cur)
cur->time -= new_job->time;
 
SCHED_PRINT_JOBS();
if(TRACE_ON(sched_jobs))
sched_print_jobs();
}
 
#define SCHED_ADD(job_func, job_param, job_time) sched_add(job_func, job_param, job_time, __FUNCTION__)

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.