Displaying 20 results from an estimated 50 matches for "__powerpc64__".
2013 Jul 27
1
[LLVMdev] arch-specific predefines in LLVM's source
...only
>>>> provided
>>>> __ppc__. I was wondering if this justifies using simpler macros
>>>> like
>>>>
>>>> #define LLVM_PPC (defined(__ppc__) || defined(__powerpc__) ...)
>>>> #define LLVM_PPC64 (defined(__ppc64__) || defined(__powerpc64__)
>>>> ...)
>> or define more clearly:
>>
>> #define LLVM_PPC32 (((defined(__ppc__) || defined(__powerpc__)) &&
>> !LLVM_PPC64)
>> #define LLVM_PPC_ANY (LLVM_PPC32 || LLVM_PPC64)
>>
>> or
>>
>> #define LLVM_PPC_ANY (defined(__...
2013 Jul 26
2
[LLVMdev] arch-specific predefines in LLVM's source
...powerpc-apple-darwin8 stage1 tests, since the system gcc only
>> provided
>> __ppc__. I was wondering if this justifies using simpler macros like
>>
>> #define LLVM_PPC (defined(__ppc__) || defined(__powerpc__) ...)
>> #define LLVM_PPC64 (defined(__ppc64__) || defined(__powerpc64__) ...)
>
> A general note: Given all of the compiler variance out there regarding whether the 32-bit macros are also defined on the 64-bit systems, I really think that you'll need to arrange these as:
>
> #define LLVM_PPC64 (defined(__ppc64__) || defined(__powerpc64__) ...)
> #def...
2013 Jul 27
0
[LLVMdev] arch-specific predefines in LLVM's source
...ce the system gcc only
> >> provided
> >> __ppc__. I was wondering if this justifies using simpler macros
> >> like
> >>
> >> #define LLVM_PPC (defined(__ppc__) || defined(__powerpc__) ...)
> >> #define LLVM_PPC64 (defined(__ppc64__) || defined(__powerpc64__)
> >> ...)
> >
> > A general note: Given all of the compiler variance out there
> > regarding whether the 32-bit macros are also defined on the 64-bit
> > systems, I really think that you'll need to arrange these as:
> >
> > #define LLVM_PPC64 (defin...
2013 Jul 25
2
[LLVMdev] arch-specific predefines in LLVM's source
...nly checking __powerpc__), which broke my
powerpc-apple-darwin8 stage1 tests, since the system gcc only provided
__ppc__. I was wondering if this justifies using simpler macros like
#define LLVM_PPC (defined(__ppc__) || defined(__powerpc__) ...)
#define LLVM_PPC64 (defined(__ppc64__) || defined(__powerpc64__) ...)
I've even seen __POWERPC__, _POWER, _ARCH_PPC being tested in
conditionals.
These proposed standardized macros would only be used in LLVM project
sources; there's no reason to exported them.
The standardized macros would simplify conditionals and make their use
less error-prone....
2018 Sep 03
2
[PATCH v3] ppc64le: Use -machine cap-htm=off unconditionally
Of course I mean state=off (not <htm state=on>) ...
Rich.
2018 Sep 03
3
[PATCH] ppc64le: Use -machine cap-htm=off unconditionally
Unfortunately I was not able to test this because I don't
currently have access to a P9 machine.
Rich.
2013 Jul 26
0
[LLVMdev] arch-specific predefines in LLVM's source
...hich broke my
> powerpc-apple-darwin8 stage1 tests, since the system gcc only
> provided
> __ppc__. I was wondering if this justifies using simpler macros like
>
> #define LLVM_PPC (defined(__ppc__) || defined(__powerpc__) ...)
> #define LLVM_PPC64 (defined(__ppc64__) || defined(__powerpc64__) ...)
A general note: Given all of the compiler variance out there regarding whether the 32-bit macros are also defined on the 64-bit systems, I really think that you'll need to arrange these as:
#define LLVM_PPC64 (defined(__ppc64__) || defined(__powerpc64__) ...)
#define LLVM_PPC !LLVM_PPC6...
2018 Sep 03
1
Re: [PATCH] ppc64le: Use -machine cap-htm=off unconditionally (RHBZ#1614948).
...4
> --- a/lib/launch-direct.c
> +++ b/lib/launch-direct.c
> @@ -523,6 +523,9 @@ launch_direct (guestfs_h *g, void *datav, const char *arg)
> #ifdef __aarch64__
> if (has_kvm && !force_tcg)
> append_list ("gic-version=host");
> +#endif
> +#ifdef __powerpc64__
> + append_list ("cap-htm=off");
> #endif
Which version of qemu was this introduced in?
> diff --git a/lib/launch-libvirt.c b/lib/launch-libvirt.c
> index 48404ef93..53284fc08 100644
> --- a/lib/launch-libvirt.c
> +++ b/lib/launch-libvirt.c
> @@ -1181,6 +1181,16...
2017 May 17
7
[PATCH 1/5] s390x: launch: libvirt: Use <console> device sclp for appliance debug messages (RHBZ#1376547).
Thanks: Cole Robinson, Dan Horak, Thomas Huth.
---
lib/launch-libvirt.c | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/lib/launch-libvirt.c b/lib/launch-libvirt.c
index f66c8e0ef..4adb2cfb3 100644
--- a/lib/launch-libvirt.c
+++ b/lib/launch-libvirt.c
@@ -1359,6 +1359,7 @@ construct_libvirt_xml_devices (guestfs_h *g,
return -1;
}
+#ifndef __s390x__
/*
2017 May 17
0
[PATCH 3/5] s390x: appliance: Use /dev/ttysclp0 for serial console.
...cmdline.c b/lib/appliance-kcmdline.c
index 4dde7a865..a394e6e67 100644
--- a/lib/appliance-kcmdline.c
+++ b/lib/appliance-kcmdline.c
@@ -40,11 +40,19 @@
guestfs_int_string_is_valid ((term), 1, 16, \
VALID_FLAG_ALPHA|VALID_FLAG_DIGIT, "-_")
-#if defined(__powerpc64__)
+#ifdef __powerpc64__
#define SERIAL_CONSOLE "console=hvc0 console=ttyS0"
-#elif defined(__arm__) || defined(__aarch64__)
+#endif
+
+#if defined(__arm__) || defined(__aarch64__)
#define SERIAL_CONSOLE "console=ttyAMA0"
-#else
+#endif
+
+#ifdef __s390x__
+#define SERIAL_CONSOL...
2018 Aug 28
1
[PATCH] ppc64le: Remove bogus __powerpc64le__.
...a/common/qemuopts/qemuopts.c
+++ b/common/qemuopts/qemuopts.c
@@ -552,7 +552,7 @@ qemuopts_set_binary_by_arch (struct qemuopts *qopts, const char *arch)
binary = strdup ("qemu-system-aarch64");
#elif defined(__arm__)
binary = strdup ("qemu-system-arm");
-#elif defined(__powerpc64__) || defined(__powerpc64le__)
+#elif defined(__powerpc64__)
binary = strdup ("qemu-system-ppc64");
#elif defined(__s390x__)
binary = strdup ("qemu-system-s390x");
--
2.18.0
2018 Sep 03
0
[PATCH] ppc64le: Use -machine cap-htm=off unconditionally (RHBZ#1614948).
...irect.c
index 47e8f37de..94dd995c6 100644
--- a/lib/launch-direct.c
+++ b/lib/launch-direct.c
@@ -523,6 +523,9 @@ launch_direct (guestfs_h *g, void *datav, const char *arg)
#ifdef __aarch64__
if (has_kvm && !force_tcg)
append_list ("gic-version=host");
+#endif
+#ifdef __powerpc64__
+ append_list ("cap-htm=off");
#endif
append_list_format ("accel=%s", !force_tcg ? "kvm:tcg" : "tcg");
} end_list ();
diff --git a/lib/launch-libvirt.c b/lib/launch-libvirt.c
index 48404ef93..53284fc08 100644
--- a/lib/launch-libvirt.c
+++ b/lib/l...
2018 Sep 03
1
[PATCH v2] ppc64le: Use -machine cap-htm=off unconditionally
v1 was here:
https://www.redhat.com/archives/libguestfs/2018-September/thread.html#00000
v2:
- Make conditional on qemu >= 2.11.2 and libvirt >= 4.6.0.
- Fix the libvirt XML to match what went upstream.
Still untested.
Rich.
2018 Sep 03
0
[PATCH v3] ppc64le: Use -machine cap-htm=off unconditionally (RHBZ#1614948).
...rect.c
index 47e8f37de..e99c33347 100644
--- a/lib/launch-direct.c
+++ b/lib/launch-direct.c
@@ -523,6 +523,10 @@ launch_direct (guestfs_h *g, void *datav, const char *arg)
#ifdef __aarch64__
if (has_kvm && !force_tcg)
append_list ("gic-version=host");
+#endif
+#ifdef __powerpc64__
+ if (guestfs_int_version_ge (&data->qemu_version, 2, 11, 2))
+ append_list ("cap-htm=off");
#endif
append_list_format ("accel=%s", !force_tcg ? "kvm:tcg" : "tcg");
} end_list ();
diff --git a/lib/launch-libvirt.c b/lib/launch-libvirt....
2006 Jun 02
1
Re: [PATCH] klibc
...On Thu, 01 Jun 2006, Bob Picco wrote:
> >>
> >> -#if !defined(__x86_64__) && !defined(__ia64__) && !defined(__sparc_v9__)
> >> +#if !defined(__x86_64__) && !defined(__ia64__) && !defined(__sparc_v9__) && \
> >> + !defined(__powerpc64__)
> >
> > Why not just !defined(__LP64__) ?
>
> _BITSIZE == 64 is really the right formula... if I remember correctly, there were some
> 64-bit platforms (Alpha?) which didn't conform, though. I will look at this later today.
>
> -hpa
indeed aboves line contains...
2016 Jul 13
2
[LLVM/Clang v3.8.1] Missing Git branches/tags and source-tarballs?
On Wed, Jul 13, 2016 at 04:48:51PM +0200, Sedat Dilek via llvm-dev wrote:
> [ CCed all people who were involved in this thread ]
>
> Hi Tom,
>
> personally, I am interested to test the prebuilt-toolchains for
> Ubuntu/xenial alias 16.04 LTS and Debian/Jessie v8.5.0 AMD64.
> The available toolchains are incomplete and thus useless.
>
> Just as a fact: There is still no
2020 Jan 07
0
[RFT 05/13] powerpc: Constify ioreadX() iomem argument (as in generic implementation)
...ioread32(const void __iomem *addr)
{
return readl(addr);
}
-unsigned int ioread32be(void __iomem *addr)
+unsigned int ioread32be(const void __iomem *addr)
{
return readl_be(addr);
}
@@ -41,27 +41,27 @@ EXPORT_SYMBOL(ioread16be);
EXPORT_SYMBOL(ioread32);
EXPORT_SYMBOL(ioread32be);
#ifdef __powerpc64__
-u64 ioread64(void __iomem *addr)
+u64 ioread64(const void __iomem *addr)
{
return readq(addr);
}
-u64 ioread64_lo_hi(void __iomem *addr)
+u64 ioread64_lo_hi(const void __iomem *addr)
{
return readq(addr);
}
-u64 ioread64_hi_lo(void __iomem *addr)
+u64 ioread64_hi_lo(const void __iomem *add...
2016 Dec 18
0
[PATCH 2/2] launch: Validate $TERM before passing it through to the kernel command line.
...(const char *term)
+{
+ size_t len = strlen (term);
+
+ if (len == 0 || len > 16)
+ return 0;
+
+ while (len > 0) {
+ char c = *term++;
+ len--;
+ if (!c_isalnum (c) && c != '-' && c != '_')
+ return 0;
+ }
+
+ return 1;
+}
+
#if defined(__powerpc64__)
#define SERIAL_CONSOLE "console=hvc0 console=ttyS0"
#elif defined(__arm__) || defined(__aarch64__)
@@ -425,7 +449,7 @@ guestfs_int_appliance_command_line (guestfs_h *g, const char *appliance_dev,
guestfs_int_add_string (g, &argv, "guestfs_network=1");
/* TERM en...
2018 Aug 28
0
[PATCH] ppc64le: Don't use -cpu parameter under any circumstances (RHBZ#1605071).
...insertions(+)
diff --git a/lib/appliance-cpu.c b/lib/appliance-cpu.c
index a6c1b0faf..fa1bae3f9 100644
--- a/lib/appliance-cpu.c
+++ b/lib/appliance-cpu.c
@@ -76,6 +76,9 @@ guestfs_int_get_cpu_model (int kvm)
return "host";
else
return "cortex-a57";
+#elif defined(__powerpc64__)
+ /* See discussion in https://bugzilla.redhat.com/show_bug.cgi?id=1605071 */
+ return NULL;
#else
/* On most architectures, it is faster to pass the CPU host model to
* the appliance, allowing maximum speed for things like checksums
--
2.18.0
2007 Dec 06
0
[PATCH] xen: Make xen-blkfront write its protocol ABI to xenstore
...OWERPC64 "powerpc64-abi"
+
+#if defined(__i386__)
+# define XEN_IO_PROTO_ABI_NATIVE XEN_IO_PROTO_ABI_X86_32
+#elif defined(__x86_64__)
+# define XEN_IO_PROTO_ABI_NATIVE XEN_IO_PROTO_ABI_X86_64
+#elif defined(__ia64__)
+# define XEN_IO_PROTO_ABI_NATIVE XEN_IO_PROTO_ABI_IA64
+#elif defined(__powerpc64__)
+# define XEN_IO_PROTO_ABI_NATIVE XEN_IO_PROTO_ABI_POWERPC64
+#else
+# error arch fixup needed here
+#endif
+
+#endif
--
1.5.3.3