aboutsummaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-04-13 01:54:33 -0400
committerMike Frysinger <vapier@gentoo.org>2015-04-13 01:54:33 -0400
commit65f9096890a7bd7a7ea2655dcfb0e0a2589a753b (patch)
tree5e7776aa2359c1402d4ec1db3be8e7196019c6ed /sim
parentd34f5e83d404d28d6a264fb09ac3cec79bf7bead (diff)
downloadfsf-binutils-gdb-65f9096890a7bd7a7ea2655dcfb0e0a2589a753b.zip
fsf-binutils-gdb-65f9096890a7bd7a7ea2655dcfb0e0a2589a753b.tar.gz
fsf-binutils-gdb-65f9096890a7bd7a7ea2655dcfb0e0a2589a753b.tar.bz2
sim: ft32: fix ft32_pc_get logic
Diffstat (limited to 'sim')
-rw-r--r--sim/ft32/ChangeLog4
-rw-r--r--sim/ft32/interp.c2
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