From 34257c2117209573ddff290128d4192cf9bbdf23 Mon Sep 17 00:00:00 2001 From: Aurelien Jarno Date: Mon, 1 May 2017 23:20:43 +0200 Subject: target/sh4: trap unaligned accesses MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit SH4 requires that memory accesses are naturally aligned, except for the SH4-A movua.l instructions which can do unaligned loads. Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Signed-off-by: Aurelien Jarno --- target/sh4/cpu.c | 1 + 1 file changed, 1 insertion(+) (limited to 'target/sh4/cpu.c') diff --git a/target/sh4/cpu.c b/target/sh4/cpu.c index 9a481c3..9da7e1e 100644 --- a/target/sh4/cpu.c +++ b/target/sh4/cpu.c @@ -301,6 +301,7 @@ static void superh_cpu_class_init(ObjectClass *oc, void *data) #ifdef CONFIG_USER_ONLY cc->handle_mmu_fault = superh_cpu_handle_mmu_fault; #else + cc->do_unaligned_access = superh_cpu_do_unaligned_access; cc->get_phys_page_debug = superh_cpu_get_phys_page_debug; #endif cc->disas_set_info = superh_cpu_disas_set_info; -- cgit v1.1