Fixed a Tandem Verification trace generation bug for FMV.X.F and FMV.X.D
We were reporting the incremental value of fflags (=0) instead of the final value of fflags (same as pre-value, which may not be 0).
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2013-2019 Bluespec, Inc. All Rights Reserved
|
||||
// Copyright (c) 2013-2020 Bluespec, Inc. All Rights Reserved
|
||||
|
||||
// ================================================================
|
||||
// ISA defs for UC Berkeley RISC V
|
||||
@@ -361,6 +361,20 @@ RegName reg_s10 = 26; RegName reg_s11 = 27;
|
||||
|
||||
RegName reg_t3 = 28; RegName reg_t4 = 29; RegName reg_t5 = 30; RegName reg_t6 = 31;
|
||||
|
||||
// ----------------
|
||||
// Is 'r' a standard register for PC save/restore on call/return?
|
||||
// This function is used in branch-predictors for managing the return-address stack.
|
||||
|
||||
function Bool fn_reg_is_link (RegName r);
|
||||
return ((r == x1) || (r == x5));
|
||||
endfunction
|
||||
|
||||
// ================================================================
|
||||
// Kinds of memory access (excluding AMOs)
|
||||
|
||||
typedef enum { Access_RWX_R, Access_RWX_W, Access_RWX_X } Access_RWX
|
||||
deriving (Eq, Bits, FShow);
|
||||
|
||||
// ================================================================
|
||||
// Data sizes for LOAD/STORE
|
||||
|
||||
|
||||
@@ -301,9 +301,9 @@ function Trace_Data mkTrace_RET (WordXL pc, ISize isize, Bit #(32) instr, Priv_M
|
||||
endfunction
|
||||
|
||||
// CSRRX
|
||||
// op pc instr_sz instr rd word1 word2 word3 word4 word5
|
||||
// x x x x x rdval mstatus_valid csraddr csrval mstatus
|
||||
// csrvalid
|
||||
// op pc instr_sz instr rd word1 word2 word3 word4 word5
|
||||
// x x x x x rdval [1] mstatus_valid csraddr csrval mstatus
|
||||
// [0] csrvalid
|
||||
function Trace_Data mkTrace_CSRRX (WordXL pc, ISize isize, Bit #(32) instr,
|
||||
RegName rd, WordXL rdval,
|
||||
Bool csrvalid, CSR_Addr csraddr, WordXL csrval,
|
||||
|
||||
Reference in New Issue
Block a user