From patchwork Thu Oct 4 00:16:13 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peter A. G. Crosthwaite" X-Patchwork-Id: 188967 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 544912C033A for ; Thu, 4 Oct 2012 10:16:56 +1000 (EST) Received: from localhost ([::1]:36148 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TJZ7W-0007NU-Ar for incoming@patchwork.ozlabs.org; Wed, 03 Oct 2012 20:16:54 -0400 Received: from eggs.gnu.org ([208.118.235.92]:49030) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TJZ7D-00077t-5c for qemu-devel@nongnu.org; Wed, 03 Oct 2012 20:16:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TJZ7B-00050m-Ef for qemu-devel@nongnu.org; Wed, 03 Oct 2012 20:16:34 -0400 Received: from mail-pa0-f45.google.com ([209.85.220.45]:48566) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TJZ7B-00050D-8N for qemu-devel@nongnu.org; Wed, 03 Oct 2012 20:16:33 -0400 Received: by padfb10 with SMTP id fb10so6962194pad.4 for ; Wed, 03 Oct 2012 17:16:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :in-reply-to:references:x-gm-message-state; bh=2STpGzcTMaDcFxiU/Y0Rnz/8oFzT9MhT0dXJuDJDiJg=; b=PQOwNJU34Ty1FZ2rWAj4do9UW0elWE2AmfbbgPLzqBcxoM6G7GeTE6led+rQ2VxW4e WN3KrqiQrfFhhZxGjn2Gw1c35jAfEe/VZh1FVkKvQJFAMnv47kMM0vKM73dQrC4IYfeo ypBlGBC/EMhqqQz9VryxWk28Gh6H1lwimNknon9f9o9DZkEAl6RECpwyaOFc6YcQbgjn 08qo/uVwnnsyfKBkqCTzikDnyAKKaC3FyFR5D7r712ynSPt736i9yeTvmKF1bRvg89PJ ut8WE/qfqYGB9j1yiw4Ff7qPkJysDa2Ua3hVaPEyG9q5zZRalvqOvzihvOUSiKv5DF2W 2YsA== Received: by 10.68.197.200 with SMTP id iw8mr16807153pbc.145.1349309792166; Wed, 03 Oct 2012 17:16:32 -0700 (PDT) Received: from localhost ([124.148.20.9]) by mx.google.com with ESMTPS id nu8sm3350585pbc.45.2012.10.03.17.16.29 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 03 Oct 2012 17:16:31 -0700 (PDT) From: Peter Crosthwaite To: qemu-devel@nongnu.org, peter.maydell@linaro.org, edgar.iglesias@gmail.com Date: Thu, 4 Oct 2012 10:16:13 +1000 Message-Id: X-Mailer: git-send-email 1.7.0.4 In-Reply-To: References: In-Reply-To: References: X-Gm-Message-State: ALoCoQkK8BkK2BSWw+h78gbKSQ/kw5pWdQMjawgeDSxXrVfJwX7gGppYIWSkREsSNoJgH9ga7aRo X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.220.45 Cc: linnj@xilinx.com, "Peter A. G. Crosthwaite" , john.williams@petalogix.com Subject: [Qemu-devel] [PATCH v2 3/4] zynq_slcr: Fixed ResetValues enum 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 A. G. Crosthwaite There is a gap in the reset region of the address space at offset 0x208. This throws out all these enum values by one when translating them to address offsets. Fixed by putting the corresponding gap in the enum as well. Signed-off-by: Peter A. G. Crosthwaite Reviewed-by: Peter Maydell --- hw/zynq_slcr.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/zynq_slcr.c b/hw/zynq_slcr.c index 468fb0e..6eafad5 100644 --- a/hw/zynq_slcr.c +++ b/hw/zynq_slcr.c @@ -93,7 +93,7 @@ typedef enum { typedef enum { PSS, DDDR, - DMAC, + DMAC = 3, USB, GEM, SDIO,