aboutsummaryrefslogtreecommitdiff
path: root/hw/ssi
diff options
context:
space:
mode:
authorPeter Crosthwaite <peter.crosthwaite@xilinx.com>2013-06-03 17:17:41 +0100
committerPeter Maydell <peter.maydell@linaro.org>2013-06-03 17:17:41 +0100
commitabef5fa6438d654de59dfa083166f41a4067f6b7 (patch)
treeec0b751171e28ba0a34fbe71ed055d5c37b3c1be /hw/ssi
parent3ea728d0c87011845666caedc582eaa9629797db (diff)
xilinx_spips: Add verbose LQSPI debug output
You really need this is you want to track a guest banging on LQSPI. 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: 26e508da4af11058d37daa777064c9e5c2a69abb.1369117359.git.peter.crosthwaite@xilinx.com Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/ssi')
-rw-r--r--hw/ssi/xilinx_spips.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/hw/ssi/xilinx_spips.c b/hw/ssi/xilinx_spips.c
index a8691d51c4..29636ce9ec 100644
--- a/hw/ssi/xilinx_spips.c
+++ b/hw/ssi/xilinx_spips.c
@@ -456,10 +456,13 @@ lqspi_read(void *opaque, hwaddr addr, unsigned int size)
int i;
XilinxQSPIPS *q = opaque;
XilinxSPIPS *s = opaque;
+ uint32_t ret;
if (addr >= q->lqspi_cached_addr &&
addr <= q->lqspi_cached_addr + LQSPI_CACHE_SIZE - 4) {
- return q->lqspi_buf[(addr - q->lqspi_cached_addr) >> 2];
+ ret = q->lqspi_buf[(addr - q->lqspi_cached_addr) >> 2];
+ DB_PRINT("addr: %08x, data: %08x\n", (unsigned)addr, (unsigned)ret);
+ return ret;
} else {
int flash_addr = (addr / num_effective_busses(s));
int slave = flash_addr >> LQSPI_ADDRESS_BITS;