This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
./qemu/build/ppc64-softmmu/qemu-system-ppc64 -enable-kvm \ | |
-m 64G,maxmem=512G,slots=16 \ | |
-smp 16,threads=1 \ | |
-object memory-backend-ram,size=16G,id=node0-ram0 \ | |
-object memory-backend-ram,size=16G,id=node0-ram1 \ | |
-object memory-backend-ram,size=16G,id=node1-ram0 \ | |
-object memory-backend-ram,size=16G,id=node1-ram1 \ | |
-object memory-backend-ram,size=16G,id=node2-ram0 \ | |
-object memory-backend-ram,size=16G,id=node2-ram1 \ | |
-object memory-backend-ram,size=16G,id=node3-ram0 \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef __powerpc64__ | |
#error "unsupported architecture" | |
#endif | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <errno.h> | |
#include <fcntl.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#undef __DEBUG__ | |
/* | |
* Connections | |
* NodeMCU D1 --> I2C LCD SCL | |
* NodeMCU D2 --> I2C LCD SDA | |
* NodeMCU VIN --> I2C LCD VCC | |
* NodeMCU GND --> I2C LCD GND | |
* | |
* P.S. This assumes that the NodeMCU board is powered |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* SPDX-License-Identifier: GPL-2.0-or-later | |
* Author: Sandipan Das | |
*/ | |
#if !defined(__x86_64__) && !defined(__powerpc64__) | |
#error "unsupported architecture" | |
#endif | |
#define _GNU_SOURCE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/fish | |
if not set -q argv[1]; or not set -q argv[2]; or not set -q argv[3]; or not set -q argv[4] | |
echo "usage: run-mbw <instances> <node> <iterations> <size>" | |
exit 1 | |
end | |
for i in (seq $argv[1]) | |
set result[$i] (mktemp) | |
numactl --cpunodebind=$argv[2] --membind=$argv[2] mbw -b 65536 -n $argv[3] $argv[4] > $result[$i] & |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef __powerpc64__ | |
#error "unsupported architecture" | |
#endif | |
#define _GNU_SOURCE | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <assert.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Compile as: | |
* powerpc64-linux-gnu-gcc -o vma-coverage -g -O0 \ | |
* -mcpu=powerpc64 -mno-altivec \ | |
* -mno-vsx -nostdlib -static \ | |
* vma-coverage.c | |
*/ | |
#ifndef __powerpc64__ | |
#error "unsupported architecture" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef __powerpc64__ | |
#error "unsupported architecture" | |
#endif | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <assert.h> | |
#include <unistd.h> | |
#include <sys/mman.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/sysdeps/powerpc/powerpc64/multiarch/bcopy.c b/sysdeps/powerpc/powerpc64/multiarch/bcopy.c | |
index 2aebfc0a8e..5163cdeea3 100644 | |
--- a/sysdeps/powerpc/powerpc64/multiarch/bcopy.c | |
+++ b/sysdeps/powerpc/powerpc64/multiarch/bcopy.c | |
@@ -24,6 +24,8 @@ extern __typeof (bcopy) __bcopy_ppc attribute_hidden; | |
extern __typeof (bcopy) __bcopy_power7 attribute_hidden; | |
libc_ifunc (bcopy, | |
+ (hwcap2 & PPC_FEATURE2_ARCH_3_00) | |
+ ? __bcopy_ppc : |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Compile as: | |
* powerpc64-linux-gnu-gcc -o radix-stress -g -O0 \ | |
* -mcpu=powerpc64 -mno-altivec \ | |
* -mno-vsx -nostdlib -static \ | |
* radix-stress.c | |
*/ | |
#ifndef __powerpc64__ | |
#error "unsupported architecture" |