Remove commented-out code.
Enable building with open-source BSC. Resolve a couple issues brought up by Jess. Remove a stray space (as noted by Jess).
This commit is contained in:
@@ -690,11 +690,10 @@ module mkFetchStage(FetchStage);
|
||||
|
||||
// do decode and branch prediction
|
||||
// Drop here if does not match the decode_epoch.
|
||||
|
||||
// We predicted a taken branch for PC, but this is an
|
||||
// uncompressed instruction, so we redirect to this PC and
|
||||
// train it to fetch the other half in future.
|
||||
if (in.decode_epoch == decode_epoch_local && in.mispred_first_half) begin
|
||||
// We predicted a taken branch for PC, but this is an
|
||||
// uncompressed instruction, so we redirect to this PC and
|
||||
// train it to fetch the other half in future.
|
||||
if (verbose) $display("mispredicted first half in decode: pc : %h", pc);
|
||||
decode_epoch_local = !decode_epoch_local;
|
||||
redirectPc = Valid (pc); // record redirect to the first PC in this bundle.
|
||||
|
||||
@@ -165,22 +165,17 @@ module mkIndexedMultisetQueue(IndexedMultiset#(Bit#(idxTSz), datT, remWidth))
|
||||
Bit#(TAdd#(idxTSz,1)) nlhead = lhead;
|
||||
Bit#(TAdd#(idxTSz,1)) nltail = ltail;
|
||||
if (insertW.wget matches tagged Valid .d) begin
|
||||
$display("insert dat:%x nlhead:%d", {pack(d),12'b0}, nlhead);
|
||||
idxT i = truncate(nlhead);
|
||||
recs[i] = d;
|
||||
nlhead = nlhead + 1;
|
||||
end
|
||||
if (reserveW.wget matches tagged Valid .d) begin
|
||||
$display("reserve dat:%x nlhead:%d", {pack(d),12'b0}, nlhead);
|
||||
idxT i = truncate(nlhead);
|
||||
recs[i] = d;
|
||||
//nlhead = nlhead + 1;
|
||||
end
|
||||
for (Integer i = 0; i < valueOf(remWidth); i = i + 1)
|
||||
if (removeW[i].wget matches tagged Valid .r) begin
|
||||
$display("remove[%d] idx:%d", i, r);
|
||||
if (removeW[i].wget matches tagged Valid .r)
|
||||
nltail = updateWidePointer(nltail, r);
|
||||
end
|
||||
if (clearW) begin
|
||||
nlhead = 0;
|
||||
nltail = 0;
|
||||
@@ -188,7 +183,6 @@ module mkIndexedMultisetQueue(IndexedMultiset#(Bit#(idxTSz), datT, remWidth))
|
||||
lhead <= nlhead;
|
||||
ltail <= nltail;
|
||||
writeVReg(records, recs);
|
||||
$display("full:%x ltail:%d lhead:%d level:%d", full, ltail, lhead, level);
|
||||
endrule
|
||||
|
||||
Vector#(remWidth, IndexedMultisetRemoveIfc#(idxT)) removes;
|
||||
@@ -210,11 +204,10 @@ module mkIndexedMultisetQueue(IndexedMultiset#(Bit#(idxTSz), datT, remWidth))
|
||||
if (recsRead[head - 1]!=ins) begin
|
||||
insIdx = head;
|
||||
insertW.wset(ins); // Increment head.
|
||||
resIdx = head; // new default for reserved.
|
||||
if (res!=ins) begin
|
||||
resIdx = head + 1;
|
||||
reserveW.wset(res); // Increment head again!
|
||||
end
|
||||
end else resIdx = head;
|
||||
end else if (recsRead[head - 1]!=res) begin
|
||||
resIdx = head;
|
||||
reserveW.wset(res);
|
||||
|
||||
Reference in New Issue
Block a user