rpcsx/rpcs3/Emu/Memory/vm.cpp

40 lines
558 B
C++
Raw Normal View History

#include "stdafx.h"
namespace vm
{
bool check_addr(u32 addr)
{
2014-08-31 01:06:43 +02:00
// Checking address before using it is unsafe.
// The only safe way to check it is to protect both actions (checking and using) with mutex that is used for mapping/allocation.
return false;
}
2014-08-31 01:06:43 +02:00
//TODO
bool map(u32 addr, u32 size, u32 flags)
{
return false;
}
bool unmap(u32 addr, u32 size, u32 flags)
{
return false;
}
u32 alloc(u32 size)
{
return 0;
}
void unalloc(u32 addr)
{
}
u32 read32(u32 addr)
{
return 0;
}
2014-08-31 01:06:43 +02:00
void write32(u32 addr, u32 value)
{
}
}