From patchwork Thu Oct 25 12:57:36 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 12511 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id BE69A23EFB for ; Thu, 25 Oct 2012 12:57:53 +0000 (UTC) Received: from mail-ie0-f180.google.com (mail-ie0-f180.google.com [209.85.223.180]) by fiordland.canonical.com (Postfix) with ESMTP id 747F2A18FEB for ; Thu, 25 Oct 2012 12:57:53 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id e10so2060860iej.11 for ; Thu, 25 Oct 2012 05:57:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=BbWrMQ7YIjJrhJOeFE2tVgE8qM9wqC/Cpp3Mq9we7hM=; b=auTVtD3LP8NhH9eb3RIG7WNTKsgzxkC5jEiaW5WQdCqfLmn4U0y3c+fqrqVhuxRwHY n+MCPraiJ1DlVMxZYSiBcEoOkfCx/syzGEivtTFzscAtkaOwDr55WvPnUUw8iWf4MrVX rRl3jEDCtxWcY6XKWIcb9GBREt1uuOnmb8A1hQrLbdT0wH1hxbVVQEf9+QCe+nI7s0Ds QPce25AsIKU20YmnoGFUm6KhQxpoTZWZO9EsS/uRl8wnN2Fthibf9ugF2g+XcerwbCwf fW29gKhkef0mwivnx+NyFwUlGOBL05p5V54U5HtQTHcQw83YsQ29MMle+0Fce02Sw5Sk Sezw== Received: by 10.50.100.137 with SMTP id ey9mr5744896igb.57.1351169873177; Thu, 25 Oct 2012 05:57:53 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.67.148 with SMTP id n20csp42916igt; Thu, 25 Oct 2012 05:57:51 -0700 (PDT) Received: by 10.204.11.79 with SMTP id s15mr3668678bks.136.1351169871180; Thu, 25 Oct 2012 05:57:51 -0700 (PDT) Received: from mnementh.archaic.org.uk (1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.d.1.0.0.b.8.0.1.0.0.2.ip6.arpa. [2001:8b0:1d0::1]) by mx.google.com with ESMTPS id hw12si27607937bkc.135.2012.10.25.05.57.50 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 25 Oct 2012 05:57:51 -0700 (PDT) Received-SPF: neutral (google.com: 2001:8b0:1d0::1 is neither permitted nor denied by best guess record for domain of pm215@archaic.org.uk) client-ip=2001:8b0:1d0::1; Authentication-Results: mx.google.com; spf=neutral (google.com: 2001:8b0:1d0::1 is neither permitted nor denied by best guess record for domain of pm215@archaic.org.uk) smtp.mail=pm215@archaic.org.uk Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.72) (envelope-from ) id 1TRN0N-0001Qd-Fw; Thu, 25 Oct 2012 13:57:47 +0100 From: Peter Maydell To: qemu-devel@nongnu.org Cc: patches@linaro.org Subject: [PATCH 01/12] hw/pl050: Use LOG_GUEST_ERROR Date: Thu, 25 Oct 2012 13:57:36 +0100 Message-Id: <1351169867-5466-2-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: <1351169867-5466-1-git-send-email-peter.maydell@linaro.org> References: <1351169867-5466-1-git-send-email-peter.maydell@linaro.org> X-Gm-Message-State: ALoCoQnz0L8a7MdNKZeRKHvetwU0RnEIiljo80b58MDJoYdbZPQ2a1n3QzpbWZX8boFG7mYg3Elx Use LOG_GUEST_ERROR for reporting guest attempts to access invalid register offsets. Signed-off-by: Peter Maydell --- hw/pl050.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hw/pl050.c b/hw/pl050.c index 470572e..47032f1 100644 --- a/hw/pl050.c +++ b/hw/pl050.c @@ -95,7 +95,8 @@ static uint64_t pl050_read(void *opaque, hwaddr offset, case 4: /* KMIIR */ return s->pending | 2; default: - hw_error("pl050_read: Bad offset %x\n", (int)offset); + qemu_log_mask(LOG_GUEST_ERROR, + "pl050_read: Bad offset %x\n", (int)offset); return 0; } } @@ -123,7 +124,8 @@ static void pl050_write(void *opaque, hwaddr offset, s->clk = value; return; default: - hw_error("pl050_write: Bad offset %x\n", (int)offset); + qemu_log_mask(LOG_GUEST_ERROR, + "pl050_write: Bad offset %x\n", (int)offset); } } static const MemoryRegionOps pl050_ops = {