From patchwork Thu Feb 28 11:08:24 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 1049379 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="exeq7jhT"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4498zT5DLyz9s1B for ; Thu, 28 Feb 2019 22:12:53 +1100 (AEDT) Received: from localhost ([127.0.0.1]:36198 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gzJcR-0003cy-Jr for incoming@patchwork.ozlabs.org; Thu, 28 Feb 2019 06:12:51 -0500 Received: from eggs.gnu.org ([209.51.188.92]:36345) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gzJYo-0001Ev-G9 for qemu-devel@nongnu.org; Thu, 28 Feb 2019 06:09:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gzJYn-0003dc-CW for qemu-devel@nongnu.org; Thu, 28 Feb 2019 06:09:06 -0500 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]:47076) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gzJYn-0003TO-1j for qemu-devel@nongnu.org; Thu, 28 Feb 2019 06:09:05 -0500 Received: by mail-wr1-x443.google.com with SMTP id i16so21421314wrs.13 for ; Thu, 28 Feb 2019 03:09:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=CKBmTXJwKxnhLcljUJMx+97Q8S0w3l5kDq4isBetTDU=; b=exeq7jhTZMsCdFKlpreqgTjPtWaJUhxtuySHpIogH0QwQfikjuuzSybYZuROtbsk0m Ua6lZWJC3orHZKNYxtNNK0xau/CBJ96H0bRRmZk19Ns8uAKpSmdILTdvHQiP+VAJpDOK UCmu3SIIlWTrlv3xgczNGsayBVvwgtQ++37OW1Pp98+ol5+gItbVgm4WCZQg3+Dkw/AH oPMkUkDAlRui+VSndLuVucZVGlZOmq6x3mPaxfFGihrO7zlvARgQVVrvKrH6XzjclH1K zabOY48Wl4nOexZnjKqfmD8vV69l5hDiFOPFp5uwcRt213oeSKiSfR+5WP0831Vij+gT 3HQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=CKBmTXJwKxnhLcljUJMx+97Q8S0w3l5kDq4isBetTDU=; b=UkOTTrsq3QUNlQ6QAFsGl8FRK09Qz4tcWaREgNEW7DY7IvwN2MFSENLLfwBXq6K1ag S37nxZvnSWHbjyrpk1lAUvZA+2ziVjjR120kgGjufHRAB/14geuqjXRK6q56Bc4vBodl X4F8yKKJG7h1wOUtvy2cz3kNXw076tkp4uBMzY7NEc5tSgo1oZ1P0Cwhxnf937gdOSu9 3xQ5G6jdKHKA1uM5Xl2i0cGMtQBWce75OVBxPdb+BG2zPVFzoM9MZU6tbrsM58JPzCw1 5Gsd6OpmBEVQPbWwPOTMsqW1HvlFlIw7yxAzCkZnDsBRYLbCv/m4dSEee0jQebBB/+sm 9GAw== X-Gm-Message-State: APjAAAWiTZIaLcG1WPoKCMZgc8KQtalsL/W6q/EKATc1UqoHi0z/8c8b AVyTr/CtmxWENwxyR4hQcHtXyvlDCyM= X-Google-Smtp-Source: APXvYqyQXoX2E1iu0ZLDf193ryG5CaM9zDanZ9DZHUdr0zRnxEOoPOTQtvug1+sTbsdeKXgu2nP8DA== X-Received: by 2002:adf:e949:: with SMTP id m9mr6228878wrn.1.1551352139153; Thu, 28 Feb 2019 03:08:59 -0800 (PST) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [81.2.115.148]) by smtp.gmail.com with ESMTPSA id c17sm13153241wrs.17.2019.02.28.03.08.57 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Feb 2019 03:08:58 -0800 (PST) From: Peter Maydell To: qemu-devel@nongnu.org Date: Thu, 28 Feb 2019 11:08:24 +0000 Message-Id: <20190228110835.16159-6-peter.maydell@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190228110835.16159-1-peter.maydell@linaro.org> References: <20190228110835.16159-1-peter.maydell@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::443 Subject: [Qemu-devel] [PULL 05/16] hw/misc/iotkit-sysctl: Correct typo in INITSVTOR0 register name X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 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" The iotkit-sysctl device has a register it names INITSVRTOR0. This is actually a typo present in the IoTKit documentation and also in part of the SSE-200 documentation: it should be INITSVTOR0 because it is specifying the initial value of the Secure VTOR register in the CPU. Correct the typo. Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson Message-id: 20190219125808.25174-6-peter.maydell@linaro.org --- include/hw/misc/iotkit-sysctl.h | 2 +- hw/misc/iotkit-sysctl.c | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/include/hw/misc/iotkit-sysctl.h b/include/hw/misc/iotkit-sysctl.h index e36613cb5ee..17a145517a4 100644 --- a/include/hw/misc/iotkit-sysctl.h +++ b/include/hw/misc/iotkit-sysctl.h @@ -41,7 +41,7 @@ typedef struct IoTKitSysCtl { uint32_t reset_syndrome; uint32_t reset_mask; uint32_t gretreg; - uint32_t initsvrtor0; + uint32_t initsvtor0; uint32_t cpuwait; uint32_t wicctrl; } IoTKitSysCtl; diff --git a/hw/misc/iotkit-sysctl.c b/hw/misc/iotkit-sysctl.c index a21d8bd6789..8c85aea9309 100644 --- a/hw/misc/iotkit-sysctl.c +++ b/hw/misc/iotkit-sysctl.c @@ -33,7 +33,7 @@ REG32(RESET_MASK, 0x104) REG32(SWRESET, 0x108) FIELD(SWRESET, SWRESETREQ, 9, 1) REG32(GRETREG, 0x10c) -REG32(INITSVRTOR0, 0x110) +REG32(INITSVTOR0, 0x110) REG32(CPUWAIT, 0x118) REG32(BUSWAIT, 0x11c) REG32(WICCTRL, 0x120) @@ -76,8 +76,8 @@ static uint64_t iotkit_sysctl_read(void *opaque, hwaddr offset, case A_GRETREG: r = s->gretreg; break; - case A_INITSVRTOR0: - r = s->initsvrtor0; + case A_INITSVTOR0: + r = s->initsvtor0; break; case A_CPUWAIT: r = s->cpuwait; @@ -145,9 +145,9 @@ static void iotkit_sysctl_write(void *opaque, hwaddr offset, */ s->gretreg = value; break; - case A_INITSVRTOR0: - qemu_log_mask(LOG_UNIMP, "IoTKit SysCtl INITSVRTOR0 unimplemented\n"); - s->initsvrtor0 = value; + case A_INITSVTOR0: + qemu_log_mask(LOG_UNIMP, "IoTKit SysCtl INITSVTOR0 unimplemented\n"); + s->initsvtor0 = value; break; case A_CPUWAIT: qemu_log_mask(LOG_UNIMP, "IoTKit SysCtl CPUWAIT unimplemented\n"); @@ -206,7 +206,7 @@ static void iotkit_sysctl_reset(DeviceState *dev) s->reset_syndrome = 1; s->reset_mask = 0; s->gretreg = 0; - s->initsvrtor0 = 0x10000000; + s->initsvtor0 = 0x10000000; s->cpuwait = 0; s->wicctrl = 0; } @@ -230,7 +230,7 @@ static const VMStateDescription iotkit_sysctl_vmstate = { VMSTATE_UINT32(reset_syndrome, IoTKitSysCtl), VMSTATE_UINT32(reset_mask, IoTKitSysCtl), VMSTATE_UINT32(gretreg, IoTKitSysCtl), - VMSTATE_UINT32(initsvrtor0, IoTKitSysCtl), + VMSTATE_UINT32(initsvtor0, IoTKitSysCtl), VMSTATE_UINT32(cpuwait, IoTKitSysCtl), VMSTATE_UINT32(wicctrl, IoTKitSysCtl), VMSTATE_END_OF_LIST()