qemu-e2k/linux-user/arm
Peter Maydell 579648554a linux-user/arm/nwfpe: Check coprocessor number for FPA emulation
Our copy of the nwfpe code for emulating of the old FPA11 floating
point unit doesn't check the coprocessor number in the instruction
when it emulates it.  This means that we might treat some
instructions which should really UNDEF as being FPA11 instructions by
accident.

The kernel's copy of the nwfpe code doesn't make this error; I suspect
the bug was noticed and fixed as part of the process of mainlining
the nwfpe code more than a decade ago.

Add a check that the coprocessor number (which is always in bits
[11:8] of the instruction) is either 1 or 2, which is where the
FPA11 lives.

Reported-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2018-01-11 13:25:39 +00:00
..
nwfpe linux-user/arm/nwfpe: Check coprocessor number for FPA emulation 2018-01-11 13:25:39 +00:00
syscall_nr.h Add missing syscall nrs. according to more recent Linux kernels 2016-01-11 11:39:28 +03:00
target_cpu.h linux-user: Tidy and enforce reserved_va initialization 2017-10-16 16:00:56 +03:00
target_signal.h linux-user: Clean up target_signal.h header guards 2016-07-12 16:19:16 +02:00
target_structs.h linux-user: Clean up target_structs.h header guards 2016-07-12 16:19:16 +02:00
target_syscall.h linux-user: fix TARGET_NR_select 2016-09-22 07:24:21 +03:00
termbits.h