[Libre-soc-bugs] [Bug 509] divwe. causing assertion failure in handle_comparison

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Sun Oct 4 15:33:35 BST 2020


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

Luke Kenneth Casson Leighton <lkcl at lkcl.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|lkcl at lkcl.net               |programmerjake at gmail.com

--- Comment #3 from Luke Kenneth Casson Leighton <lkcl at lkcl.net> ---
jacob can you take care of this one, so i can concentrate on the layout?

overflow is detected and added to the list of write_regs here:

https://git.libre-soc.org/?p=soc.git;a=blob;f=src/soc/decoder/pseudo/parser.py;h=34c8aae8074dec61771d48d94d66fe88c31e6263;hb=4d4d7dcd00a6d40a297ae7f9a85931a8992293c5#l680

however in the op_divwe_ pseudocode, "overflow" as a reg occurs *before*
RT appears.

this is "solved" - post-parsing- by re-ordering write_regs either in parser.py,
or pywriter.py or even in create_args() back in pseudo/isa/caller.py

whatever "bad hack" gets things going is what's needed.

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


More information about the libre-soc-bugs mailing list