gem5
|
#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 |
memset& cfg | ( | cfg | ) |
fatal_if | ( | p->js_features. | size(), |
16 | , | ||
"Too many job slot feature registers specified (%i)\n" | , | ||
p->js_features. | size() | ||
) |
Referenced by AddrRange::AddrRange(), ArmSystem::ArmSystem(), arrayParamIn(), BaseGic::BaseGic(), BrigObject::BrigObject(), Network::checkNetworkAllocation(), ComputeUnit::ComputeUnit(), LdsState::countBankConflicts(), createObjectFile(), LdsState::decreaseRefCounter(), DVFSHandler::domainID(), DRAMCtrl::DRAMCtrl(), DVFSHandler::DVFSHandler(), ElasticTrace::ElasticTrace(), EnergyCtrl::EnergyCtrl(), GenericTimer::GenericTimer(), LdsState::getRefCounter(), Gicv2m::Gicv2m(), LdsState::increaseRefCounter(), VecRegisterState::init(), ComputeUnit::init(), ArmISA::TableWalker::init(), GPUCoalescer::issueRequest(), BaseKvmCPU::kvmRun(), LdsState::LdsState(), GenericArmPciHost::mapPciInterrupt(), MemFootprintProbe::MemFootprintProbe(), MemTest::MemTest(), SimplePoolManager::minAllocatedElements(), PciDevice::PciDevice(), LdsChunk::read(), ComputeUnit::LDSPort::recvReqRetry(), ComputeUnit::LDSPort::recvTimingResp(), PciHost::registerDevice(), LdsState::releaseSpace(), LdsState::reserveSpace(), ComputeUnit::LDSPort::sendTimingReq(), WaitClass::set(), LdsState::setParent(), SnoopFilter::setSlavePorts(), ArmISA::TLB::setTestInterface(), BaseSetAssoc::setWayAllocationMax(), SrcClockDomain::SrcClockDomain(), StackDistProbe::StackDistProbe(), TraceCPU::TraceCPU(), EtherLink::Link::unserialize(), VectorRegisterFile::VectorRegisterFile(), VoltageDomain::VoltageDomain(), and LdsChunk::write().
for | ( | int | i = 0;i< p->texture_features.size();i++ | ) | = p->js_features[i] |
Referenced by UFSHostDevice::UFSSCSIDevice::SCSICMDHandle().
if | ( | it_gpu | = = gpuTypeMap.end() | ) |
Definition at line 75 of file gpu_nomali.cc.
References fatal, and MipsISA::p.
Referenced by LTAGE::baseUpdate(), PacketFifo::check(), Trie< Addr, X86ISA::TlbEntry >::lookupHandle(), Stats::DistPrint::operator()(), LSQUnit< Impl >::read(), Net::IpPtr::set(), Net::Ip6Ptr::set(), X86ISA::Walker::WalkerState::setupWalk(), Pl050::updateIntStatus(), CpuLocalTimer::Timer::write(), and UFSHostDevice::write().
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 | ) |
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 |
Definition at line 66 of file gpu_nomali.cc.
Referenced by ControlFlowInfo::assignImmediatePostDominators(), and MipsISA::ISA::configCP().
|
static |
Definition at line 51 of file gpu_nomali.cc.
cbk_int func interrupt = NoMaliGpu::_interrupt |
Definition at line 94 of file gpu_nomali.cc.
Referenced by BaseSimpleCPU::checkForInterrupts(), ArmISA::Interrupts::checkRaw(), TsunamiCChip::clearDRIR(), DefaultCommit< Impl >::commitInsts(), DefaultCommit< Impl >::handleInterrupt(), DefaultCommit< Impl >::isDrained(), TsunamiCChip::postDRIR(), DefaultCommit< Impl >::propagateInterrupt(), and Minor::Execute::takeInterrupt().
cbk_rst func reset = NoMaliGpu::_reset |
Definition at line 101 of file gpu_nomali.cc.
Referenced by IGbE::DescCache< T >::areaChanged(), AlphaISA::initCPU(), ArmISA::initCPU(), Stats::StatEvent::process(), and IGbE::DescCache< T >::~DescCache().
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.