aboutsummaryrefslogtreecommitdiff
path: root/sim/common
diff options
context:
space:
mode:
authorKevin Buettner <kevinb@redhat.com>2012-03-29 00:57:19 +0000
committerKevin Buettner <kevinb@redhat.com>2012-03-29 00:57:19 +0000
commit2aaed97917d92e80a00b7fb9d160e2d13f1ae720 (patch)
treea05d69cab5edb7a5c0738eecda4460b372386f5c /sim/common
parent1c1b6f059a33df3da4f61b21f22c341658f06c27 (diff)
downloadfsf-binutils-gdb-2aaed97917d92e80a00b7fb9d160e2d13f1ae720.zip
fsf-binutils-gdb-2aaed97917d92e80a00b7fb9d160e2d13f1ae720.tar.gz
fsf-binutils-gdb-2aaed97917d92e80a00b7fb9d160e2d13f1ae720.tar.bz2
Commit gdb and sim support for v850e2 and v850e2v3 on behalf of
Rathish C <Rathish.C@kpitcummins.com>.
Diffstat (limited to 'sim/common')
-rw-r--r--sim/common/ChangeLog7
-rw-r--r--sim/common/sim-trace.c13
-rw-r--r--sim/common/sim-trace.h17
3 files changed, 25 insertions, 12 deletions
diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog
index 462fb61..8b906af 100644
--- a/sim/common/ChangeLog
+++ b/sim/common/ChangeLog
@@ -1,3 +1,10 @@
+2012-03-28 Rathish C <rathish.c@kpitcummins.com>
+
+ * sim-trace.c: Update the function prototype of save_data_size.
+ Move the enum data_fmt from here...
+ * sim-trace.h: ...to here.
+ Add function prototype of save_data.
+
2012-03-25 Mike Frysinger <vapier@gentoo.org>
* sim-core.h (sim_core_trans_addr): Add prototype.
diff --git a/sim/common/sim-trace.c b/sim/common/sim-trace.c
index fc20d00..6b5d067 100644
--- a/sim/common/sim-trace.c
+++ b/sim/common/sim-trace.c
@@ -497,17 +497,6 @@ trace_uninstall (SIM_DESC sd)
}
}
-typedef enum {
- trace_fmt_invalid,
- trace_fmt_word,
- trace_fmt_fp,
- trace_fmt_fpu,
- trace_fmt_string,
- trace_fmt_bool,
- trace_fmt_addr,
- trace_fmt_instruction_incomplete,
-} data_fmt;
-
/* compute the nr of trace data units consumed by data */
static int
save_data_size (TRACE_DATA *data,
@@ -519,7 +508,7 @@ save_data_size (TRACE_DATA *data,
/* Archive DATA into the trace buffer */
-static void
+void
save_data (SIM_DESC sd,
TRACE_DATA *data,
data_fmt fmt,
diff --git a/sim/common/sim-trace.h b/sim/common/sim-trace.h
index e824fc3..1ba6019 100644
--- a/sim/common/sim-trace.h
+++ b/sim/common/sim-trace.h
@@ -249,9 +249,26 @@ extern void trace_generic PARAMS ((SIM_DESC sd,
...))
__attribute__((format (printf, 4, 5)));
+typedef enum {
+ trace_fmt_invalid,
+ trace_fmt_word,
+ trace_fmt_fp,
+ trace_fmt_fpu,
+ trace_fmt_string,
+ trace_fmt_bool,
+ trace_fmt_addr,
+ trace_fmt_instruction_incomplete,
+} data_fmt;
+
/* Trace a varying number of word sized inputs/outputs. trace_result*
must be called to close the trace operation. */
+extern void save_data PARAMS ((SIM_DESC sd,
+ TRACE_DATA *data,
+ data_fmt fmt,
+ long size,
+ const void *buf));
+
extern void trace_input0 PARAMS ((SIM_DESC sd,
sim_cpu *cpu,
int trace_idx));