Fixing tests.

This commit is contained in:
Ben Vanik
2015-05-21 07:51:56 -07:00
parent fc4727c339
commit bac3f8c3bd
7 changed files with 23 additions and 6 deletions

View File

@@ -35,7 +35,7 @@ using xe::cpu::Runtime;
typedef std::vector<std::pair<std::string, std::string>> AnnotationList;
const uint32_t START_ADDRESS = 0x100000;
const uint32_t START_ADDRESS = 0x80000000;
struct TestCase {
TestCase(uint32_t address, std::string& name)
@@ -194,6 +194,9 @@ class TestRunner {
}
processor->AddModule(std::move(module));
processor->backend()->CommitExecutableRange(START_ADDRESS,
START_ADDRESS + 1024 * 1024);
// Simulate a thread.
uint32_t stack_size = 64 * 1024;
uint32_t stack_address = START_ADDRESS - stack_size;