From: Aurelien Jarno <aurelien@aurel32.net>
To: qemu-devel@nongnu.org
Cc: Alexander Graf <agraf@suse.de>,
Aurelien Jarno <aurelien@aurel32.net>,
Richard Henderson <rth@twiddle.net>
Subject: [Qemu-devel] [PATCH 3/5] target-s390x: streamline STCK helper
Date: Mon, 18 May 2015 23:42:27 +0200 [thread overview]
Message-ID: <1431985349-11226-4-git-send-email-aurelien@aurel32.net> (raw)
In-Reply-To: <1431985349-11226-1-git-send-email-aurelien@aurel32.net>
Now that clock_value is only used in one place, we can inline it in
the STCK helper.
Cc: Alexander Graf <agraf@suse.de>
Cc: Richard Henderson <rth@twiddle.net>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
---
target-s390x/misc_helper.c | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/target-s390x/misc_helper.c b/target-s390x/misc_helper.c
index 120807f..fa105fa 100644
--- a/target-s390x/misc_helper.c
+++ b/target-s390x/misc_helper.c
@@ -268,7 +268,8 @@ void HELPER(spx)(CPUS390XState *env, uint64_t a1)
tlb_flush_page(cs, TARGET_PAGE_SIZE);
}
-static inline uint64_t clock_value(CPUS390XState *env)
+/* Store Clock */
+uint64_t HELPER(stck)(CPUS390XState *env)
{
uint64_t time;
@@ -278,12 +279,6 @@ static inline uint64_t clock_value(CPUS390XState *env)
return time;
}
-/* Store Clock */
-uint64_t HELPER(stck)(CPUS390XState *env)
-{
- return clock_value(env);
-}
-
/* Set Clock Comparator */
void HELPER(sckc)(CPUS390XState *env, uint64_t time)
{
--
2.1.4
next prev parent reply other threads:[~2015-05-18 21:42 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-18 21:42 [Qemu-devel] [PATCH 0/5] Clean and improve time related helpers Aurelien Jarno
2015-05-18 21:42 ` [Qemu-devel] [PATCH 1/5] target-s390x: add a tod2time function Aurelien Jarno
2015-05-18 21:42 ` [Qemu-devel] [PATCH 2/5] target-s390x: simplify SCKC helper Aurelien Jarno
2015-05-18 21:42 ` Aurelien Jarno [this message]
2015-05-18 21:42 ` [Qemu-devel] [PATCH 4/5] target-s390x: implement STCKC helper Aurelien Jarno
2015-05-18 21:42 ` [Qemu-devel] [PATCH 5/5] target-s390x: implement STPT helper Aurelien Jarno
2015-05-25 22:02 ` [Qemu-devel] [PATCH 0/5] Clean and improve time related helpers Alexander Graf
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=1431985349-11226-4-git-send-email-aurelien@aurel32.net \
--to=aurelien@aurel32.net \
--cc=agraf@suse.de \
--cc=qemu-devel@nongnu.org \
--cc=rth@twiddle.net \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).