Patchwork [arm-devs,v1,12/15] xilinx_spips: Debug msgs for Snoop state

login
register
mail settings
Submitter Peter Crosthwaite
Date April 3, 2013, 4:33 a.m.
Message ID <8272c38291f6bfb5f6f953508ce2cc2cc9c1ccba.1364962908.git.peter.crosthwaite@xilinx.com>
Download mbox | patch
Permalink /patch/233230/
State New
Headers show

Comments

Peter Crosthwaite - April 3, 2013, 4:33 a.m.
This is worth keeping track of when debugging the device model.

Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
---

 hw/xilinx_spips.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

Patch

diff --git a/hw/xilinx_spips.c b/hw/xilinx_spips.c
index 43ce2d8..0d01103 100644
--- a/hw/xilinx_spips.c
+++ b/hw/xilinx_spips.c
@@ -208,6 +208,7 @@  static void xilinx_spips_update_cs_lines(XilinxSPIPS *s)
     }
     if (!found) {
         s->snoop_state = SNOOP_CHECKING;
+        DB_PRINT("moving to snoop check state\n");
     }
 }
 
@@ -321,6 +322,7 @@  static void xilinx_spips_flush_txfifo(XilinxSPIPS *s)
            fifo8_push(&s->rx_fifo, (uint8_t)tx_rx[0]);
         }
 
+        DB_PRINT("initial snoop state: %x\n", (unsigned)s->snoop_state);
         switch (s->snoop_state) {
         case (SNOOP_CHECKING):
             switch (tx) { /* new instruction code */
@@ -349,6 +351,7 @@  static void xilinx_spips_flush_txfifo(XilinxSPIPS *s)
         default:
             s->snoop_state--;
         }
+        DB_PRINT("final snoop state: %x\n", (unsigned)s->snoop_state);
     }
 }