From 3329de1e86e490f380e9c32e26b03df6ce8a4acd Mon Sep 17 00:00:00 2001 From: Andreas Sandberg Date: Tue, 6 Sep 2016 10:22:38 +0100 Subject: dev, arm: Add a customizable NoMali GPU model Add a customizable NoMali GPU model and an example Mali T760 configuration. Unlike the normal NoMali model (NoMaliGpu), the NoMaliCustopmGpu model exposes all the important GPU ID registers to Python. This makes it possible to implement custom GPU configurations by without changing the underlying NoMali library. Change-Id: I4fdba05844c3589893aa1a4c11dc376ec33d4e9e Signed-off-by: Andreas Sandberg Reviewed-by: Andreas Hansson --- src/dev/arm/gpu_nomali.hh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/dev/arm/gpu_nomali.hh') diff --git a/src/dev/arm/gpu_nomali.hh b/src/dev/arm/gpu_nomali.hh index 06e0826c4..d72e920b9 100644 --- a/src/dev/arm/gpu_nomali.hh +++ b/src/dev/arm/gpu_nomali.hh @@ -46,6 +46,7 @@ #include "libnomali/nomali.h" class NoMaliGpuParams; +class CustomNoMaliGpuParams; class RealView; class NoMaliGpu : public PioDevice @@ -186,4 +187,18 @@ class NoMaliGpu : public PioDevice }; +class CustomNoMaliGpu : public NoMaliGpu +{ + public: + CustomNoMaliGpu(const CustomNoMaliGpuParams *p); + virtual ~CustomNoMaliGpu(); + + protected: + void onReset() override; + + private: + /** Map between GPU registers and their custom reset values */ + std::map idRegs; +}; + #endif // __DEV_ARM_NOMALI_GPU_HH__ -- cgit v1.2.3