mirror of
https://git.proxmox.com/git/qemu
synced 2025-08-15 10:10:13 +00:00
xilinx_spips: Debug msgs for Snoop state
This is worth keeping track of when debugging the device model. Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Edgar E. Iglesias <edgar.iglesias@gmail.com> Message-id: d3b44ecf23d671798b062eee5dc362c716ea54cd.1369117359.git.peter.crosthwaite@xilinx.com Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
9151da25a7
commit
c37fc509d2
@ -223,6 +223,7 @@ static void xilinx_spips_update_cs_lines(XilinxSPIPS *s)
|
|||||||
}
|
}
|
||||||
if (!found) {
|
if (!found) {
|
||||||
s->snoop_state = SNOOP_CHECKING;
|
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]);
|
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) {
|
switch (s->snoop_state) {
|
||||||
case (SNOOP_CHECKING):
|
case (SNOOP_CHECKING):
|
||||||
switch (tx) { /* new instruction code */
|
switch (tx) { /* new instruction code */
|
||||||
@ -374,6 +376,7 @@ static void xilinx_spips_flush_txfifo(XilinxSPIPS *s)
|
|||||||
default:
|
default:
|
||||||
s->snoop_state--;
|
s->snoop_state--;
|
||||||
}
|
}
|
||||||
|
DB_PRINT("final snoop state: %x\n", (unsigned)s->snoop_state);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user