diff options
author | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-03-21 18:08:59 +0000 |
---|---|---|
committer | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-03-21 18:08:59 +0000 |
commit | 2b29924f8c65fda8047e5c19f616ac5617b75a14 (patch) | |
tree | 53e89c79e53cc37ed97b3591c2d639117c3fba30 /target-sparc/op_helper.c | |
parent | 2be17ebded1eb5add24674cc88e4833d5afaa980 (diff) |
Convert align checks to TCG
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4097 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-sparc/op_helper.c')
-rw-r--r-- | target-sparc/op_helper.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/target-sparc/op_helper.c b/target-sparc/op_helper.c index 6e64eb807f..bc9bb179d6 100644 --- a/target-sparc/op_helper.c +++ b/target-sparc/op_helper.c @@ -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) |