ndma.cpp 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. // Copyright 2014 Citra Emulator Project
  2. // Licensed under GPLv2
  3. // Refer to the license.txt file included.
  4. #include "common/common_types.h"
  5. #include "core/hw/ndma.h"
  6. namespace NDMA {
  7. template <typename T>
  8. inline void Read(T &var, const u32 addr) {
  9. ERROR_LOG(NDMA, "unknown Read%lu @ 0x%08X", sizeof(var) * 8, addr);
  10. }
  11. template <typename T>
  12. inline void Write(u32 addr, const T data) {
  13. ERROR_LOG(NDMA, "unknown Write%lu 0x%08X @ 0x%08X", sizeof(data) * 8, (u32)data, addr);
  14. }
  15. // Explicitly instantiate template functions because we aren't defining this in the header:
  16. template void Read<u64>(u64 &var, const u32 addr);
  17. template void Read<u32>(u32 &var, const u32 addr);
  18. template void Read<u16>(u16 &var, const u32 addr);
  19. template void Read<u8>(u8 &var, const u32 addr);
  20. template void Write<u64>(u32 addr, const u64 data);
  21. template void Write<u32>(u32 addr, const u32 data);
  22. template void Write<u16>(u32 addr, const u16 data);
  23. template void Write<u8>(u32 addr, const u8 data);
  24. /// Update hardware
  25. void Update() {
  26. }
  27. /// Initialize hardware
  28. void Init() {
  29. NOTICE_LOG(GPU, "initialized OK");
  30. }
  31. /// Shutdown hardware
  32. void Shutdown() {
  33. NOTICE_LOG(GPU, "shutdown OK");
  34. }
  35. } // namespace