gem5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions | Variables
gpu_nomali.cc File Reference
#include "dev/arm/gpu_nomali.hh"
#include "debug/NoMali.hh"
#include "dev/arm/base_gic.hh"
#include "dev/arm/realview.hh"
#include "enums/MemoryMode.hh"
#include "mem/packet_access.hh"
#include "nomali/lib/mali_midg_regmap.h"
#include "params/CustomNoMaliGpu.hh"
#include "params/NoMaliGpu.hh"

Go to the source code of this file.

Functions

memset & cfg (cfg)
 
const auto it_gpu (gpuTypeMap.find(p->gpu_type))
 
 if (it_gpu==gpuTypeMap.end())
 
 panicOnErr (nomali_create(&nomali,&cfg),"Failed to instantiate NoMali")
 
 setCallback (cbk_int)
 
 setCallback (cbk_rst)
 
 panicOnErr (nomali_get_info(nomali,&nomaliInfo),"Failed to get NoMali information struct")
 
 fatal_if (p->js_features.size() > 16,"Too many job slot feature registers specified (%i)\n", p->js_features.size())
 
 for (int i=0;i< p->texture_features.size();i++) idRegs[TEXTURE_FEATURES_REG(i)] = p->js_features[i]
 

Variables

static const std::map
< Enums::NoMaliGpuType,
nomali_gpu_type_t > 
gpuTypeMap
 
nomali_config_t cfg
 
cfg type = it_gpu->second
 
cfg ver_maj = p->ver_maj
 
cfg ver_min = p->ver_min
 
cfg ver_status = p->ver_status
 
nomali_callback_t cbk_int
 
cbk_int usr = (void *)this
 
cbk_int func interrupt = NoMaliGpu::_interrupt
 
nomali_callback_t cbk_rst
 
cbk_rst func reset = NoMaliGpu::_reset
 

Function Documentation

memset& cfg ( cfg  )
fatal_if ( p->js_features.  size(),
16  ,
"Too many job slot feature registers specified (%i)\n"  ,
p->js_features.  size() 
)
for ( int  i = 0;i< p->texture_features.size();i++) = p->js_features[i]
if ( it_gpu  = = gpuTypeMap.end())
const auto it_gpu ( gpuTypeMap.  findp->gpu_type)
panicOnErr ( nomali_create &,&  cfg,
"Failed to instantiate NoMali"   
)
panicOnErr ( nomali_get_info(nomali,&nomaliInfo)  ,
"Failed to get NoMali information struct"   
)
setCallback ( cbk_int  )
setCallback ( cbk_rst  )

Variable Documentation

nomali_callback_t cbk_int

Definition at line 91 of file gpu_nomali.cc.

nomali_callback_t cbk_rst

Definition at line 98 of file gpu_nomali.cc.

nomali_config_t cfg
Initial value:
{
if (nomali_api_version() != NOMALI_API_VERSION)
panic("NoMali library API mismatch!\n")
#define panic(...)
Definition: misc.hh:153

Definition at line 66 of file gpu_nomali.cc.

Referenced by ControlFlowInfo::assignImmediatePostDominators(), and MipsISA::ISA::configCP().

const std::map<Enums::NoMaliGpuType, nomali_gpu_type_t> gpuTypeMap
static
Initial value:
{
{ Enums::T60x, NOMALI_GPU_T60X },
{ Enums::T62x, NOMALI_GPU_T62X },
{ Enums::T760, NOMALI_GPU_T760 },
}

Definition at line 51 of file gpu_nomali.cc.

cbk_int func interrupt = NoMaliGpu::_interrupt
cbk_rst func reset = NoMaliGpu::_reset
cbk_rst type = it_gpu->second

Definition at line 79 of file gpu_nomali.cc.

cbk_rst usr = (void *)this

Definition at line 93 of file gpu_nomali.cc.

cfg ver_maj = p->ver_maj

Definition at line 81 of file gpu_nomali.cc.

cfg ver_min = p->ver_min

Definition at line 82 of file gpu_nomali.cc.

cfg ver_status = p->ver_status

Definition at line 83 of file gpu_nomali.cc.


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