From patchwork Fri Jan 31 15:45:29 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 23952 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yk0-f197.google.com (mail-yk0-f197.google.com [209.85.160.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 84028202B2 for ; Fri, 31 Jan 2014 15:45:55 +0000 (UTC) Received: by mail-yk0-f197.google.com with SMTP id 20sf25149604yks.0 for ; Fri, 31 Jan 2014 07:45:54 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=Rn7Ut8nCCmfb61vO/0bTZdixobniQZHJiUQQc7NHhsU=; b=XHCPAUN0i64rNJrs3FSyZOBX4Rm5Ac/YrQ0+gef1f9PF1o9xuDzPHpyw6lJgM0jvDG C7n6eTEr23tJ/YulMTw+a0ONWfjXtSymusf3L/GceqQvh+VC2CavKBaHAmyZAnRUlqrx sgKpV71bSMWkJRkhvonLneY/+Vmr9LDQ3+wF3SkvZniuQA3Xv5eIMJi8Wmk1fbUUKij/ B35Pix+fk1sRaTORav1BBZ17sOnMo/USS8MTBJIhiBCbRAksyHh1x9MkSVxmR0jSu8D0 HxS7lpC0+hl5+yQmIoyPvOFVH4+VK4aRZMp45D6v7p2fN4FLasy1d5WbaboNlBV/afKW LGRg== X-Gm-Message-State: ALoCoQmlg38TyYoUI3JNTOOZCZ3HO4EEaB2NROk4PeBuCWKmg6wUBi4J9128xQP7i6pBV99JWaYZ X-Received: by 10.59.11.65 with SMTP id eg1mr6370780ved.11.1391183154658; Fri, 31 Jan 2014 07:45:54 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.97.196 with SMTP id m62ls1006477qge.11.gmail; Fri, 31 Jan 2014 07:45:54 -0800 (PST) X-Received: by 10.58.123.70 with SMTP id ly6mr5802580veb.26.1391183154537; Fri, 31 Jan 2014 07:45:54 -0800 (PST) Received: from mail-ve0-f179.google.com (mail-ve0-f179.google.com [209.85.128.179]) by mx.google.com with ESMTPS id uy8si3635134vcb.130.2014.01.31.07.45.54 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 31 Jan 2014 07:45:54 -0800 (PST) Received-SPF: neutral (google.com: 209.85.128.179 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.179; Received: by mail-ve0-f179.google.com with SMTP id jx11so3280991veb.10 for ; Fri, 31 Jan 2014 07:45:54 -0800 (PST) X-Received: by 10.58.90.1 with SMTP id bs1mr2516014veb.29.1391183154472; Fri, 31 Jan 2014 07:45:54 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp105653vcz; Fri, 31 Jan 2014 07:45:54 -0800 (PST) X-Received: by 10.180.102.42 with SMTP id fl10mr28135213wib.42.1391183152087; Fri, 31 Jan 2014 07:45:52 -0800 (PST) Received: from mnementh.archaic.org.uk (mnementh.archaic.org.uk. [2001:8b0:1d0::1]) by mx.google.com with ESMTPS id hg12si5636848wib.39.2014.01.31.07.45.50 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 31 Jan 2014 07:45:52 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of pm215@archaic.org.uk designates 2001:8b0:1d0::1 as permitted sender) client-ip=2001:8b0:1d0::1; Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.80) (envelope-from ) id 1W9GHo-00081N-HQ; Fri, 31 Jan 2014 15:45:44 +0000 From: Peter Maydell To: qemu-devel@nongnu.org Cc: patches@linaro.org, Alexander Graf , Michael Matz , Claudio Fontana , Dirk Mueller , Laurent Desnogues , kvmarm@lists.cs.columbia.edu, Richard Henderson , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Christoffer Dall , Will Newton , Peter Crosthwaite , Rob Herring Subject: [PATCH v2 21/35] target-arm: Implement AArch64 MIDR_EL1 Date: Fri, 31 Jan 2014 15:45:29 +0000 Message-Id: <1391183143-30724-22-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1391183143-30724-1-git-send-email-peter.maydell@linaro.org> References: <1391183143-30724-1-git-send-email-peter.maydell@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: peter.maydell@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.179 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Implement the AArch64 view of the MIDR system register (for AArch64 it is a simple constant, unlike the complicated mess that TI925 imposes on the 32-bit view). Signed-off-by: Peter Maydell Reviewed-by: Peter Crosthwaite --- target-arm/helper.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/target-arm/helper.c b/target-arm/helper.c index 0538f78..f67cf5e 100644 --- a/target-arm/helper.c +++ b/target-arm/helper.c @@ -1720,6 +1720,9 @@ void register_cp_regs_for_features(ARMCPU *cpu) .writefn = arm_cp_write_ignore, .raw_writefn = raw_write, .fieldoffset = offsetof(CPUARMState, cp15.c0_cpuid), .type = ARM_CP_OVERRIDE }, + { .name = "MIDR_EL1", .state = ARM_CP_STATE_AA64, + .opc0 = 3, .opc1 = 0, .opc2 = 0, .crn = 0, .crm = 0, + .access = PL1_R, .resetvalue = cpu->midr, .type = ARM_CP_CONST }, { .name = "CTR", .cp = 15, .crn = 0, .crm = 0, .opc1 = 0, .opc2 = 1, .access = PL1_R, .type = ARM_CP_CONST, .resetvalue = cpu->ctr },