aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2016-06-29 15:48:03 -0700
committerRichard Henderson <rth@twiddle.net>2016-10-26 08:29:00 -0700
commit258dfaaad05a5fbe32a142b794e1df3e16501d0e (patch)
tree8a7fddb5f3d0b0f71ade22e9c2ada6ee038dc757 /include
parent84bca3927b36fb1d9a2ca85cbbdf9023d2b84678 (diff)
downloadqemu-258dfaaad05a5fbe32a142b794e1df3e16501d0e.zip
qemu-258dfaaad05a5fbe32a142b794e1df3e16501d0e.tar.gz
qemu-258dfaaad05a5fbe32a142b794e1df3e16501d0e.tar.bz2
exec: Avoid direct references to Int128 parts
Reviewed-by: Emilio G. Cota <cota@braap.org> Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'include')
-rw-r--r--include/qemu/int128.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/qemu/int128.h b/include/qemu/int128.h
index c598881..52aaf99 100644
--- a/include/qemu/int128.h
+++ b/include/qemu/int128.h
@@ -20,6 +20,16 @@ static inline uint64_t int128_get64(Int128 a)
return a.lo;
}
+static inline uint64_t int128_getlo(Int128 a)
+{
+ return a.lo;
+}
+
+static inline int64_t int128_gethi(Int128 a)
+{
+ return a.hi;
+}
+
static inline Int128 int128_zero(void)
{
return int128_make64(0);