[Libre-soc-isa] [Bug 766] Justify log2 addition as helper for pseudo-code

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Tue Jan 18 18:23:22 GMT 2022


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

Jacob Lifshay <programmerjake at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |WORKSFORME
             Status|CONFIRMED                   |RESOLVED

--- Comment #1 from Jacob Lifshay <programmerjake at gmail.com> ---
Well, log2 is already used in the OpenPower ISA v3.1 specification, in the dcbz
instruction's pseudo-code (ignore messy character set, I'm too lazy to fix it
rn):
if RA = 0 then b  0
else b  (RA)
EA  b + (RB)
n  block size (bytes)
m  log2(n)
ea  EA0:63-m || m0
MEM(ea, n)  n0x00

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


More information about the Libre-SOC-ISA mailing list