diff options
author | Mike Frysinger <vapier@gentoo.org> | 2015-04-13 01:54:33 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2015-04-13 01:54:33 -0400 |
commit | 65f9096890a7bd7a7ea2655dcfb0e0a2589a753b (patch) | |
tree | 5e7776aa2359c1402d4ec1db3be8e7196019c6ed /sim | |
parent | d34f5e83d404d28d6a264fb09ac3cec79bf7bead (diff) | |
download | gdb-65f9096890a7bd7a7ea2655dcfb0e0a2589a753b.zip gdb-65f9096890a7bd7a7ea2655dcfb0e0a2589a753b.tar.gz gdb-65f9096890a7bd7a7ea2655dcfb0e0a2589a753b.tar.bz2 |
sim: ft32: fix ft32_pc_get logic
Diffstat (limited to 'sim')
-rw-r--r-- | sim/ft32/ChangeLog | 4 | ||||
-rw-r--r-- | sim/ft32/interp.c | 2 |
2 files changed, 5 insertions, 1 deletions
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 <vapier@gentoo.org> + + * interp.c (ft32_pc_get): Return the pc value. + 2015-04-12 Mike Frysinger <vapier@gentoo.org> * 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 |