From: Mike Frysinger Date: Mon, 13 Apr 2015 05:54:33 +0000 (-0400) Subject: sim: ft32: fix ft32_pc_get logic X-Git-Tag: gdb-7.10-release~830 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=65f9096890a7bd7a7ea2655dcfb0e0a2589a753b;p=external%2Fbinutils.git sim: ft32: fix ft32_pc_get logic --- diff --git a/sim/ft32/ChangeLog b/sim/ft32/ChangeLog index 5caf31a..2ae6060 100644 --- a/sim/ft32/ChangeLog +++ b/sim/ft32/ChangeLog @@ -1,3 +1,7 @@ +2015-04-13 Mike Frysinger + + * interp.c (ft32_pc_get): Return the pc value. + 2015-04-12 Mike Frysinger * interp.c (sim_read, sim_write): Delete. diff --git a/sim/ft32/interp.c b/sim/ft32/interp.c index 0666f6c..8306a75 100644 --- a/sim/ft32/interp.c +++ b/sim/ft32/interp.c @@ -758,7 +758,7 @@ ft32_reg_fetch (SIM_CPU *cpu, static sim_cia ft32_pc_get (SIM_CPU *cpu) { - return 32; + return cpu->state.pc; } static void