From patchwork Fri Apr 19 02:05:29 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Crosthwaite X-Patchwork-Id: 237805 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id C8F042C0209 for ; Fri, 19 Apr 2013 12:07:59 +1000 (EST) Received: from localhost ([::1]:44676 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UT0k1-0000Vn-VI for incoming@patchwork.ozlabs.org; Thu, 18 Apr 2013 22:07:57 -0400 Received: from eggs.gnu.org ([208.118.235.92]:57553) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UT0jf-0000Td-FK for qemu-devel@nongnu.org; Thu, 18 Apr 2013 22:07:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UT0je-0003KS-IJ for qemu-devel@nongnu.org; Thu, 18 Apr 2013 22:07:35 -0400 Received: from mail-pa0-f42.google.com ([209.85.220.42]:42115) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UT0je-0003KH-CR for qemu-devel@nongnu.org; Thu, 18 Apr 2013 22:07:34 -0400 Received: by mail-pa0-f42.google.com with SMTP id kq13so1967021pab.15 for ; Thu, 18 Apr 2013 19:07:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:sender:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-gm-message-state; bh=dtlu33wOtNUoKoqIy2Otxtwuzf0C0vGD8cGZLzVhCOA=; b=nyjfD3AlKbyNQOFZSaL0hmTNyRXcyElwPU2EONdZJ7dlasS1o/eP4Pr4s/J39+02fI A3FGQc2lgqtzKzm2hX5C8f4VugHDp1eN8o0NzTuOC9uOlh3kjaa88U2A1zazn2AUrtQe SqPjC97nPctL+ezznY1+OxQbeR9VxnDl3dvuUkJoTolDZifZweuKYvg3wPpXDBPYJzhf pFdnWomBrt1BQAcG0JdEPcB3ekP8/q4xGjQNvIp7+eG6JeP2menVyM8VaVjiHRsBKTlk LEtaqmDOCLlMVzABnlwbSPN8cWhMjUq8pDQT+TEAHVGLX7qaWcJAZOrf8e0DJtXvc1ll HPcg== X-Received: by 10.66.197.165 with SMTP id iv5mr2850587pac.7.1366337253795; Thu, 18 Apr 2013 19:07:33 -0700 (PDT) Received: from localhost ([149.199.62.254]) by mx.google.com with ESMTPS id ms9sm11589160pbc.20.2013.04.18.19.07.31 (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Thu, 18 Apr 2013 19:07:32 -0700 (PDT) From: peter.crosthwaite@xilinx.com To: qemu-devel@nongnu.org Date: Fri, 19 Apr 2013 12:05:29 +1000 Message-Id: <42c625ea546e13d76bdea20227d8d47027b5c4d2.1366335998.git.peter.crosthwaite@xilinx.com> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: References: X-Gm-Message-State: ALoCoQmUpndQDoPdpoVaSWdz7NWuXWJjZt4SrPDpWLCqMiFiCHmR690Fnq/4gXDVc1sGsxhW18g3 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.220.42 Cc: peter.maydell@linaro.org Subject: [Qemu-devel] [PATCH for-1.5 v2 04/15] xilinx_spips: Add verbose LQSPI debug output X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: Peter Crosthwaite You really need this is you want to track a guest banging on LQSPI. Signed-off-by: Peter Crosthwaite --- hw/ssi/xilinx_spips.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/hw/ssi/xilinx_spips.c b/hw/ssi/xilinx_spips.c index a8691d5..29636ce 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;