[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-ppc] [PATCH v5 1/7] host-utils: Move 128-bit guard macro to .c fil
From: |
Jose Ricardo Ziviani |
Subject: |
[Qemu-ppc] [PATCH v5 1/7] host-utils: Move 128-bit guard macro to .c file |
Date: |
Tue, 10 Jan 2017 00:10:08 -0200 |
It is not possible to implement functions in host-utils.c for
architectures with quadwords because the guard is implemented in the
Makefile. This patch move the guard out of the Makefile to the
implementation file.
Signed-off-by: Jose Ricardo Ziviani <address@hidden>
---
util/Makefile.objs | 2 +-
util/host-utils.c | 2 ++
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/util/Makefile.objs b/util/Makefile.objs
index ad0f9c7..39ae26e 100644
--- a/util/Makefile.objs
+++ b/util/Makefile.objs
@@ -11,7 +11,7 @@ util-obj-$(CONFIG_POSIX) += memfd.o
util-obj-$(CONFIG_WIN32) += oslib-win32.o
util-obj-$(CONFIG_WIN32) += qemu-thread-win32.o
util-obj-y += envlist.o path.o module.o
-util-obj-$(call lnot,$(CONFIG_INT128)) += host-utils.o
+util-obj-y += host-utils.o
util-obj-y += bitmap.o bitops.o hbitmap.o
util-obj-y += fifo8.o
util-obj-y += acl.o
diff --git a/util/host-utils.c b/util/host-utils.c
index b166e57..3495262 100644
--- a/util/host-utils.c
+++ b/util/host-utils.c
@@ -26,6 +26,7 @@
#include "qemu/osdep.h"
#include "qemu/host-utils.h"
+#ifndef CONFIG_INT128
/* Long integer helpers */
static inline void mul64(uint64_t *plow, uint64_t *phigh,
uint64_t a, uint64_t b)
@@ -158,4 +159,5 @@ int divs128(int64_t *plow, int64_t *phigh, int64_t divisor)
return overflow;
}
+#endif
--
2.7.4
- [Qemu-ppc] [PATCH v5 0/7] POWER9 TCG enablements - BCD functions - final part, Jose Ricardo Ziviani, 2017/01/09
- [Qemu-ppc] [PATCH v5 1/7] host-utils: Move 128-bit guard macro to .c file,
Jose Ricardo Ziviani <=
- [Qemu-ppc] [PATCH v5 2/7] host-utils: Implement unsigned quadword left/right shift and unit tests, Jose Ricardo Ziviani, 2017/01/09
- [Qemu-ppc] [PATCH v5 3/7] ppc: Implement bcds. instruction, Jose Ricardo Ziviani, 2017/01/09
- [Qemu-ppc] [PATCH v5 4/7] ppc: Implement bcdus. instruction, Jose Ricardo Ziviani, 2017/01/09
- [Qemu-ppc] [PATCH v5 5/7] ppc: Implement bcdsr. instruction, Jose Ricardo Ziviani, 2017/01/09
- [Qemu-ppc] [PATCH v5 6/7] ppc: Implement bcdtrunc. instruction, Jose Ricardo Ziviani, 2017/01/09
- [Qemu-ppc] [PATCH v5 7/7] ppc: Implement bcdutrunc. instruction, Jose Ricardo Ziviani, 2017/01/09