--- nono/lib/branchhistory.h 2026/04/29 17:04:37 1.1.1.2 +++ nono/lib/branchhistory.h 2026/04/29 17:04:40 1.1.1.3 @@ -40,9 +40,12 @@ class BranchHistory : public Object BranchHistory(); virtual ~BranchHistory() override; + // 初期化 + void Clear(); + // エントリを追加。 // エントリを返す。 - const BranchEntry& AddEntry(uint32 from, uint32 to, uint64 inst) { + const BranchEntry& AddEntry(uint32 from, uint32 to, uint32 inst) { BranchEntry *e = &entry[top]; if (e->from == from && e->to == to) {