qemu-e2k/linux-user/arm/nwfpe
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
..
double_cpdo.c linux-user: Clean up includes 2016-01-29 15:07:22 +00:00
extended_cpdo.c linux-user: Clean up includes 2016-01-29 15:07:22 +00:00
fpa11_cpdo.c linux-user: Clean up includes 2016-01-29 15:07:22 +00:00
fpa11_cpdt.c linux-user: Clean up includes 2016-01-29 15:07:22 +00:00
fpa11_cprt.c linux-user: Clean up includes 2016-01-29 15:07:22 +00:00
fpa11.c linux-user/arm/nwfpe: Check coprocessor number for FPA emulation 2018-01-11 13:25:39 +00:00
fpa11.h Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00
fpa11.inl
fpopcode.c linux-user: Clean up includes 2016-01-29 15:07:22 +00:00
fpopcode.h Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00
fpsr.h Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00
Makefile.objs build: move *-user/ objects to nested Makefile.objs 2012-06-07 07:17:33 +02:00
single_cpdo.c linux-user: Clean up includes 2016-01-29 15:07:22 +00:00