From patchwork Fri May 23 00:42:18 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Edgar E. Iglesias" X-Patchwork-Id: 351690 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 8EF3F140086 for ; Fri, 23 May 2014 10:58:21 +1000 (EST) Received: from localhost ([::1]:40363 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WndoR-0002sr-Je for incoming@patchwork.ozlabs.org; Thu, 22 May 2014 20:58:19 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46601) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wndnv-00024Q-TI for qemu-devel@nongnu.org; Thu, 22 May 2014 20:57:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wndnp-0001e1-Gg for qemu-devel@nongnu.org; Thu, 22 May 2014 20:57:47 -0400 Received: from mail-yh0-x22f.google.com ([2607:f8b0:4002:c01::22f]:37217) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wndnp-0001dk-Bf for qemu-devel@nongnu.org; Thu, 22 May 2014 20:57:41 -0400 Received: by mail-yh0-f47.google.com with SMTP id z6so3673276yhz.6 for ; Thu, 22 May 2014 17:57:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Obcxzp7K0lnfp42IH8XBqZPyPNwy9tIbjRWcvPkbLvs=; b=R34ZlmS9FAkXPi7NS8kUVtPXvN1BYpQ5lV4GGIxocsYWjyIvyj+Jvyz+1lJNo7zZm8 lLamhwWnBWW7yUGLQY5qFnFm/vxziBNubrwps7VyLU+2XZ+bKR4KIDahZj8u41Glg5zr DykIvTPwhaFU+or7zh2XgQirYftZIpxrrptmu/iHvNVeA8amwyt60DJfGrOtjs2X/DMo lr5x0n2f4Cfyvye/DhNp7KnKJ44c6bGKYL6Nmv2kLOHyrBozj1V7fwNP/NZ3hq4wUcJp zvAZQwzTW8e1/EHZ51A+c//E7ZeLs2wv0FqujnKRh+6WphDC8rZcuVikFxxbrD+tkUuK U+Yg== X-Received: by 10.236.19.78 with SMTP id m54mr1937971yhm.134.1400806660913; Thu, 22 May 2014 17:57:40 -0700 (PDT) Received: from localhost ([203.126.243.116]) by mx.google.com with ESMTPSA id w47sm2150437yhk.47.2014.05.22.17.57.34 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 22 May 2014 17:57:40 -0700 (PDT) From: "Edgar E. Iglesias" To: qemu-devel@nongnu.org, peter.maydell@linaro.org Date: Fri, 23 May 2014 10:42:18 +1000 Message-Id: <1400805738-11889-22-git-send-email-edgar.iglesias@gmail.com> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1400805738-11889-1-git-send-email-edgar.iglesias@gmail.com> References: <1400805738-11889-1-git-send-email-edgar.iglesias@gmail.com> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4002:c01::22f Cc: rob.herring@linaro.org, peter.crosthwaite@xilinx.com, aggelerf@ethz.ch, agraf@suse.de, john.williams@xilinx.com, alex.bennee@linaro.org, christoffer.dall@linaro.org, rth@twiddle.net Subject: [Qemu-devel] [PATCH v4 21/21] target-arm: A64: Register VBAR_EL3 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: "Edgar E. Iglesias" Reviewed-by: Peter Crosthwaite Signed-off-by: Edgar E. Iglesias --- target-arm/cpu.h | 2 +- target-arm/helper.c | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/target-arm/cpu.h b/target-arm/cpu.h index 3ccbd95..8d04385 100644 --- a/target-arm/cpu.h +++ b/target-arm/cpu.h @@ -198,7 +198,7 @@ typedef struct CPUARMState { uint32_t c9_pmuserenr; /* perf monitor user enable */ uint32_t c9_pminten; /* perf monitor interrupt enables */ uint64_t mair_el1; - uint64_t vbar_el[3]; /* vector base address register */ + uint64_t vbar_el[4]; /* vector base address register */ uint32_t c13_fcse; /* FCSE PID. */ uint64_t contextidr_el1; /* Context ID. */ uint64_t tpidr_el0; /* User RW Thread register. */ diff --git a/target-arm/helper.c b/target-arm/helper.c index ebe735b..0ba87dc 100644 --- a/target-arm/helper.c +++ b/target-arm/helper.c @@ -2114,6 +2114,11 @@ static const ARMCPRegInfo v8_el3_cp_reginfo[] = { .type = ARM_CP_NO_MIGRATE, .opc0 = 3, .opc1 = 6, .crn = 4, .crm = 0, .opc2 = 0, .access = PL3_RW, .fieldoffset = offsetof(CPUARMState, banked_spsr[7]) }, + { .name = "VBAR_EL3", .state = ARM_CP_STATE_AA64, + .opc0 = 3, .opc1 = 6, .crn = 12, .crm = 0, .opc2 = 0, + .access = PL3_RW, .writefn = vbar_write, + .fieldoffset = offsetof(CPUARMState, cp15.vbar_el[3]), + .resetvalue = 0 }, REGINFO_SENTINEL };