From patchwork Thu Oct 25 12:57:41 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 12519 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 1694523EFB for ; Thu, 25 Oct 2012 12:58:03 +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 B1D57A18FEF for ; Thu, 25 Oct 2012 12:58:02 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id e10so2060862iej.11 for ; Thu, 25 Oct 2012 05:58:02 -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=zlPZNMQPqfD/foJvBlhdZ8NtISvOjaGMhu3gcqkw91c=; b=jUneBYs4lKntcObW//9isIAWn9a598Ps9pQ50HWJQvwYkl20V1rUJja+ZYDNwsuklE FReMG74jSWqy2q9xcJ8k+u5Z1uOzz81FiTqJr62sYvQv5qU7sZxKXWlufdR272E/QYFq 7Ud+EGL8J1H6mxqqFIGeqhhffBiileFJRe+3WIUJCjoPeWU5jB+S8rpak4XSwqePOsku +E5pI/RhpTJfCQV0vuqLQAcm9/DE8elu2ZXOnoI6wt2Phz7xqJuqE04aFVc9gs0Y4cjp bpeYMvLcc2FvhIWZlmLEPMGqAiGt8Y3iy3um+jg8yUqJ4OfPRO2BF9lKklbFjAaowUMu nHSg== Received: by 10.50.140.97 with SMTP id rf1mr4226324igb.70.1351169882243; Thu, 25 Oct 2012 05:58:02 -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 n20csp42971igt; Thu, 25 Oct 2012 05:58:01 -0700 (PDT) Received: by 10.216.195.9 with SMTP id o9mr12157494wen.197.1351169880635; Thu, 25 Oct 2012 05:58:00 -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 gv3si904532wib.1.2012.10.25.05.58.00 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 25 Oct 2012 05:58:00 -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-0001Qn-Oi; Thu, 25 Oct 2012 13:57:47 +0100 From: Peter Maydell To: qemu-devel@nongnu.org Cc: patches@linaro.org Subject: [PATCH 06/12] hw/arm11mpcore: Use LOG_GUEST_ERROR rather than hw_error() Date: Thu, 25 Oct 2012 13:57:41 +0100 Message-Id: <1351169867-5466-7-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: ALoCoQkhoIVyJNao/UtpW6sQfgMrOAk4MyIe3VKafc1J2duxyIG3g1BJnGojWSmvCExcT2gIVoyq Use LOG_GUEST_ERROR to report guest accesses to bad offsets. Signed-off-by: Peter Maydell --- hw/arm11mpcore.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/hw/arm11mpcore.c b/hw/arm11mpcore.c index 105f158..640ed20 100644 --- a/hw/arm11mpcore.c +++ b/hw/arm11mpcore.c @@ -44,7 +44,9 @@ static uint64_t mpcore_scu_read(void *opaque, hwaddr offset, case 0x0c: /* Invalidate all. */ return 0; default: - hw_error("mpcore_priv_read: Bad offset %x\n", (int)offset); + qemu_log_mask(LOG_GUEST_ERROR, + "mpcore_priv_read: Bad offset %x\n", (int)offset); + return 0; } } @@ -61,7 +63,8 @@ static void mpcore_scu_write(void *opaque, hwaddr offset, /* This is a no-op as cache is not emulated. */ break; default: - hw_error("mpcore_priv_read: Bad offset %x\n", (int)offset); + qemu_log_mask(LOG_GUEST_ERROR, + "mpcore_priv_read: Bad offset %x\n", (int)offset); } }