This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH] sim: ft32: fix ft32_pc_get logic
- From: Mike Frysinger <vapier at gentoo dot org>
- To: gdb-patches at sourceware dot org
- Date: Mon, 13 Apr 2015 02:02:00 -0400
- Subject: [PATCH] sim: ft32: fix ft32_pc_get logic
- Authentication-results: sourceware.org; auth=none
Committed.
---
sim/ft32/ChangeLog | 4 ++++
sim/ft32/interp.c | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
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
--
2.3.5