From b399fc684d650fff6453ac5d74a2639553dd1608 Mon Sep 17 00:00:00 2001 From: Ast-x64 Date: Sat, 29 Oct 2022 11:07:06 +0900 Subject: [PATCH] Add support for RISCV64 The stack grows downwards. --- source/stdx/allocator/building_blocks/region.d | 1 + 1 file changed, 1 insertion(+) diff --git a/source/stdx/allocator/building_blocks/region.d b/source/stdx/allocator/building_blocks/region.d index 43d6c71..acf43d4 100644 --- a/source/stdx/allocator/building_blocks/region.d +++ b/source/stdx/allocator/building_blocks/region.d @@ -391,6 +391,7 @@ struct InSituRegion(size_t size, size_t minAlign = platformAlignment) else version (SPARC) enum growDownwards = Yes.growDownwards; else version (SystemZ) enum growDownwards = Yes.growDownwards; else version (WebAssembly) enum growDownwards = Yes.growDownwards; + else version (RISCV64) enum growDownwards = Yes.growDownwards; else static assert(0, "Dunno how the stack grows on this architecture."); @disable this(this);