summaryrefslogtreecommitdiff
path: root/src/arch/riscv/insts/static_inst.cc
blob: 8fc396d14dbf3f441388c723955b471748580015 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include "arch/riscv/insts/static_inst.hh"

#include "arch/riscv/types.hh"
#include "cpu/static_inst.hh"

namespace RiscvISA
{

void
RiscvMicroInst::advancePC(PCState &pcState) const
{
    if (flags[IsLastMicroop]) {
        pcState.uEnd();
    } else {
        pcState.uAdvance();
    }
}

} // namespace RiscvISA