Convert align checks to TCG

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4097 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
blueswir1 2008-03-21 18:08:59 +00:00
parent 2be17ebded
commit 2b29924f8c
4 changed files with 27 additions and 12 deletions

View file

@ -50,6 +50,12 @@ void helper_trapcc(target_ulong nb_trap, target_ulong do_trap)
}
}
void helper_check_align(target_ulong addr, uint32_t align)
{
if (addr & align)
raise_exception(TT_UNALIGNED);
}
#define F_HELPER(name, p) void helper_f##name##p(void)
#if defined(CONFIG_USER_ONLY)