Enable libunwind on riscv64
authordrahn <drahn@openbsd.org>
Wed, 28 Apr 2021 22:45:33 +0000 (22:45 +0000)
committerdrahn <drahn@openbsd.org>
Wed, 28 Apr 2021 22:45:33 +0000 (22:45 +0000)
getWCookie() is an OpenBSD addition that is needed on new architectures.
ok kettenis@

gnu/llvm/libunwind/src/Registers.hpp

index 3fd8b8a..16824ca 100644 (file)
@@ -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