From patchwork Fri Oct 10 16:03:12 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Bellows X-Patchwork-Id: 38598 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f72.google.com (mail-wg0-f72.google.com [74.125.82.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 857C9205D8 for ; Fri, 10 Oct 2014 16:07:39 +0000 (UTC) Received: by mail-wg0-f72.google.com with SMTP id m15sf2277789wgh.7 for ; Fri, 10 Oct 2014 09:07:38 -0700 (PDT) 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:date :message-id:in-reply-to:references:subject:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=4qitSF2WF+6F4ku1qneT8pFaglPDIIChbkSP6Y63MrY=; b=GJAkuQrtT4h/PMbwmaJRedHCS2sCAB5qzbm6KCq+nq2dDNrug+RE7I1c301t175y/G dbRzxM9W6bjUisABZPMtcfX3dguxWuw2vyiLjBc5Jkto4AGHzBLQQ80y/O9zMMySlnQn y4+S8Yw9eNoQQvGYu2Z1F/FlC6HsgHmxy/QQY8YkWi6U4s6oaMLrhp2+dTrjxblJEidE hbE0zBnVfiEOh/Vq34OgINEpoo7XaaQHfkUJ0JQKiI7XaSGtvWH1GxWggKjTc3FT+jfQ lVmadgFF9pYT6vG5uyFqXT5w3kh5o0EEiq/XkChEjJ8x8LutBD1mArsztrfX0A+uKLBR DeoA== X-Gm-Message-State: ALoCoQn6fErvdHYKRxLEef27XLsbfKVzM6x8INrB/zYaf3VVGCfb+SUR4rT6V8Aozu4XWHH2eg85 X-Received: by 10.112.198.226 with SMTP id jf2mr1133465lbc.1.1412957258577; Fri, 10 Oct 2014 09:07:38 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.3.132 with SMTP id c4ls271818lac.88.gmail; Fri, 10 Oct 2014 09:07:38 -0700 (PDT) X-Received: by 10.112.26.103 with SMTP id k7mr5743200lbg.86.1412957258438; Fri, 10 Oct 2014 09:07:38 -0700 (PDT) Received: from mail-la0-f53.google.com (mail-la0-f53.google.com [209.85.215.53]) by mx.google.com with ESMTPS id pd3si9748099lbc.80.2014.10.10.09.07.38 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 10 Oct 2014 09:07:38 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.53 as permitted sender) client-ip=209.85.215.53; Received: by mail-la0-f53.google.com with SMTP id gq15so3497149lab.26 for ; Fri, 10 Oct 2014 09:07:38 -0700 (PDT) X-Received: by 10.112.156.227 with SMTP id wh3mr5694355lbb.23.1412957258097; Fri, 10 Oct 2014 09:07:38 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.84.229 with SMTP id c5csp456157lbz; Fri, 10 Oct 2014 09:07:37 -0700 (PDT) X-Received: by 10.140.19.213 with SMTP id 79mr9756369qgh.100.1412957256784; Fri, 10 Oct 2014 09:07:36 -0700 (PDT) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id k2si11777644qaf.20.2014.10.10.09.07.36 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 10 Oct 2014 09:07:36 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Received: from localhost ([::1]:49399 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xccj9-0003Ay-OF for patch@linaro.org; Fri, 10 Oct 2014 12:07:35 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34886) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xccfk-0006mX-89 for qemu-devel@nongnu.org; Fri, 10 Oct 2014 12:04:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xccfc-0007w1-Ez for qemu-devel@nongnu.org; Fri, 10 Oct 2014 12:04:04 -0400 Received: from mail-oi0-f46.google.com ([209.85.218.46]:48333) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xccfc-0007vo-Aw for qemu-devel@nongnu.org; Fri, 10 Oct 2014 12:03:56 -0400 Received: by mail-oi0-f46.google.com with SMTP id h136so7119273oig.5 for ; Fri, 10 Oct 2014 09:03:55 -0700 (PDT) X-Received: by 10.60.97.137 with SMTP id ea9mr5614212oeb.12.1412957035710; Fri, 10 Oct 2014 09:03:55 -0700 (PDT) Received: from gbellows-linaro.bellowshome.net (99-179-1-128.lightspeed.austtx.sbcglobal.net. [99.179.1.128]) by mx.google.com with ESMTPSA id d6sm5382455obt.12.2014.10.10.09.03.54 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 10 Oct 2014 09:03:55 -0700 (PDT) From: Greg Bellows To: qemu-devel@nongnu.org, peter.maydell@linaro.org, serge.fdrv@gmail.com, edgar.iglesias@gmail.com, aggelerf@ethz.ch Date: Fri, 10 Oct 2014 11:03:12 -0500 Message-Id: <1412957023-11105-2-git-send-email-greg.bellows@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1412957023-11105-1-git-send-email-greg.bellows@linaro.org> References: <1412957023-11105-1-git-send-email-greg.bellows@linaro.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.218.46 Subject: [Qemu-devel] [PATCH v6 01/32] target-arm: increase arrays of registers R13 & R14 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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: greg.bellows@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.53 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 From: Fabian Aggeler Increasing banked_r13 and banked_r14 to store LR_mon and SP_mon (bank index 7). Signed-off-by: Fabian Aggeler Signed-off-by: Greg Bellows Reviewed-by: Peter Maydell ========== v5 -> v6 - Updated vmstate_arm_cpu versioning from 20 to 21 --- target-arm/cpu.h | 4 ++-- target-arm/machine.c | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/target-arm/cpu.h b/target-arm/cpu.h index 65a3417..81fffd2 100644 --- a/target-arm/cpu.h +++ b/target-arm/cpu.h @@ -153,8 +153,8 @@ typedef struct CPUARMState { /* Banked registers. */ uint64_t banked_spsr[8]; - uint32_t banked_r13[6]; - uint32_t banked_r14[6]; + uint32_t banked_r13[8]; + uint32_t banked_r14[8]; /* These hold r8-r12. */ uint32_t usr_regs[5]; diff --git a/target-arm/machine.c b/target-arm/machine.c index ddb7d05..f1c903d 100644 --- a/target-arm/machine.c +++ b/target-arm/machine.c @@ -222,8 +222,8 @@ static int cpu_post_load(void *opaque, int version_id) const VMStateDescription vmstate_arm_cpu = { .name = "cpu", - .version_id = 20, - .minimum_version_id = 20, + .version_id = 21, + .minimum_version_id = 21, .pre_save = cpu_pre_save, .post_load = cpu_post_load, .fields = (VMStateField[]) { @@ -238,8 +238,8 @@ const VMStateDescription vmstate_arm_cpu = { }, VMSTATE_UINT32(env.spsr, ARMCPU), VMSTATE_UINT64_ARRAY(env.banked_spsr, ARMCPU, 8), - VMSTATE_UINT32_ARRAY(env.banked_r13, ARMCPU, 6), - VMSTATE_UINT32_ARRAY(env.banked_r14, ARMCPU, 6), + VMSTATE_UINT32_ARRAY(env.banked_r13, ARMCPU, 8), + VMSTATE_UINT32_ARRAY(env.banked_r14, ARMCPU, 8), VMSTATE_UINT32_ARRAY(env.usr_regs, ARMCPU, 5), VMSTATE_UINT32_ARRAY(env.fiq_regs, ARMCPU, 5), VMSTATE_UINT64_ARRAY(env.elr_el, ARMCPU, 4),