All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Alex Bennée" <alex.bennee@linaro.org>
To: pbonzini@redhat.com
Cc: marc.zyngier@arm.com, christoffer.dall@linaro.org,
	drjones@redhat.com, kvm@vger.kernel.org,
	"Alex Bennée" <alex.bennee@linaro.org>
Subject: [kvm-unit-tests PATCH v2 1/3] sysregs: add __ACCESS_CP14 macro
Date: Thu, 18 May 2017 17:02:06 +0100	[thread overview]
Message-ID: <20170518160208.9674-2-alex.bennee@linaro.org> (raw)
In-Reply-To: <20170518160208.9674-1-alex.bennee@linaro.org>

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
---
 lib/arm/asm/sysreg.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/lib/arm/asm/sysreg.h b/lib/arm/asm/sysreg.h
index 02dbe3d..9344968 100644
--- a/lib/arm/asm/sysreg.h
+++ b/lib/arm/asm/sysreg.h
@@ -42,6 +42,11 @@
 #define __ACCESS_CP15_64(Op1, CRm)					\
 	"mrrc", "mcrr", xstr(p15, Op1, %Q0, %R0, CRm), u64
 
+#define __ACCESS_CP14(CRn, Op1, CRm, Op2)	\
+	"mrc", "mcr", xstr(p14, Op1, %0, CRn, CRm, Op2), u32
+#define __ACCESS_CP14_64(Op1, CRm)		\
+	"mrrc", "mcrr", xstr(p14, Op1, %Q0, %R0, CRm), u64
+
 #define __read_sysreg(r, w, c, t) ({				\
 			t __val;				\
 			asm volatile(r " " c : "=r" (__val));	\
-- 
2.13.0

  reply	other threads:[~2017-05-18 16:02 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-18 16:02 [kvm-unit-tests PATCH v2 0/3] ARM debug register test Alex Bennée
2017-05-18 16:02 ` Alex Bennée [this message]
2017-05-22 17:27   ` [kvm-unit-tests PATCH v2 1/3] sysregs: add __ACCESS_CP14 macro Andrew Jones
2017-05-18 16:02 ` [kvm-unit-tests PATCH v2 2/3] arm/run: ensure we use processor=host for kvm Alex Bennée
2017-05-18 16:03   ` Paolo Bonzini
2017-05-19  6:29     ` Christoffer Dall
2017-05-19  8:11       ` Paolo Bonzini
2017-05-22 17:25   ` Andrew Jones
2017-05-18 16:02 ` [kvm-unit-tests PATCH v2 3/3] arm/debugtest: test access to the debug registers for guest Alex Bennée
2017-05-22 16:56   ` Radim Krčmář
2017-05-22 18:40     ` Alex Bennée
2017-05-22 17:22   ` Andrew Jones
2017-05-22 18:41     ` Alex Bennée
2017-05-23  9:41       ` Andrew Jones
2017-05-23  9:50         ` Andrew Jones
2017-05-25 15:32 ` [kvm-unit-tests PATCH v2 0/3] ARM debug register test Paolo Bonzini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170518160208.9674-2-alex.bennee@linaro.org \
    --to=alex.bennee@linaro.org \
    --cc=christoffer.dall@linaro.org \
    --cc=drjones@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=marc.zyngier@arm.com \
    --cc=pbonzini@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.