tests,misc: Fix compilation tests failures (#400)

Exposed in our failing compiler tests:
https://github.com/gem5/gem5/actions/runs/6348223508, this PR:

* Adds missing overrides to `PCState`'s `set` function.
* Removes `std::binary_function` from DramPower (it was deprecated in
CPP-11 and officially removed in CPP-17).
This commit is contained in:
Bobby R. Bruce
2023-10-09 11:20:52 -07:00
committed by GitHub
4 changed files with 5 additions and 6 deletions

View File

@@ -92,7 +92,7 @@ class PCState : public GenericISA::UPCState<4>
public:
void
set(Addr val)
set(Addr val) override
{
Base::set(val);
npc(val + (thumb() ? 2 : 4));

View File

@@ -489,7 +489,7 @@ class DelaySlotPCState : public SimplePCState<InstWidth>
void nnpc(Addr val) { _nnpc = val; }
void
set(Addr val)
set(Addr val) override
{
Base::set(val);
nnpc(val + 2 * InstWidth);
@@ -563,7 +563,7 @@ class DelaySlotUPCState : public DelaySlotPCState<InstWidth>
}
void
set(Addr val)
set(Addr val) override
{
Base::set(val);
this->upc(0);

View File

@@ -66,7 +66,7 @@ class PCState : public GenericISA::UPCState<8>
}
void
set(Addr val)
set(Addr val) override
{
Base::set(val);
_size = 0;