From 856ac4ee6fbc56495f32b6097828774ed9b2f687 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Thu, 13 Mar 2025 08:07:55 +0200 Subject: fixup node-12 riscv64 support Change-Id: I6e2929ca69a1e0089f2118163c56f8f35f5a1ff4 --- gnu/packages/patches/node-12-riscv64-support.patch | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/gnu/packages/patches/node-12-riscv64-support.patch b/gnu/packages/patches/node-12-riscv64-support.patch index 0e36ee64600..94b781a91f2 100644 --- a/gnu/packages/patches/node-12-riscv64-support.patch +++ b/gnu/packages/patches/node-12-riscv64-support.patch @@ -10302,10 +10302,10 @@ index 00000000000..aad09378f99 +#endif // V8_TARGET_ARCH_RISCV64 diff --git a/deps/v8/src/codegen/riscv64/interface-descriptors-riscv64.cc b/deps/v8/src/codegen/riscv64/interface-descriptors-riscv64.cc new file mode 100644 -index 00000000000..b27dd88ea80 +index 00000000000..805205adf20 --- /dev/null +++ b/deps/v8/src/codegen/riscv64/interface-descriptors-riscv64.cc -@@ -0,0 +1,327 @@ +@@ -0,0 +1,329 @@ +// Copyright 2021 the V8 project authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. @@ -10340,9 +10340,11 @@ index 00000000000..b27dd88ea80 +void WasmI64AtomicWaitDescriptor::InitializePlatformSpecific( + CallInterfaceDescriptorData* data) { + const Register default_stub_registers[] = {a0, a1, a2, a3}; -+ CHECK_EQ(static_cast(kParameterCount - kStackArgumentsCount), ++ //CHECK_EQ(static_cast(kParameterCount - kStackArgumentsCount), ++ CHECK_EQ(static_cast(kParameterCount), + arraysize(default_stub_registers)); -+ data->InitializePlatformSpecific(kParameterCount - kStackArgumentsCount, ++ //data->InitializePlatformSpecific(kParameterCount - kStackArgumentsCount, ++ data->InitializePlatformSpecific(kParameterCount, + default_stub_registers); +} + -- cgit v1.2.3