From patchwork Tue Feb 25 23:59:34 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Crosthwaite X-Patchwork-Id: 324129 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 274602C00A6 for ; Wed, 26 Feb 2014 11:00:46 +1100 (EST) Received: from localhost ([::1]:37559 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WIRvX-00076E-G6 for incoming@patchwork.ozlabs.org; Tue, 25 Feb 2014 19:00:43 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34352) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WIRv2-0006y9-Sp for qemu-devel@nongnu.org; Tue, 25 Feb 2014 19:00:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WIRux-0001z6-7l for qemu-devel@nongnu.org; Tue, 25 Feb 2014 19:00:12 -0500 Received: from mail-qc0-f176.google.com ([209.85.216.176]:43226) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WIRux-0001yy-3A for qemu-devel@nongnu.org; Tue, 25 Feb 2014 19:00:07 -0500 Received: by mail-qc0-f176.google.com with SMTP id r5so244464qcx.35 for ; Tue, 25 Feb 2014 16:00:06 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=o7fnkDEs818sSxuSx5pgVl/KasSYB0lgqiy02+okgbU=; b=D9FbU4UoXh125n0ZQM8IJi1OEn3Qh0vjtUQq8/11jr8pNtHQxwGs7AqWobR8MP1MqP 1GjlW6mayeGOE2tZ0v8xFJpScBep3iwlG9G1XiA/V1GJvqHG5g1uyttmGLxK8C23Qtzf tdIYXGnHqIVYr9oWk6Q9+u4uG+IXvSHk0Lj0EmhJZtin3bk6gnU/haO3McKdTgcWgJP+ xAovJzWjIJxjjoK2V6AQUnYG1VhETuZe52Va6VH4t751R5NGv4R7UmBrIr0wgqIkgHdP FBugYityPj51mXiTpS/1pdtOaDf0Fv2D3AdXeJsotbGM4DDn1hs/EQDuQVYZuxTVGhuj 1QsA== X-Gm-Message-State: ALoCoQnXSU0kr5YML8KaTGVFgGbuWLVetalUCYzs08MznF2sF+aNhKRYMVoGkllGWDizZ/m3KbSe X-Received: by 10.140.83.99 with SMTP id i90mr3736693qgd.100.1393372806673; Tue, 25 Feb 2014 16:00:06 -0800 (PST) Received: from localhost ([149.199.62.254]) by mx.google.com with ESMTPSA id q10sm4487165qah.22.2014.02.25.16.00.05 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 25 Feb 2014 16:00:06 -0800 (PST) From: Peter Crosthwaite To: qemu-devel@nongnu.org Date: Tue, 25 Feb 2014 15:59:34 -0800 Message-Id: X-Mailer: git-send-email 1.9.0.1.g4196000 In-Reply-To: References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.216.176 Cc: peter.maydell@linaro.org Subject: [Qemu-devel] [PATCH target-arm v2 5/7] dma/pl330: Add event debugging printfs 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 These are helpful to anyone trying to debug event sequencing. Signed-off-by: Peter Crosthwaite Reviewed-by: Peter Maydell --- hw/dma/pl330.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/dma/pl330.c b/hw/dma/pl330.c index 8046a6f..303f8b8 100644 --- a/hw/dma/pl330.c +++ b/hw/dma/pl330.c @@ -873,6 +873,7 @@ static void pl330_dmasev(PL330Chan *ch, uint8_t opcode, uint8_t *args, int len) DB_PRINT("event interrupt raised %" PRId8 "\n", ev_id); qemu_irq_raise(ch->parent->irq[ev_id]); } + DB_PRINT("event raised %" PRId8 "\n", ev_id); ch->parent->ev_status |= (1 << ev_id); } @@ -975,6 +976,7 @@ static void pl330_dmawfe(PL330Chan *ch, uint8_t opcode, } } ch->parent->ev_status &= ~(1 << ev_id); + DB_PRINT("event lowered %" PRIx8 "\n", ev_id); } else { ch->stall = 1; }