mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-09-16 23:24:24 +00:00
python3-greenlet: upgrade 3.1.1 -> 3.2.0
0001-slp_switch-Implement-for-RISCV32.patch removed since it's included in 3.2.0 Changelog: ============ - Remove support for Python 3.7 and 3.8. - Add untested, community supported implementation for RiscV 32. - Make greenlet build and run on Python 3.14a7. It will not build on earlier 3.14 alpha releases, and may not build on later 3.14 releases. - Packaging: Use PEP 639 license expressions and include license files. Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
parent
ce4d60b466
commit
27af2f84bf
@ -1,48 +0,0 @@
|
|||||||
From 524fd7244cfec4ec6760e52001c9a41d1913066e Mon Sep 17 00:00:00 2001
|
|
||||||
From: Khem Raj <raj.khem@gmail.com>
|
|
||||||
Date: Sun, 6 Apr 2025 20:54:08 -0700
|
|
||||||
Subject: [PATCH] slp_switch: Implement for RISCV32
|
|
||||||
|
|
||||||
Changed data types from long to int for fp variable
|
|
||||||
stackref pointer and stsizediff variable
|
|
||||||
|
|
||||||
Changed the load instruction from ld (64-bit load) to lw (32-bit load)
|
|
||||||
|
|
||||||
Upstream-Status: Submitted [https://github.com/python-greenlet/greenlet/pull/439]
|
|
||||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
||||||
---
|
|
||||||
src/greenlet/platform/switch_riscv_unix.h | 11 ++++++++++-
|
|
||||||
1 file changed, 10 insertions(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/src/greenlet/platform/switch_riscv_unix.h b/src/greenlet/platform/switch_riscv_unix.h
|
|
||||||
index e74f37a..32ca78c 100644
|
|
||||||
--- a/src/greenlet/platform/switch_riscv_unix.h
|
|
||||||
+++ b/src/greenlet/platform/switch_riscv_unix.h
|
|
||||||
@@ -11,9 +11,14 @@
|
|
||||||
static int
|
|
||||||
slp_switch(void)
|
|
||||||
{
|
|
||||||
- long fp;
|
|
||||||
int ret;
|
|
||||||
+#if __riscv_xlen == 32
|
|
||||||
+ long fp;
|
|
||||||
long *stackref, stsizediff;
|
|
||||||
+#else
|
|
||||||
+ int fp;
|
|
||||||
+ int *stackref, stsizediff;
|
|
||||||
+#endif
|
|
||||||
__asm__ volatile ("" : : : REGS_TO_SAVE);
|
|
||||||
__asm__ volatile ("mv %0, fp" : "=r" (fp) : );
|
|
||||||
__asm__ volatile ("mv %0, sp" : "=r" (stackref) : );
|
|
||||||
@@ -28,7 +33,11 @@ slp_switch(void)
|
|
||||||
SLP_RESTORE_STATE();
|
|
||||||
}
|
|
||||||
__asm__ volatile ("" : : : REGS_TO_SAVE);
|
|
||||||
+#if __riscv_xlen == 32
|
|
||||||
+ __asm__ volatile ("lw fp, %0" : : "m" (fp));
|
|
||||||
+#else
|
|
||||||
__asm__ volatile ("ld fp, %0" : : "m" (fp));
|
|
||||||
+#endif
|
|
||||||
__asm__ volatile ("mv %0, zero" : "=r" (ret) : );
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
@ -4,10 +4,8 @@ LICENSE = "MIT & PSF-2.0"
|
|||||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=e95668d68e4329085c7ab3535e6a7aee \
|
LIC_FILES_CHKSUM = "file://LICENSE;md5=e95668d68e4329085c7ab3535e6a7aee \
|
||||||
file://LICENSE.PSF;md5=c106931d9429eda0492617f037b8f69a"
|
file://LICENSE.PSF;md5=c106931d9429eda0492617f037b8f69a"
|
||||||
|
|
||||||
SRC_URI[sha256sum] = "4ce3ac6cdb6adf7946475d7ef31777c26d94bccc377e070a7986bd2d5c515467"
|
SRC_URI[sha256sum] = "1d2d43bd711a43db8d9b9187500e6432ddb4fafe112d082ffabca8660a9e01a7"
|
||||||
|
|
||||||
inherit pypi python_setuptools_build_meta
|
inherit pypi python_setuptools_build_meta
|
||||||
|
|
||||||
SRC_URI += "file://0001-slp_switch-Implement-for-RISCV32.patch"
|
|
||||||
|
|
||||||
BBCLASSEXTEND = "native nativesdk"
|
BBCLASSEXTEND = "native nativesdk"
|
||||||
Loading…
x
Reference in New Issue
Block a user