Making xenia-test run on Windows.

This commit is contained in:
Ben Vanik
2013-05-25 05:20:28 -07:00
parent edb3aabdd4
commit bd8376e231
3 changed files with 64 additions and 13 deletions

View File

@@ -100,7 +100,7 @@ int Processor::Setup() {
int Processor::LoadRawBinary(const xechar_t* path, uint32_t start_address) {
ExecModule* exec_module = NULL;
const xechar_t* name = xestrrchr(path, '/') + 1;
const xechar_t* name = xestrrchr(path, XE_PATH_SEPARATOR) + 1;
// TODO(benvanik): map file from filesystem API, not via platform API.
xe_mmap_ref mmap = xe_mmap_open(kXEFileModeRead, path, 0, 0);

View File

@@ -36,8 +36,6 @@ X64JIT::~X64JIT() {
int X64JIT::Setup() {
int result_code = 1;
XELOGCPU("Initializing x64 JIT backend...");
// Check processor for support.
result_code = CheckProcessor();
if (result_code) {
@@ -97,6 +95,8 @@ static const BitDescription x86Features[] = {
int X64JIT::CheckProcessor() {
const CpuInfo* cpu = CpuInfo::getGlobal();
const X86CpuInfo* x86Cpu = static_cast<const X86CpuInfo*>(cpu);
#if 0
XELOGCPU("Processor Info:");
XELOGCPU(" Vendor string : %s", cpu->getVendorString());
XELOGCPU(" Brand string : %s", cpu->getBrandString());
@@ -118,6 +118,7 @@ int X64JIT::CheckProcessor() {
XELOGCPU(" %s", d->description);
}
}
#endif
// TODO(benvanik): ensure features we want are supported.