2014-12-06 16:42:11 -05:00
|
|
|
#pragma once
|
|
|
|
|
2020-03-03 17:43:37 -05:00
|
|
|
#include "AlignedAlloc.h"
|
2014-12-06 16:42:11 -05:00
|
|
|
#include "MIPS.h"
|
2015-05-06 00:54:15 -04:00
|
|
|
#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
|
|
|
|
2020-03-03 17:43:37 -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
|
|
|
};
|