mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
buildroot: add workaround for weird initial MSTATUS state
This commit is contained in:
parent
44da1488ff
commit
cd7ea29ce6
@ -299,6 +299,7 @@ module testbench_busybear();
|
|||||||
`ERROR \
|
`ERROR \
|
||||||
end \
|
end \
|
||||||
end else begin \
|
end else begin \
|
||||||
|
if (!(`BUILDROOT == 1 && "MSTATUS" == `"CSR`")) begin \
|
||||||
for(integer j=0; j<totalCSR; j++) begin \
|
for(integer j=0; j<totalCSR; j++) begin \
|
||||||
if(!StartCSRname[j].icompare(`"CSR`")) begin \
|
if(!StartCSRname[j].icompare(`"CSR`")) begin \
|
||||||
if(``PATH``.``CSR``_REGW != StartCSRexpected[j]) begin \
|
if(``PATH``.``CSR``_REGW != StartCSRexpected[j]) begin \
|
||||||
@ -308,6 +309,7 @@ module testbench_busybear();
|
|||||||
end \
|
end \
|
||||||
end \
|
end \
|
||||||
end \
|
end \
|
||||||
|
end \
|
||||||
end
|
end
|
||||||
`define CHECK_CSR(CSR) \
|
`define CHECK_CSR(CSR) \
|
||||||
`CHECK_CSR2(CSR, dut.hart.priv.csr)
|
`CHECK_CSR2(CSR, dut.hart.priv.csr)
|
||||||
|
Loading…
Reference in New Issue
Block a user