summaryrefslogtreecommitdiff
path: root/src/arch/riscv/insts/static_inst.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/riscv/insts/static_inst.cc')
-rw-r--r--src/arch/riscv/insts/static_inst.cc19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/arch/riscv/insts/static_inst.cc b/src/arch/riscv/insts/static_inst.cc
new file mode 100644
index 000000000..8fc396d14
--- /dev/null
+++ b/src/arch/riscv/insts/static_inst.cc
@@ -0,0 +1,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 \ No newline at end of file