aboutsummaryrefslogtreecommitdiff
path: root/target/ppc/translate_init.inc.c
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2018-06-26 09:19:09 -0700
committerDavid Gibson <david@gibson.dropbear.id.au>2018-07-03 09:56:52 +1000
commit0f3110fa67d3c3405202104f4833f1780e1a32bb (patch)
tree02db8f60340c1c83005493cfd2ed08c6a577a3cc /target/ppc/translate_init.inc.c
parent56f68439213f4fc002c602cee6f4e6863609cb88 (diff)
downloadqemu-0f3110fa67d3c3405202104f4833f1780e1a32bb.zip
qemu-0f3110fa67d3c3405202104f4833f1780e1a32bb.tar.gz
qemu-0f3110fa67d3c3405202104f4833f1780e1a32bb.tar.bz2
target/ppc: Add do_unaligned_access hook
This allows faults from MO_ALIGN to have the same effect as from gen_check_align. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'target/ppc/translate_init.inc.c')
-rw-r--r--target/ppc/translate_init.inc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/target/ppc/translate_init.inc.c b/target/ppc/translate_init.inc.c
index 76d6f3f..7813b1b 100644
--- a/target/ppc/translate_init.inc.c
+++ b/target/ppc/translate_init.inc.c
@@ -10457,6 +10457,7 @@ static void ppc_cpu_class_init(ObjectClass *oc, void *data)
cc->set_pc = ppc_cpu_set_pc;
cc->gdb_read_register = ppc_cpu_gdb_read_register;
cc->gdb_write_register = ppc_cpu_gdb_write_register;
+ cc->do_unaligned_access = ppc_cpu_do_unaligned_access;
#ifdef CONFIG_USER_ONLY
cc->handle_mmu_fault = ppc_cpu_handle_mmu_fault;
#else