Fix Toooba to use addresses instead of offsets (#32)
* Fixed the Decoding of (C)JAL * Use CSR addresses instead of offsets * Fixed offsets correctly * Fixed all offsets I could spot * Fix use of modifyOffset function * Corrected brAddrCalc function * Preliminary fix for ddc offsetting * Use setAddr instead of incOffset for DDC * Deleted unnecessarily added lines in ALU pipeline * Deleted white space * Switched off verbosity for ALU pipeline * Removed unnecessary print import
This commit is contained in:
@@ -92,7 +92,7 @@ function SCR unpackSCR(Bit#(5) addr);
|
||||
endfunction
|
||||
|
||||
function CapPipe update_scr_via_csr (CapPipe old_scr, WordXL new_csr, Bool allow_sealed);
|
||||
let new_scr = setOffset(old_scr, new_csr);
|
||||
let new_scr = setAddr(old_scr, new_csr);
|
||||
let ret = new_scr.value;
|
||||
if (!new_scr.exact || (getKind(old_scr) != UNSEALED && !allow_sealed)) begin
|
||||
ret = setValidCap(ret, False);
|
||||
|
||||
Reference in New Issue
Block a user