2001-02-21 Ben Elliston <bje@redhat.com>
authorBen Elliston <bje@au.ibm.com>
Wed, 21 Feb 2001 21:35:41 +0000 (21:35 +0000)
committerBen Elliston <bje@au.ibm.com>
Wed, 21 Feb 2001 21:35:41 +0000 (21:35 +0000)
* sim-trace.h (TRACE_BRANCH_INPUT1): New macro.
(TRACE_BRANCH_INPUT2): Likewise.

sim/common/ChangeLog
sim/common/sim-trace.h

index 35830a9e5a8e5152dde3c1e968182aba26d87070..18226044548239ffd6e02691a1937e2de5812f1a 100644 (file)
@@ -1,3 +1,8 @@
+2001-02-21  Ben Elliston  <bje@redhat.com>
+
+       * sim-trace.h (TRACE_BRANCH_INPUT1): New macro.
+       (TRACE_BRANCH_INPUT2): Likewise.
+
 2001-02-09  Ben Elliston  <bje@redhat.com>
 
        * (profile_print_pc): Write header out in target byte order.
index d34f5c4fd903f6c49403a545fc8f13f03725a29c..167e71007efea7eaac1aa01bc29e7ee2d1fad100 100644 (file)
@@ -383,7 +383,7 @@ extern void trace_result_word1_string1 PARAMS ((SIM_DESC sd,
 /* Other trace_result{_<type><nr-results>} */
 
 
-/* Macro's for tracing ALU instructions */
+/* Macros for tracing ALU instructions */
 
 #define TRACE_ALU_INPUT0() \
 do { \
@@ -441,8 +441,21 @@ do { \
     trace_result_word4 (SD, CPU, TRACE_ALU_IDX, (R0), (R1), (R2), (R3)); \
 } while (0)
 
+/* Macros for tracing inputs to comparative branch instructions. */
 
-/* Macro's for tracing FPU instructions */
+#define TRACE_BRANCH_INPUT1(V0) \
+do { \
+  if (TRACE_BRANCH_P (CPU)) \
+    trace_input_word1 (SD, CPU, TRACE_BRANCH_IDX, (V0)); \
+} while (0)
+
+#define TRACE_BRANCH_INPUT2(V0,V1) \
+do { \
+  if (TRACE_BRANCH_P (CPU)) \
+    trace_input_word2 (SD, CPU, TRACE_BRANCH_IDX, (V0), (V1)); \
+} while (0)
+
+/* Macros for tracing FPU instructions */
 
 #define TRACE_FP_INPUT0() \
 do { \
This page took 0.029978 seconds and 4 git commands to generate.