OSDN Git Service

target/hppa: Fix fid instruction emulation
authorHelge Deller <deller@gmx.de>
Thu, 27 Oct 2022 17:03:05 +0000 (19:03 +0200)
committerHelge Deller <deller@gmx.de>
Mon, 19 Dec 2022 22:14:06 +0000 (23:14 +0100)
commit59f8c04b222ff4b9f3799fe92a7e5d427ae48197
tree6c3701c1decb79182a125ef244b73abf6a811c1c
parent0786a3b6051ed081ddaa8dfe1c1e13ce0cfabc4a
target/hppa: Fix fid instruction emulation

The fid instruction (Floating-Point Identify) puts the FPU model and
revision into the Status Register. Since those values shouldn't be 0,
store values there which a PCX-L2 (for 32-bit) or a PCX-W2 (for 64-bit)
would return. Noticed while trying to install MPE/iX.

Signed-off-by: Helge Deller <deller@gmx.de>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
target/hppa/insns.decode
target/hppa/translate.c