-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
riscv-symbolic: Split 32-bit and 64-bit
dump
CLIs
- Loading branch information
Your Name
committed
Nov 13, 2024
1 parent
ba19e98
commit cff4945
Showing
3 changed files
with
39 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{-# LANGUAGE ImportQualifiedPost #-} | ||
{-# LANGUAGE TypeApplications #-} | ||
|
||
module Main (main) where | ||
|
||
import Data.Macaw.Dump qualified as MD | ||
import Data.Macaw.RISCV qualified as MR | ||
import Data.Macaw.RISCV.Symbolic () | ||
import Data.Macaw.Symbolic qualified as MS | ||
import Data.Proxy (Proxy(..)) | ||
import GRIFT.Types qualified as G | ||
|
||
main :: IO () | ||
main = do | ||
archVals <- | ||
case MS.archVals (Proxy @(MR.RISCV G.RV64GC)) Nothing of | ||
Just archVals -> pure archVals | ||
Nothing -> error "impossible" | ||
MD.main (MR.riscv_info G.rv64GCRepr) archVals MR.riscvPLTStubInfo |