]> Git Repo - qemu.git/commitdiff
xilinx_spips: Debug msgs for Snoop state
authorPeter Crosthwaite <[email protected]>
Mon, 3 Jun 2013 16:17:43 +0000 (17:17 +0100)
committerPeter Maydell <[email protected]>
Mon, 3 Jun 2013 16:17:43 +0000 (17:17 +0100)
This is worth keeping track of when debugging the device model.

Signed-off-by: Peter Crosthwaite <[email protected]>
Reviewed-by: Peter Maydell <[email protected]>
Reviewed-by: Edgar E. Iglesias <[email protected]>
Message-id: d3b44ecf23d671798b062eee5dc362c716ea54cd.1369117359[email protected]
Signed-off-by: Peter Maydell <[email protected]>
hw/ssi/xilinx_spips.c

index 7222e152e639d29cf9e03c864f9f832482424277..8fbbd24f7ba19b61d9d32436e214bf1fedd6eb46 100644 (file)
@@ -223,6 +223,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");
     }
 }
 
@@ -346,6 +347,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 */
@@ -374,6 +376,7 @@ static void xilinx_spips_flush_txfifo(XilinxSPIPS *s)
         default:
             s->snoop_state--;
         }
+        DB_PRINT("final snoop state: %x\n", (unsigned)s->snoop_state);
     }
 }
 
This page took 0.027888 seconds and 4 git commands to generate.