[Libre-soc-bugs] [Bug 409] New: deal with illegal instruction in simulator and hardware

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Wed Jul 1 14:27:37 BST 2020


https://bugs.libre-soc.org/show_bug.cgi?id=409

            Bug ID: 409
           Summary: deal with illegal instruction in simulator and
                    hardware
           Product: Libre-SOC's first SoC
           Version: unspecified
          Hardware: Other
                OS: Linux
            Status: CONFIRMED
          Severity: enhancement
          Priority: ---
         Component: Source Code
          Assignee: lkcl at lkcl.net
          Reporter: lkcl at lkcl.net
                CC: libre-soc-bugs at lists.libre-soc.org
   NLnet milestone: ---

from microwatt execute1.vhdl: illegal instructions need to generate a trap that
sets bit 44 in SRR1

this in both ISACaller and power_decoder2

exception := '1';
v.f.redirect_nia := std_logic_vector(to_unsigned(16#700#, 64));
-- Since we aren't doing Hypervisor emulation assist (0xe40) we
-- set bit 44 to indicate we have an illegal
ctrl_tmp.srr1(63 - 44) <= '1';
report "illegal";

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the libre-soc-bugs mailing list