We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a40e352 commit 098e09eCopy full SHA for 098e09e
target/arc/cpu.c
@@ -81,6 +81,13 @@ static void arc_cpu_set_pc(CPUState *cs, vaddr value)
81
cpu->env.pc = value;
82
}
83
84
+static vaddr arc_cpu_get_pc(CPUState *cs)
85
+{
86
+ ARCCPU *cpu = ARC_CPU(cs);
87
+
88
+ return cpu->env.pc;
89
+}
90
91
static bool arc_cpu_has_work(CPUState *cs)
92
{
93
ARCCPU *cpu = ARC_CPU(cs);
@@ -436,6 +443,7 @@ static void arc_cpu_class_init(ObjectClass *oc, void *data)
436
443
cc->has_work = arc_cpu_has_work;
437
444
cc->dump_state = arc_cpu_dump_state;
438
445
cc->set_pc = arc_cpu_set_pc;
446
+ cc->get_pc = arc_cpu_get_pc;
439
447
cc->disas_set_info = arc_cpu_disas_set_info;
440
448
cc->gdb_arch_name = arc_gdb_arch_name;
441
449
cc->tcg_ops = &arc_tcg_ops;
0 commit comments