vm::var improved, cleanup

Mostly vm::var initialization introduced.
Added vm::make_var function.
This commit is contained in:
Nekotekina 2015-09-26 23:46:04 +03:00
parent cc02a147d3
commit a974ee009e
116 changed files with 2763 additions and 3019 deletions

View file

@ -1963,7 +1963,7 @@ void ARMv7_instrs::LDM(ARMv7Context& context, const ARMv7Code code, const ARMv7_
if (ConditionPassed(context, cond))
{
auto memory = vm::ptr<u32>::make(context.read_gpr(n));
vm::ptr<u32> memory{ context.read_gpr(n), vm::addr };
for (u32 i = 0; i < 16; i++)
{
@ -3540,7 +3540,7 @@ void ARMv7_instrs::PUSH(ARMv7Context& context, const ARMv7Code code, const ARMv7
if (ConditionPassed(context, cond))
{
auto memory = vm::ptr<u32>::make(context.SP);
vm::ptr<u32> memory{ context.SP, vm::addr };
for (u32 i = 15; ~i; i--)
{