hvf: fix is_host_reg for i386

This commit is contained in:
espes 2018-10-06 17:38:19 +10:00
parent d07438fa8a
commit 99cfb38552
1 changed files with 1 additions and 1 deletions

View File

@ -173,7 +173,7 @@ void write_val_to_reg(uintptr_t reg_ptr, target_ulong val, int size)
static bool is_host_reg(struct CPUX86State *env, uintptr_t ptr)
{
return (ptr - (target_ulong)&env->hvf_emul->regs[0]) < sizeof(env->hvf_emul->regs);
return (ptr - (uintptr_t)&env->hvf_emul->regs[0]) < sizeof(env->hvf_emul->regs);
}
void write_val_ext(struct CPUX86State *env, uintptr_t ptr, target_ulong val, int size)