Message ID | 20180419135901.30035-30-alex.bennee@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org> 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=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="hkY8zpPn"; dkim-atps=neutral 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 40RhMR4MDNz9s1w for <incoming@patchwork.ozlabs.org>; Fri, 20 Apr 2018 00:34:27 +1000 (AEST) Received: from localhost ([::1]:50920 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>) id 1f9Adl-0004RO-Hr for incoming@patchwork.ozlabs.org; Thu, 19 Apr 2018 10:34:25 -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-Google-Smtp-Source: AIpwx49vHWLr1EhwmN/5q0NdXZQCURFpJkmt4+Z1uhO16B7jBBnFHwl3Co5XTBZN/PaSrtKdHUdD0w== 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+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+incoming=patchwork.ozlabs.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