RTEMS | cpukit/score/cpu/microblaze: Use a reserved opcode (!1577)
Aaditya Agarwal (@aaditya8979)
gitlab at rtems.org
Wed Nov 11 08:53:04 UTC 2026
Aaditya Agarwal created a merge request: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1577
Project:Branches: aaditya8979/rtems:fix-5759 to rtems/rtos/rtems:main
Author: Aaditya Agarwal
_CPU_Instruction_illegal() emitted `.word 0x0`. Major opcode 0 is `add`, so the word is `add r0, r0, r0` and retires without an exception unless the core is synthesized with `C_OPCODE_0x0_ILLEGAL`. Both this option and `C_ILL_OPCODE_EXCEPTION` are synthesis options of the soft core, and QEMU defaults both to false.
Use major opcode 0x3f (`0xfc000000`), which is unallocated in the MicroBlaze architecture. An invalid major opcode requires only `C_ILL_OPCODE_EXCEPTION` to raise an illegal opcode exception.
Closes #5759
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1577
You're receiving this email because of your account on gitlab.rtems.org. Unsubscribe from this thread: https://gitlab.rtems.org/-/namespace/49/sent_notifications/6-5wbwuhlwdufrb32b4slqotxad-1d/unsubscribe | Manage all notifications: https://gitlab.rtems.org/-/profile/notifications | Help: https://gitlab.rtems.org/help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20261111/4c4816b9/attachment.htm>
More information about the bugs
mailing list