gem5  v20.1.0.0
Macros | Functions | Variables
smt.hh File Reference
#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

◆ SMT_MAX_THREADS

#define SMT_MAX_THREADS   4

The number of TPUs in any processor.

Definition at line 41 of file smt.hh.

Function Documentation

◆ change_thread_state()

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 420 of file base.cc.

Variable Documentation

◆ maxThreadsPerCPU

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 42 of file cpu_dummy.cc.


Generated on Wed Sep 30 2020 14:02:18 for gem5 by doxygen 1.8.17