From patchwork Fri Nov 30 19:22:15 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 152586 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp4029170ljp; Fri, 30 Nov 2018 11:24:17 -0800 (PST) X-Google-Smtp-Source: AFSGD/UFhq6ailW2HBdzKMjfl3zIRXf9goBUuKCNbBlCyjImfNvS+my0K9xFxr64/94jXMFoAeH9 X-Received: by 2002:a0d:d903:: with SMTP id b3mr6763775ywe.192.1543605856938; Fri, 30 Nov 2018 11:24:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543605856; cv=none; d=google.com; s=arc-20160816; b=MdGfySC2AyvQosiU7lHli9CQ/beH1y7GMiP9HhFyEIi/joO96WyT/wtXmEdIsshapo iqNrfPNJMEYfKez4q5kkJMhdI1Eg23RCzwhHdP35rt20QgZpFWTIbJL5pgYOu372g4xF pVLSwkj9aY30ZLF1zpSFmOCz0s57cTtzejVxCoBB2JzW58QjjlfOgDAr0rqesZ7qy0wZ D4+jyq5ljJitU4/LMqAwSm3GCh8WrX3YSKmQAnQt4qA2LEt03diaGaR2U4Fc0SMQzMdB QTq3t1wh8d9w8GcLulAMI+LgajT2FdUH3A7sw5ZPsDCFbk8mrbadl6WD8XcycEmcx5Ws GDKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:references:in-reply-to :message-id:date:to:from:dkim-signature; bh=IZG69suGTECshfy3cd2akZQXGen5UOXQzQiPI0zz0P0=; b=0Je/EvoRupPleiNGkWDyH6wmuNdNtgPw99oCVPh6zD4R0jLzD9yNgeM+g+mEZhuUAL RrHI4BpZjKFNftx+uw0uqXKVV0zvquCRWPQ7OEFJqbxENZibR006qNInyDcEl3GFdZ6e n/L/07V/BsLTHQBUNm3MDFtWtQWD5b2z3Di5U2Ao3pVTZlea6Vng4cvQZ9trhxfYvypW o7ofhWvhaHAI7Wh+bDGoMLmI/TJ43FwKQPdGyH1eu1auQQacn+WvmQcyBkYz+ApBoKvk 1TR6lt7GNp3aehXaRvJ9MaLXFB5s5XoCDR7s039SyjQzhQuYM1P24+axYkC6QHwVsHHJ dXmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=Od87XXeJ; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id o138si3815188ywd.338.2018.11.30.11.24.16 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 30 Nov 2018 11:24:16 -0800 (PST) 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; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=Od87XXeJ; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:34341 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gSoOe-0001sw-C0 for patch@linaro.org; Fri, 30 Nov 2018 14:24:16 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40364) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gSoMt-0007ix-1b for qemu-devel@nongnu.org; Fri, 30 Nov 2018 14:22:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gSoMn-00083C-GD for qemu-devel@nongnu.org; Fri, 30 Nov 2018 14:22:26 -0500 Received: from mail-pl1-x641.google.com ([2607:f8b0:4864:20::641]:38426) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gSoMn-00082u-A0 for qemu-devel@nongnu.org; Fri, 30 Nov 2018 14:22:21 -0500 Received: by mail-pl1-x641.google.com with SMTP id e5so3265969plb.5 for ; Fri, 30 Nov 2018 11:22:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=IZG69suGTECshfy3cd2akZQXGen5UOXQzQiPI0zz0P0=; b=Od87XXeJR+o7he2Nl7IBjPba6NyqaQOe8CXCcSAty7hLHhHuptdDpKZg87dPxh3ZzZ 8ijRYv4ICU7ofG07XjtBtqCK4bN9LyETc4D9H2v97ld26e+X237UUu36O8AnSG1KtmUS KuZ5t4/0yLypjyuaQURmX/5wbF76hM5RKhzGc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=IZG69suGTECshfy3cd2akZQXGen5UOXQzQiPI0zz0P0=; b=swW/6gCrzy7uRMCfyRUXEjEgSWPk/J4mfQauWdtUUIbr21ATOhPslih4fFyf9G9EIU gZY3s0zYjvDWGBeIu5tWGn6RYQowzswegQgLNUaBRszzYJ8cSvpqx6Zr/McAq7nt2mz3 zl1LnLwUOleu2lqWJXXxJTtknFV+raVcO02FkfkxzMylrzzZcbLdJ9xSxLgoU8Jd9JoN J2uU2uPbTCLFrFtOq487zQLytl/ziJ2182r3HmRgPwpl8/Dxdb8V4R3D2ZU6ypRwOTBt 9jcLnh+2aXtkpFUtzPA5Wq39LH1G2CzOPq2ehM0eMRspTxBImBXIgbzLwz+aDAzFpr0V YCVQ== X-Gm-Message-State: AA+aEWYfj8KnESy32ZKyzn2lgmvARtwTktBDtYrS4Mkbdl+jUiW0+ni/ DQkIKUuIfH4zq25Vl++X7JaTPliDvDE= X-Received: by 2002:a17:902:e002:: with SMTP id ca2mr6968329plb.103.1543605740025; Fri, 30 Nov 2018 11:22:20 -0800 (PST) Received: from cloudburst.twiddle.net (97-113-170-180.tukw.qwest.net. [97.113.170.180]) by smtp.gmail.com with ESMTPSA id b185sm12941494pga.85.2018.11.30.11.22.18 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 30 Nov 2018 11:22:19 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Date: Fri, 30 Nov 2018 11:22:15 -0800 Message-Id: <20181130192216.26987-2-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.2 In-Reply-To: <20181130192216.26987-1-richard.henderson@linaro.org> References: <20181130192216.26987-1-richard.henderson@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::641 Subject: [Qemu-devel] [PATCH for-4.0 1/2] target/s390x: Move TOD_UNIX_EPOCH to cpu.h 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: , Cc: qemu-s390x@nongnu.org, cohuck@redhat.com, david@redhat.com Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" We will need this from CONFIG_USER_ONLY as well, which cannot access include/hw/. Signed-off-by: Richard Henderson --- include/hw/s390x/tod.h | 3 --- target/s390x/cpu.h | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) -- 2.17.2 Reviewed-by: Thomas Huth Reviewed-by: David Hildenbrand diff --git a/include/hw/s390x/tod.h b/include/hw/s390x/tod.h index 413c0d7c02..6ec4fb426c 100644 --- a/include/hw/s390x/tod.h +++ b/include/hw/s390x/tod.h @@ -44,9 +44,6 @@ typedef struct S390TODClass { void (*set)(S390TODState *td, const S390TOD *tod, Error **errp); } S390TODClass; -/* The value of the TOD clock for 1.1.1970. */ -#define TOD_UNIX_EPOCH 0x7d91048bca000000ULL - /* Converts ns to s390's clock format */ static inline uint64_t time2tod(uint64_t ns) { diff --git a/target/s390x/cpu.h b/target/s390x/cpu.h index 8c2320e882..d8049d181a 100644 --- a/target/s390x/cpu.h +++ b/target/s390x/cpu.h @@ -797,4 +797,7 @@ void s390_init_sigp(void); /* outside of target/s390x/ */ S390CPU *s390_cpu_addr2state(uint16_t cpu_addr); +/* The value of the TOD clock for 1.1.1970. */ +#define TOD_UNIX_EPOCH 0x7d91048bca000000ULL + #endif