Bug 504273
Summary: | qemu-system-ppc on ppc host fails with "no opcode defined" | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Roman Rakus <rrakus> | ||||
Component: | qemu | Assignee: | Glauber Costa <gcosta> | ||||
Status: | CLOSED NEXTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | low | ||||||
Version: | 11 | CC: | dwmw2, gcosta, itamar, markmc, plroskin, rjones, tsmetana, virt-maint | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | ppc | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | 0.10.5-3.fc11 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2009-06-19 13:43:29 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 480594 | ||||||
Attachments: |
|
Description
Roman Rakus
2009-06-05 11:27:00 UTC
Thanks Roman I assume this is qemu-system-ppc-0.10.5-2.fc11.ppc ? Quoting what Pavel said in bug #494075: Note that the "WARNING" is absent on x86_64. I believe it means that no opcodes are known to the emulator. The invalid opcode is found at the position 0xfffffffc, which is the start address for PowerPC. It comes from the .romentry section. Disassembling openbios-ppc with objdump gives: fffffffc <.romentry>: fffffffc: 4b f0 23 7d bl 0xfff02378 Thus, 4b f0 23 7d is a valid instruction, but qemu-system-ppc fails to interpret it. Could you try debugging target-ppc/translate_init.c:create_ppc_opcodes() ? it should be filling the opcode table. Note opc_start and opc_end come from these macros: target-ppc/translate.c:700:GEN_OPCODE_MARK(start); target-ppc/translate.c:8036:GEN_OPCODE_MARK(end); I can reproduce the problem on qemu 0.10.5 without any Fedora patches. However, the problem (the "WARNING" line) goes away if I compile ppc-softmmu/translate.c without optimization. Still, qemu reports invalid opcodes: $ ppc-softmmu/qemu-system-ppc -cdrom /dev/null invalid/unsupported opcode: 00 - 18 - 01 (00004070) 00000004 1 invalid/unsupported opcode: 00 - 04 - 17 (000095c8) 000095ec 0 The same happens with real ISO images as well. The same happens if the whole source is compiled without optimization. Created attachment 346798 [details]
patch, extracted from qemu git
This patch helps with the "WARNING". The invalid opcodes remain.
The current git version of qemu is booting to the openbios prompt. So there might be another ppc fix to be backported. Thanks Pavel - we'll pull that patch into the next F-11 update (In reply to comment #2) > $ ppc-softmmu/qemu-system-ppc -cdrom /dev/null > invalid/unsupported opcode: 00 - 18 - 01 (00004070) 00000004 1 > invalid/unsupported opcode: 00 - 04 - 17 (000095c8) 000095ec 0 Hmm, is this using the openbios-ppc from qemu.git ? Maybe try with -L /usr/share/qemu ? No, it's qemu 0.10.5 compiled without optimization. I copied the openbios files to the directory where qemu was looking for them, so it shouldn't be an issue. Okay, very strange - they're the exact same errors you resolved in bug #494075 No I have updated to qemu-system-ppc-0.10.50-5.kvm86.fc12.ppc and problem is away... qemu-0.10.5-3.fc11 has been submitted as an update for Fedora 11. http://admin.fedoraproject.org/updates/qemu-0.10.5-3.fc11 qemu-0.10.5-3.fc11 has been pushed to the Fedora 11 stable repository. If problems still persist, please make note of it in this bug report. |