LAB2 Build Fail Error #33
Labels
bug
Internal compiler error in HazardFlow
homework - branch-predictor
Assignment 2: Branch Predictor
question
Further information is requested
Fail Case 1 (using foreign crate)
In the implementation of bht and btb, I've used
clog2
function in order to calculate bit width corresponding toBHT_ENTRIES
orBTB_ENTRIES
.However, it caused error like below.
So I suspect that using foreign function like
clog2
should be refrained.Fail Case 2 (return statement)
If we end up function with return statement without any condition, then it raise build error as below.
So, we should also refrain from using pure return statement.
ex.
return x;
->x
Fail Case 3 (into trait)
I tried to add
pc
andimm
whose types areu32
andU<N>
.So, I tried to change the type of
imm
intou32
by using.into()
. But I suspect that compiler prohibited using into trait.Therefore, finally I've used
from
trait instead.The text was updated successfully, but these errors were encountered: