]> git.proxmox.com Git - mirror_qemu.git/commit - target/hppa/op_helper.c
target/hppa: Allow, but diagnose, LDCW aligned only mod 4
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 17 Jan 2020 01:46:38 +0000 (15:46 -1000)
committerRichard Henderson <richard.henderson@linaro.org>
Mon, 27 Jan 2020 18:49:51 +0000 (10:49 -0800)
commitb1af755c33bf0d690553a5ccd93689dfd15a98e8
tree80c91a18bf947821d1d6dbeb04fab63942a45ce2
parent4debfdac03babcf858fb45204157a05236635a21
target/hppa: Allow, but diagnose, LDCW aligned only mod 4

The PA-RISC 1.1 specification says that LDCW must be aligned mod 16
or the operation is undefined.  However, real hardware only generates
an unaligned access trap for unaligned mod 4.

Match real hardware, but diagnose with GUEST_ERROR a violation of
the specification.

At the same time fix a bug in the initialization of mop, where the
size was specified twice, and another to free the zero temporary.

Tested-by: Helge Deller <deller@gmx.de>
Reported-by: Helge Deller <deller@gmx.de>
Suggested-by: John David Anglin <dave.anglin@bell.net>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
target/hppa/helper.h
target/hppa/op_helper.c
target/hppa/translate.c