gem5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Macros | Functions | Variables
smt.hh File Reference

Defines SMT_MAX_THREADS. More...

#include "base/types.hh"

Go to the source code of this file.

Macros

#define SMT_MAX_THREADS   4
 The number of TPUs in any processor. More...
 

Functions

void change_thread_state (ThreadID tid, int activate, int priority)
 Changes the status and priority of the thread with the given number. More...
 

Variables

int maxThreadsPerCPU
 The maximum number of active threads across all cpus. More...
 

Detailed Description

Defines SMT_MAX_THREADS.

Definition in file smt.hh.

Macro Definition Documentation

#define SMT_MAX_THREADS   4

The number of TPUs in any processor.

Definition at line 43 of file smt.hh.

Function Documentation

void change_thread_state ( ThreadID  tid,
int  activate,
int  priority 
)

Changes the status and priority of the thread with the given number.

Parameters
tidThe thread to change.
activateThe new active status.
priorityThe new priority.

Definition at line 409 of file base.cc.

Variable Documentation

int maxThreadsPerCPU

The maximum number of active threads across all cpus.

Used to initialize per-thread statistics in the cache.

NB: Be careful to only use it once all the CPUs that you care about have been initialized

The maximum number of active threads across all cpus.

Definition at line 44 of file cpu_dummy.cc.

Referenced by BaseTags::regStats().


Generated on Fri Jun 9 2017 13:03:57 for gem5 by doxygen 1.8.6