This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] sim: ft32: fix ft32_pc_get logic


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]