Files
decaf-emu/tests/cpu/runner-generated/main.cpp
James Benton a364565f8b Move to a .toml config file and try to unify config loading.
Still not an ideal solution, but it's at least a step in the right direction.
2017-04-24 23:32:00 +01:00

36 lines
807 B
C++

#include "hardwaretests.h"
#include <common/decaf_assert.h>
#include <libcpu/cpu.h>
#include <libcpu/cpu_config.h>
#include <libcpu/mem.h>
#include <memory>
#include <spdlog/spdlog.h>
std::shared_ptr<spdlog::logger>
gLog;
static int runResult;
int main(int argc, char *argv[])
{
gLog = std::make_shared<spdlog::logger>("logger", std::make_shared<spdlog::sinks::stdout_sink_st>());
gLog->set_level(spdlog::level::debug);
cpu::config::jit::enabled = true;
cpu::initialise();
// We need to run the tests on a core.
cpu::setCoreEntrypointHandler(
[]() {
if (cpu::this_core::id() == 1) {
// Run the tests on only a single core.
runResult = hwtest::runTests("data/wiiu");
}
});
cpu::start();
cpu::join();
return runResult;
}