diff options
author | Helge Deller <deller@gmx.de> | 2022-10-27 19:03:05 +0200 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2022-12-19 23:14:06 +0100 |
commit | 59f8c04b222ff4b9f3799fe92a7e5d427ae48197 (patch) | |
tree | 6c3701c1decb79182a125ef244b73abf6a811c1c /target/hppa/insns.decode | |
parent | 0786a3b6051ed081ddaa8dfe1c1e13ce0cfabc4a (diff) | |
download | qemu-59f8c04b222ff4b9f3799fe92a7e5d427ae48197.zip qemu-59f8c04b222ff4b9f3799fe92a7e5d427ae48197.tar.gz qemu-59f8c04b222ff4b9f3799fe92a7e5d427ae48197.tar.bz2 |
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>
Diffstat (limited to 'target/hppa/insns.decode')
-rw-r--r-- | target/hppa/insns.decode | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/target/hppa/insns.decode b/target/hppa/insns.decode index c7a7e99..27341d2 100644 --- a/target/hppa/insns.decode +++ b/target/hppa/insns.decode @@ -388,10 +388,7 @@ fmpyfadd_d 101110 rm1:5 rm2:5 ... 0 1 ..0 0 0 neg:1 t:5 ra3=%rc32 # Floating point class 0 -# FID. With r = t = 0, which via fcpy puts 0 into fr0. -# This is machine/revision = 0, which is reserved for simulator. -fcpy_f 001100 00000 00000 00000 000000 00000 \ - &fclass01 r=0 t=0 +fid_f 001100 00000 00000 000 00 000000 00000 fcpy_f 001100 ..... ..... 010 00 ...... ..... @f0c_0 fabs_f 001100 ..... ..... 011 00 ...... ..... @f0c_0 |