qemu-e2k/target/ppc/translate
Matheus Ferst 2d1154bd95 target/ppc: Ease L=0 requirement on cmp/cmpi/cmpl/cmpli for ppc32
In commit 8f0a4b6a9b, we started to require L=0 for ppc32 to match what
The Programming Environments Manual say:

"For 32-bit implementations, the L field must be cleared, otherwise
the instruction form is invalid."

The stricter behavior, however, broke AROS boot on sam460ex, which is a
regression from 6.0. This patch partially reverts the change, raising
the exception only for CPUs known to require L=0 (e500 and e500mc) and
logging a guest error for other cases.

Both behaviors are acceptable by the PowerISA, which allows "the system
illegal instruction error handler to be invoked or yield boundedly
undefined results."

Reported-by: BALATON Zoltan <balaton@eik.bme.hu>
Fixes: 8f0a4b6a9b ("target/ppc: Move cmp/cmpi/cmpl/cmpli to decodetree")
Tested-by: BALATON Zoltan <balaton@eik.bme.hu>
Signed-off-by: Matheus Ferst <matheus.ferst@eldorado.org.br>
Message-Id: <20210720135507.2444635-1-matheus.ferst@eldorado.org.br>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2021-07-29 10:59:49 +10:00
..
dfp-impl.c.inc meson: rename included C source files to .c.inc 2020-08-21 06:18:30 -04:00
dfp-ops.c.inc meson: rename included C source files to .c.inc 2020-08-21 06:18:30 -04:00
fixedpoint-impl.c.inc target/ppc: Ease L=0 requirement on cmp/cmpi/cmpl/cmpli for ppc32 2021-07-29 10:59:49 +10:00
fp-impl.c.inc meson: rename included C source files to .c.inc 2020-08-21 06:18:30 -04:00
fp-ops.c.inc meson: rename included C source files to .c.inc 2020-08-21 06:18:30 -04:00
spe-impl.c.inc ppc patch queue 2020-08-18 2020-08-24 09:35:21 +01:00
spe-ops.c.inc meson: rename included C source files to .c.inc 2020-08-21 06:18:30 -04:00
vector-impl.c.inc target/ppc: Implement vcfuged instruction 2021-06-03 18:10:31 +10:00
vmx-impl.c.inc ppc patch queue 2020-08-18 2020-08-24 09:35:21 +01:00
vmx-ops.c.inc ppc patch queue 2020-08-18 2020-08-24 09:35:21 +01:00
vsx-impl.c.inc target/ppc: Fix load endianness for lxvwsx/lxvdsx 2021-05-19 10:44:04 +10:00
vsx-ops.c.inc ppc/translate: Implement lxvwsx opcode 2020-11-24 11:34:18 +11:00