From: drahn Date: Wed, 28 Apr 2021 22:45:33 +0000 (+0000) Subject: Enable libunwind on riscv64 X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=358ba3741a583763f08890a2fe00370d21ebda9c;p=openbsd Enable libunwind on riscv64 getWCookie() is an OpenBSD addition that is needed on new architectures. ok kettenis@ --- diff --git a/gnu/llvm/libunwind/src/Registers.hpp b/gnu/llvm/libunwind/src/Registers.hpp index 3fd8b8abf1d..16824caa042 100644 --- a/gnu/llvm/libunwind/src/Registers.hpp +++ b/gnu/llvm/libunwind/src/Registers.hpp @@ -3894,6 +3894,7 @@ public: void setSP(uint64_t value) { _registers[2] = value; } uint64_t getIP() const { return _registers[0]; } void setIP(uint64_t value) { _registers[0] = value; } + uint64_t getWCookie() const { return 0; } private: // _registers[0] holds the pc