Play-/tools/VuTest/TestVm.h

33 lines
498 B
C
Raw Permalink Normal View History

2014-12-06 16:42:11 -05:00
#pragma once
#include "AlignedAlloc.h"
2014-12-06 16:42:11 -05:00
#include "MIPS.h"
#include "ee/MA_VU.h"
#include "ee/VuExecutor.h"
2014-12-06 16:42:11 -05:00
class CTestVm
{
public:
2018-04-30 21:01:23 +01:00
CTestVm();
virtual ~CTestVm();
2014-12-06 16:42:11 -05:00
2018-04-30 21:01:23 +01:00
void Reset();
void ExecuteTest(uint32);
2014-12-06 16:42:11 -05:00
void* operator new(size_t allocSize)
{
return framework_aligned_alloc(allocSize, 0x10);
}
void operator delete(void* ptr)
{
return framework_aligned_free(ptr);
}
2018-04-30 21:01:23 +01:00
CMIPS m_cpu;
CVuExecutor m_executor;
uint8* m_vuMem = nullptr;
uint8* m_microMem = nullptr;
CMA_VU m_maVu;
2014-12-06 16:42:11 -05:00
};