Tristan Ravitch
aee4309c85
Merge branch 'master' of github.com:GaloisInc/macaw-semmc into HEAD
2018-07-03 17:53:41 -07:00
Tristan Ravitch
332e85b8b1
ppc: Implement semantics for TD and TDI
...
The semantics for these instructions cannot be represented in our semantics
language, as they have side effects (i.e., they trap). This currently means
that we have to implement their semantics by hand in macaw-ppc.
2018-07-03 17:44:40 -07:00
Tristan Ravitch
b417cec636
ppc: Update to the test_bit_dynamic changes in semmc-ppc
...
This splits test_bit_dynamic into a 32 bit case and a 64 bit case
2018-07-03 17:44:06 -07:00
Luke Maurer
b70231334a
Merge branch 'df'
2018-07-03 14:27:01 -07:00
Luke Maurer
3548613d3a
Merge branch 'df' of github.com:GaloisInc/macaw-semmc into df
2018-07-03 13:13:32 -07:00
Luke Maurer
6477e710d4
Use "df_" rather than "_df_" as prefix for defined functions
...
The underscore squelches potentially useful warnings, since if a defined
function isn't being used, something is indeed wrong.
2018-07-03 13:10:06 -07:00
Luke Maurer
2a6686375f
Update semmc
2018-07-03 12:24:34 -07:00
Luke Maurer
7232622bd8
Support defined functions in PPC32; use all defined functions in PPC
2018-07-03 12:24:34 -07:00
Luke Maurer
2b5adeb1c4
Support for defined functions in PPC64
2018-07-03 12:24:34 -07:00
Luke Maurer
47d9d61998
Remove now-unnecessary optimization flags
...
The spliced TH code has gotten small enough that running multiple
iterations of the simplifier isn't horrible.
2018-07-03 12:24:34 -07:00
Luke Maurer
40bc26f21f
Update semmc
2018-07-03 12:24:34 -07:00
Luke Maurer
3a44feda6a
Whitespace error
2018-07-03 12:23:36 -07:00
Luke Maurer
eaca69e13b
Use defined functions to generate TH for ARM
2018-07-03 12:23:36 -07:00
Luke Maurer
f6e58bbd47
Support defined functions in TH
2018-07-03 12:23:36 -07:00
Tristan Ravitch
a8caa0985d
Submodule updates
2018-07-02 20:54:53 -07:00
Luke Maurer
26519002ab
Update semmc
2018-06-29 11:00:42 -07:00
Luke Maurer
fedf457e02
Support defined functions in PPC32; use all defined functions in PPC
2018-06-29 10:53:48 -07:00
Luke Maurer
33a4805b01
Support for defined functions in PPC64
2018-06-28 15:44:06 -07:00
Luke Maurer
c8f4146e1f
Remove now-unnecessary optimization flags
...
The spliced TH code has gotten small enough that running multiple
iterations of the simplifier isn't horrible.
2018-06-28 13:38:04 -07:00
Luke Maurer
633df42860
Enable caching in What4 expression builder
...
With caching disabled, we weren't doing any sharing recovery when
emitting Template Haskell. The cache in the `MacawQ` monad wasn't
helping because the expression builder generates a fresh nonce for each
expression it doesn't find in the cache; with no cache, every
subexpression was distinct from every other one.
2018-06-28 11:11:02 -07:00
Luke Maurer
bc9fb08f6f
Update semmc
2018-06-28 10:12:23 -07:00
Luke Maurer
457c8cec2e
Enable caching in What4 expression builder
2018-06-28 10:12:04 -07:00
Luke Maurer
0b37eff77e
Whitespace error
2018-06-26 11:35:50 -07:00
Luke Maurer
d3c40eb308
Use defined functions to generate TH for ARM
2018-06-26 11:04:29 -07:00
Luke Maurer
fbdae275cb
Support defined functions in TH
2018-06-26 11:04:07 -07:00
Tristan Ravitch
cad178cd62
ppc: Fix identifyReturn
...
Some recent semantics fixes broke a fragile pattern in identifyReturn; there is
now an extra shiftR.
2018-06-14 14:57:32 -07:00
Daniel Wagner
04e867bf4b
future-proof alignment detection
2018-06-12 14:18:19 -04:00
Daniel Wagner
082e024b55
bump deps
2018-06-11 13:13:11 -04:00
Daniel Wagner
9874e6db20
IP alignment rulesfor PPC
2018-06-11 10:36:18 -04:00
Daniel Wagner
9e8279e70c
fix alignment detection to match updated extract definition
2018-06-08 11:50:36 -04:00
Daniel Wagner
b7ec429874
add alignment information for PPC64
2018-06-01 15:35:41 -04:00
Daniel Wagner
989eb30a85
bump macaw dep
2018-06-01 15:35:41 -04:00
Ben Selfridge
6a5524e464
Fixed macaw-arm bound variable for UF bug
2018-06-01 10:23:34 -07:00
Ben Selfridge
2427ddf048
fixed stack and used Data.Functor.Product instead of hand-rolled type
2018-05-24 14:09:49 -07:00
Kevin Quick
138db42d15
[arm] Remove unneeded import.
2018-05-22 13:18:31 -07:00
Kevin Quick
30296f081c
[arm] Update for semmc renaming from ARM to AArch32.
2018-05-22 13:18:05 -07:00
Tristan Ravitch
4ca53dfb5c
Submodule updates
...
The code was already updated, but there were some missing submodule updates
2018-05-21 17:53:10 -07:00
Tristan Ravitch
b15f360d25
Documentation updates
2018-05-21 17:53:01 -07:00
Tristan Ravitch
9664914923
Update the PowerPC tests to deal with the latest macaw-semmc changes
...
The new binary loading interface does manage to simplify things
2018-05-21 14:32:29 -07:00
Tristan Ravitch
7cbd23dbf8
Add a generic interface for finding the entry points of a binary
...
Includes implementations for x86 and PowerPC 64/32
2018-05-20 21:41:21 -07:00
Tristan Ravitch
796e8bc29e
ppc: Generalize some error handling around the TOC
2018-05-18 19:31:18 -07:00
Tristan Ravitch
d6c2446a00
Whitespace
2018-05-18 17:52:18 -07:00
Tristan Ravitch
84473060e3
Generalize the lookup/update register assignment utilities
...
Instead of having them return 'Maybe', use 'MonadThrow'
2018-05-18 17:50:22 -07:00
Tristan Ravitch
c4118b9fff
Clean up the TOC function implementation
2018-05-18 17:50:02 -07:00
Tristan Ravitch
c228cca75c
Merge branch 'master' of github.com:GaloisInc/macaw-semmc into HEAD
2018-05-18 15:28:59 -07:00
Tristan Ravitch
1ed8d66dc7
Improve the BinaryLoader interface
...
It is now (optionally) pure via the MonadThrow class. It also exposes a new
binary format repr, which currently only has constructors for ELF containers.
2018-05-18 15:26:19 -07:00
Kevin Quick
f81f2437ee
Update for crucible reorganization and new what4 module.
2018-05-18 08:33:58 -07:00
Tristan Ravitch
556cfa5a47
Merge branch 'master' of github.com:GaloisInc/macaw-semmc into HEAD
2018-05-17 16:06:56 -07:00
Tristan Ravitch
27810cdbf3
Add a draft of a generic binary loading interface, simplify TOC handling on PPC
...
The generic binary loading interface is instantiated once for each
architecture/binary container pair. This isn't great, but there is enough
custom work in each setting to justify it.
The binary loading interface isn't finished yet, and needs to learn some
additional operations to support relocation. It already supports additional
information that is architecture specific and binary container format
specific (that operations will have to use on a per-format basis).
On the PowerPC side, the Table of Contents (TOC) is now architecture-specific
information constructed by the loader (currently from ELF binaries). The new
TOC data type is in place to support this more easily (the old format was just a
function).
2018-05-17 16:03:04 -07:00
Kevin Quick
4a3688cad1
Anoter semmc submodule reference update.
2018-05-17 15:08:06 -07:00