Dirty page table. Not yet used.

This commit is contained in:
Ben Vanik
2014-06-02 07:49:45 -07:00
parent ddbebcda6c
commit beb5ee40ee
9 changed files with 56 additions and 3 deletions

View File

@@ -446,6 +446,11 @@ void X64Emitter::StoreEflags() {
#endif // STORE_EFLAGS
}
uint32_t X64Emitter::page_table_address() const {
uint64_t addr = runtime_->memory()->page_table();
return static_cast<uint32_t>(addr);
}
bool X64Emitter::ConstantFitsIn32Reg(uint64_t v) {
if ((v & ~0x7FFFFFFF) == 0) {
// Fits under 31 bits, so just load using normal mov.