Direct Page Table Access: Handle address spaces less than the full 64-bit in size

This commit is contained in:
MerryMage 2018-02-12 20:49:52 +00:00
parent f45a5e17c6
commit a6cc667509
3 changed files with 45 additions and 20 deletions

View file

@ -40,7 +40,9 @@ public:
: conf(conf)
, block_of_code(GenRunCodeCallbacks(conf.callbacks, &GetCurrentBlockThunk, this), JitStateInfo{jit_state})
, emitter(block_of_code, conf)
{}
{
ASSERT(conf.page_table_address_space_bits >= 12 && conf.page_table_address_space_bits <= 64);
}
~Impl() = default;