diff options
author | Andreas Sandberg <andreas.sandberg@arm.com> | 2016-09-06 10:22:38 +0100 |
---|---|---|
committer | Andreas Sandberg <andreas.sandberg@arm.com> | 2016-09-06 10:22:38 +0100 |
commit | 3329de1e86e490f380e9c32e26b03df6ce8a4acd (patch) | |
tree | 1fad9bbb61bdfd5546c66906d97c459eb4d74512 /src/dev/arm/gpu_nomali.hh | |
parent | 0da55e5dbc4ac5db97a28ddef008eb0f1d3cd83f (diff) | |
download | gem5-3329de1e86e490f380e9c32e26b03df6ce8a4acd.tar.xz |
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 <andreas.sandberg@arm.com>
Reviewed-by: Andreas Hansson <andreas.hansson@arm.com>
Diffstat (limited to 'src/dev/arm/gpu_nomali.hh')
-rw-r--r-- | src/dev/arm/gpu_nomali.hh | 15 |
1 files changed, 15 insertions, 0 deletions
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<nomali_addr_t, uint32_t> idRegs; +}; + #endif // __DEV_ARM_NOMALI_GPU_HH__ |