Message ID | 20180419135901.30035-30-alex.bennee@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.46.66.142 with SMTP id h14csp709339ljf; Thu, 19 Apr 2018 07:33:58 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+s1/dOzdYe1oKgKm9xyS4CpRl2O/j5fU+eIxgyyLh2GuqTUihV1KOAE9TSV9gPBu4gzrWO X-Received: by 2002:aed:3741:: with SMTP id i59-v6mr6299597qtb.172.1524148437953; Thu, 19 Apr 2018 07:33:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524148437; cv=none; d=google.com; s=arc-20160816; b=qF2558A+NRaYT+vI4AysiVsfI8ePQRUcM7vFD1o1nFRLqF6UDwWDcXZLoYDNuJVK9q wKC/iHWpdbn6eSGQwcC9W4xhBl81hDue4RoEmrYSjPQYae7QBO3pk9I6lzpUumIamcQQ Hsl0WHVVddILkPuPWdWKGvJDgn2RF+ku3LuZbSj5AFoEJ3eFVhF0jBJdYghkQOBUSyaz RzpBt5SUQry8VNVnv8zMEUxQLnkao4boNXUEAYoDutuv1ZeHLy9CN9nW7HDBIlRbhPb3 jixIziy9xvbks+o1/xBPf/dDzgbeKAws19Qjxs7fhv5HGabxnpQLEQYnRdxaJdNDXRHI tjCg== 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 :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=JY06l5DWxdJxKT634AuNPykbRw/99mm1S+tOMirFWWw=; b=wbvLmO2FvHPByPVpTH3RCJTL8abJD+87TPtZM11kV7nqzxqNTPmdrF3SoZMYq3ZH1d 3u7w0oJu0nhY0hycKIBPmI45RrN+uVvfnHsPEDLhz+ilm8pnigyX4IwWIWRmLSdAaS+w iUVWkkK1P8wQP6gLAYR4DG3n8reWPQFDNfKFaUyH9zBvaMcuBNNtnrjKbM/iVcxmI8P0 lbCs3w5EyNBQNFhBQTLYCktqUV1+SRGupIMYNg/Vhku84Ktj7j1iXGsPNnNLXwecT0zk 0pZcs962ptH+riKbRyPhIRqtA3ZJF4GBzgtKT0tYmlQF9UuaP8XFNNfg/9q441d9F95K n4Eg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=hkY8zpPn; 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: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id i62si1046117qkf.319.2018.04.19.07.33.57 for <patch@linaro.org> (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 19 Apr 2018 07:33:57 -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; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=hkY8zpPn; 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]:50920 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1f9AdJ-0004RO-AY for patch@linaro.org; Thu, 19 Apr 2018 10:33:57 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47415) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <alex.bennee@linaro.org>) id 1f9ADx-0004df-TD for qemu-devel@nongnu.org; Thu, 19 Apr 2018 10:07:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <alex.bennee@linaro.org>) id 1f9ADt-0005NA-DE for qemu-devel@nongnu.org; Thu, 19 Apr 2018 10:07:45 -0400 Received: from mail-wr0-x244.google.com ([2a00:1450:400c:c0c::244]:43740) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <alex.bennee@linaro.org>) id 1f9ADt-0005LH-47 for qemu-devel@nongnu.org; Thu, 19 Apr 2018 10:07:41 -0400 Received: by mail-wr0-x244.google.com with SMTP id u4-v6so14413631wrg.10 for <qemu-devel@nongnu.org>; Thu, 19 Apr 2018 07:07:41 -0700 (PDT) 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 :mime-version:content-transfer-encoding; bh=JY06l5DWxdJxKT634AuNPykbRw/99mm1S+tOMirFWWw=; b=hkY8zpPniSAaVN5PQa17OPqgdGkQBknWPTUjwd369McqUYUQuDkPvwLlesrPZhg2Cc X5JdXx3TGrvrwvwOjJYwicHzuKlcnC9As73wUkTbY++cB7CSwZjG9cjBdzzNrbEkrc/C YunS5tVw2JJbk8Ag0qk/TAnxqvpueL34qGFko= 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:mime-version:content-transfer-encoding; bh=JY06l5DWxdJxKT634AuNPykbRw/99mm1S+tOMirFWWw=; b=j85d1M+K7Wlr7T7jFW/Y0sX3BCwlxkNe6ZhhTYzxMLTAGBsEsXVjl/uYr5n9Ect8hI o1vFte+zENFNsqUS/60QouIyuQijB8mFAPKXKwpl37yHUrgXFCiPzdNa5+jHO38159Cc UKwvYyF26oiXUp0a+En7KBGKbLBqRCJMlZD4TJaZtmjv0XxUtB8cADY6ePeoS5eBpplq FM5Een6wt+J6voWHxjQT+amWEqAMK3AIuDMT8rOHcVQ0/62nBHboly87/mD0TpZuo6jy dpB+HO3SKdeYtQTD8fvKtoljjOuisVXQtmR0ApiRtamJcni0A6YcGbcMxrqUWjPZa/NR Jwzg== X-Gm-Message-State: ALQs6tCKSS9EzhgkmgMYhFGalnEJzYDwdqbWuvmgVOG3Te3OZJL5mMQm 5e90UroWeAaxWfrH/rI56by4Bw== X-Received: by 2002:adf:aac5:: with SMTP id i5-v6mr4574145wrc.16.1524146860134; Thu, 19 Apr 2018 07:07:40 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id a139sm5208890wma.43.2018.04.19.07.07.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Apr 2018 07:07:35 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id B61BB3E061C; Thu, 19 Apr 2018 14:59:03 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= <alex.bennee@linaro.org> To: peter.maydell@linaro.org, cota@braap.org, famz@redhat.com, berrange@redhat.com, f4bug@amsat.org, richard.henderson@linaro.org, balrogg@gmail.com, aurelien@aurel32.net, agraf@suse.de Date: Thu, 19 Apr 2018 14:58:47 +0100 Message-Id: <20180419135901.30035-30-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180419135901.30035-1-alex.bennee@linaro.org> References: <20180419135901.30035-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::244 Subject: [Qemu-devel] [PATCH v2 29/43] tests/tcg/aarch64: userspace system register test X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <http://lists.nongnu.org/archive/html/qemu-devel/> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: =?utf-8?q?Alex_Benn=C3=A9e?= <alex.bennee@linaro.org>, qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patch=linaro.org@nongnu.org> |
Series |
fix building of tests/tcg
|
expand
|
diff --git a/tests/tcg/aarch64/Makefile.target b/tests/tcg/aarch64/Makefile.target index 26be1c58ef..0727bd3bd2 100644 --- a/tests/tcg/aarch64/Makefile.target +++ b/tests/tcg/aarch64/Makefile.target @@ -7,7 +7,7 @@ VPATH += $(AARCH64_SRC) # we don't build any of the ARM tests AARCH64_TESTS=$(filter-out $(ARM_TESTS), $(TESTS)) -AARCH64_TESTS+=fcvt +AARCH64_TESTS+=fcvt sysregs TESTS:=$(AARCH64_TESTS) fcvt: LDFLAGS+=-lm diff --git a/tests/tcg/aarch64/sysregs.c b/tests/tcg/aarch64/sysregs.c new file mode 100644 index 0000000000..0cd0c42d8c --- /dev/null +++ b/tests/tcg/aarch64/sysregs.c @@ -0,0 +1,14 @@ +#include <stdio.h> + +#define get_cpu_reg(id) ({ \ + unsigned long __val; \ + asm("mrs %0, "#id : "=r" (__val)); \ + printf("%-20s: 0x%016lx\n", #id, __val); \ + }) + +int main(void) +{ + get_cpu_reg(cntvct_el0); + get_cpu_reg(cntfrq_el0); + return 0; +}
Signed-off-by: Alex Bennée <alex.bennee@linaro.org> --- tests/tcg/aarch64/Makefile.target | 2 +- tests/tcg/aarch64/sysregs.c | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 tests/tcg/aarch64/sysregs.c -- 2.17.0