mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 06:43:53 -06:00
target: Use cpu_pointer_wrap_uint32 for 32-bit targets
M68K, MicroBlaze, OpenRISC, RX, TriCore and Xtensa are all 32-bit targets. AVR is more complicated, but using a 32-bit wrap preserves current behaviour. Cc: Michael Rolnik <mrolnik@gmail.com> Cc: Laurent Vivier <laurent@vivier.eu> Cc: Stafford Horne <shorne@gmail.com> Cc: Yoshinori Sato <ysato@users.sourceforge.jp> Cc: Max Filippov <jcmvbkbc@gmail.com> Tested-by Bastian Koppelmann <kbastian@mail.uni-paderborn.de> (tricore) Reviewed-by: Bastian Koppelmann <kbastian@mail.uni-paderborn.de> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Edgar E. Iglesias <edgar.iglesias@amd.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
a4027ed7d4
commit
981f2beb16
9 changed files with 19 additions and 0 deletions
|
@ -250,6 +250,12 @@ static const TCGCPUOps avr_tcg_ops = {
|
|||
.cpu_exec_reset = cpu_reset,
|
||||
.tlb_fill = avr_cpu_tlb_fill,
|
||||
.do_interrupt = avr_cpu_do_interrupt,
|
||||
/*
|
||||
* TODO: code and data wrapping are different, but for the most part
|
||||
* AVR only references bytes or aligned code fetches. But we use
|
||||
* non-aligned MO_16 accesses for stack push/pop.
|
||||
*/
|
||||
.pointer_wrap = cpu_pointer_wrap_uint32,
|
||||
};
|
||||
|
||||
static void avr_cpu_class_init(ObjectClass *oc, const void *data)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue