qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [qemu/qemu] 0786a3: target/hppa: Generate illegal instruc


From: Peter Maydell
Subject: [Qemu-commits] [qemu/qemu] 0786a3: target/hppa: Generate illegal instruction exceptio...
Date: Tue, 20 Dec 2022 07:32:57 -0800

  Branch: refs/heads/staging
  Home:   https://github.com/qemu/qemu
  Commit: 0786a3b6051ed081ddaa8dfe1c1e13ce0cfabc4a
      
https://github.com/qemu/qemu/commit/0786a3b6051ed081ddaa8dfe1c1e13ce0cfabc4a
  Author: Helge Deller <deller@gmx.de>
  Date:   2022-12-19 (Mon, 19 Dec 2022)

  Changed paths:
    M target/hppa/translate.c

  Log Message:
  -----------
  target/hppa: Generate illegal instruction exception for 64-bit instructions

Qemu currently emulates a 32-bit CPU only, and crashes with this error
when it faces a 64-bit load (e.g.  "ldd 0(r26),r0") or a 64-bit store
(e.g. "std r26,0(r26)") instruction in the guest:

ERROR:../qemu/tcg/tcg-op.c:2822:tcg_canonicalize_memop: code should not be 
reached

Add checks for 64-bit sizes and generate an illegal instruction
exception if necessary.

Signed-off-by: Helge Deller <deller@gmx.de>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>


  Commit: 59f8c04b222ff4b9f3799fe92a7e5d427ae48197
      
https://github.com/qemu/qemu/commit/59f8c04b222ff4b9f3799fe92a7e5d427ae48197
  Author: Helge Deller <deller@gmx.de>
  Date:   2022-12-19 (Mon, 19 Dec 2022)

  Changed paths:
    M target/hppa/insns.decode
    M target/hppa/translate.c

  Log Message:
  -----------
  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>


  Commit: 8540a1f69578afb3b37866b1ce5bec46a9f6efbc
      
https://github.com/qemu/qemu/commit/8540a1f69578afb3b37866b1ce5bec46a9f6efbc
  Author: Peter Maydell <peter.maydell@linaro.org>
  Date:   2022-12-20 (Tue, 20 Dec 2022)

  Changed paths:
    M target/hppa/insns.decode
    M target/hppa/translate.c

  Log Message:
  -----------
  Merge tag 'hppa-fixes-pull-request' of https://github.com/hdeller/qemu-hppa 
into staging

target/hppa patches

# gpg: Signature made Mon 19 Dec 2022 22:27:31 GMT
# gpg:                using EDDSA key BCE9123E1AD29F07C049BBDEF712B510A23A0F5F
# gpg: Good signature from "Helge Deller <deller@gmx.de>" [unknown]
# gpg:                 aka "Helge Deller <deller@kernel.org>" [unknown]
# gpg: WARNING: This key is not certified with a trusted signature!
# gpg:          There is no indication that the signature belongs to the owner.
# Primary key fingerprint: 4544 8228 2CD9 10DB EF3D  25F8 3E5F 3D04 A7A2 4603
#      Subkey fingerprint: BCE9 123E 1AD2 9F07 C049  BBDE F712 B510 A23A 0F5F

* tag 'hppa-fixes-pull-request' of https://github.com/hdeller/qemu-hppa:
  target/hppa: Fix fid instruction emulation
  target/hppa: Generate illegal instruction exception for 64-bit instructions

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>


Compare: https://github.com/qemu/qemu/compare/a064d5841032...8540a1f69578



reply via email to

[Prev in Thread] Current Thread [Next in Thread]