X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=sim%2Fcommon%2Fsim-run.c;h=9bc6139cb5b3d12e265dd9df43be803f8bc74d36;hb=a435742a7fb32f6320ce0e6074e2500e28378104;hp=1a89a53d48167774a3ee3ad3423faa53995b9e8a;hpb=4744ac1bb0d2f2294c7762577262fdcafb67883b;p=deliverable%2Fbinutils-gdb.git diff --git a/sim/common/sim-run.c b/sim/common/sim-run.c index 1a89a53d48..9bc6139cb5 100644 --- a/sim/common/sim-run.c +++ b/sim/common/sim-run.c @@ -1,5 +1,5 @@ /* Generic simulator run. - Copyright (C) 1997, 2007 Free Software Foundation, Inc. + Copyright (C) 1997-2020 Free Software Foundation, Inc. Contributed by Cygnus Support. This file is part of GDB, the GNU debugger. @@ -35,7 +35,7 @@ sim_engine_run (SIM_DESC sd, sim_cpu *cpu; SIM_ASSERT (STATE_MAGIC (sd) == SIM_MAGIC_NUMBER); cpu = STATE_CPU (sd, 0); - cia = CIA_GET (cpu); + cia = CPU_PC_GET (cpu); while (1) { instruction_word insn = IMEM32 (cia); @@ -43,7 +43,7 @@ sim_engine_run (SIM_DESC sd, /* process any events */ if (sim_events_tick (sd)) { - CIA_SET (cpu, cia); + CPU_PC_SET (cpu, cia); sim_events_process (sd); } }