Message ID | 00c96d447252bc1333e14e626611f4f5a58f9bf5.1434339500.git.crosthwaite.peter@gmail.com |
---|---|
State | New |
Headers | show |
diff --git a/gdbstub.c b/gdbstub.c index 75563db..ceb60ac 100644 --- a/gdbstub.c +++ b/gdbstub.c @@ -754,12 +754,9 @@ static void gdb_breakpoint_remove_all(void) static void gdb_set_cpu_pc(GDBState *s, target_ulong pc) { CPUState *cpu = s->c_cpu; - CPUClass *cc = CPU_GET_CLASS(cpu); cpu_synchronize_state(cpu); - if (cc->set_pc) { - cc->set_pc(cpu, pc); - } + cpu_set_pc(cpu, pc, NULL); } static CPUState *find_cpu(uint32_t thread_id)
Use the cpu_set_pc helper which will take care of CPUClass retrieval for us. Signed-off-by: Peter Crosthwaite <crosthwaite.peter@gmail.com> --- gdbstub.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)