qemu-e2k/target/m68k
Mark Cave-Ayland a9431a03f7 target/m68k: add M68K_FEATURE_UNALIGNED_DATA feature
According to the M68040UM Appendix D the requirement for data accesses to be
word aligned is only for the 68000, 68008 and 68010 CPUs. Later CPUs from the
68020 onwards will allow unaligned data accesses but at the cost of being less
efficient.

Add a new M68K_FEATURE_UNALIGNED_DATA feature to specify that data accesses are
not required to be word aligned, and don't perform the alignment on the stack
pointer when taking an exception if this feature is not selected.

This is required because the MacOS DAFB driver attempts to call an A-trap
with a byte-aligned stack pointer during initialisation and without this the
stack pointer is off by one when the A-trap returns.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20210308121155.2476-4-mark.cave-ayland@ilande.co.uk>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
2021-03-11 21:12:32 +01:00
..
cpu-param.h
cpu-qom.h qom: Remove module_obj_name parameter from OBJECT_DECLARE* macros 2020-09-18 14:12:32 -04:00
cpu.c target/m68k: add M68K_FEATURE_UNALIGNED_DATA feature 2021-03-11 21:12:32 +01:00
cpu.h target/m68k: add M68K_FEATURE_UNALIGNED_DATA feature 2021-03-11 21:12:32 +01:00
fpu_helper.c target/m68k: Add vmstate definition for M68kCPU 2020-12-12 18:12:39 +01:00
gdbstub.c
helper.c target/m68k: Drop use of gdb_get_float64() and ldfq_p() 2021-02-15 09:38:40 +00:00
helper.h
m68k-semi.c gdbstub: drop CPUEnv from gdb_exit() 2021-01-18 10:05:06 +00:00
meson.build
monitor.c hmp: Pass monitor to mon_get_cpu_env() 2020-11-13 12:45:51 +00:00
op_helper.c target/m68k: add M68K_FEATURE_UNALIGNED_DATA feature 2021-03-11 21:12:32 +01:00
qregs.def
softfloat_fpsp_tables.h
softfloat.c
softfloat.h
translate.c target/m68k: implement rtr instruction 2021-03-11 21:12:32 +01:00