> +static void insert_branch(struct cpu_hw_events *cpuhw,
> + int index, u64 from, u64 to, int mispred)
Given that your previous patch made mispred a bool, this could take a
bool too. It could probably be an inline function as well.
> +{
> + cpuhw->bhrb_entries[index].from = from;
> + cpuhw->bhrb_entries[index].to = to;
> + cpuhw->bhrb_entries[index].mispred = mispred;
> + cpuhw->bhrb_entries[index].predicted = ~mispred;
> +}
> +
>
--
Regards,
Daniel
signature.asc
Description: This is a digitally signed message part
_______________________________________________ Linuxppc-dev mailing list [email protected] https://lists.ozlabs.org/listinfo/linuxppc-dev
