File tree 2 files changed +31
-0
lines changed
2 files changed +31
-0
lines changed Original file line number Diff line number Diff line change @@ -112,6 +112,19 @@ library
112
112
Data.Macaw.RISCV.Symbolic.Panic
113
113
Data.Macaw.RISCV.Symbolic.Repeat
114
114
115
+ executable macaw-riscv-dump
116
+ hs-source-dirs : tools
117
+ main-is : Dump.hs
118
+ default-language : Haskell2010
119
+ ghc-options : -Wall -Wcompat
120
+ build-depends :
121
+ base,
122
+ containers,
123
+ macaw-dump,
124
+ macaw-riscv,
125
+ macaw-riscv-symbolic,
126
+ macaw-symbolic
127
+
115
128
test-suite macaw-riscv-symbolic-tests
116
129
import : shared
117
130
Original file line number Diff line number Diff line change
1
+ {-# LANGUAGE ImportQualifiedPost #-}
2
+ {-# LANGUAGE TypeApplications #-}
3
+
4
+ module Main (main ) where
5
+
6
+ import Data.Macaw.Dump qualified as MD
7
+ import Data.Macaw.RISCV qualified as MR
8
+ import Data.Macaw.RISCV.Symbolic ()
9
+ import Data.Macaw.Symbolic qualified as MS
10
+ import Data.Proxy (Proxy (.. ))
11
+
12
+ main :: IO ()
13
+ main = do
14
+ archVals <-
15
+ case MS. archVals (Proxy @ MR. RISCV ) Nothing of
16
+ Just archVals -> pure archVals
17
+ Nothing -> error " impossible"
18
+ MD. main MR. riscv_info archVals MR. riscvPLTStubInfo
You can’t perform that action at this time.
0 commit comments