summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorJulien Freche2020-08-12 11:46:25 -0700
committerJulien Freche2020-08-21 07:47:28 -0700
commitb7b561343dbc4d8661b8619d25f105b3c0d16245 (patch)
tree41fa8ccc51bfbe9f327cb88b6163b9c68fb4b334 /etc
parentabe0eaa903817f49895dd862ffb328148ba0e6ad (diff)
c2: make the global state API configurable for externally defined get/set functions
Diffstat (limited to 'etc')
-rw-r--r--etc/default_config.json7
1 files changed, 6 insertions, 1 deletions
diff --git a/etc/default_config.json b/etc/default_config.json
index 79f166af..945aa19c 100644
--- a/etc/default_config.json
+++ b/etc/default_config.json
@@ -25,6 +25,11 @@
// The sail_state struct will be passed to the following array
// of primops, which are specified via the "foo" string from
// val id = "foo" : ... in Sail.
- "state_primops": []
+ "state_primops": [],
+ // Control which sail_state variables accessors will be implemented
+ // by the consumer of the library. This is a list of regular expressions,
+ // if one of those regular expression matches the name of a sail_state variable,
+ // only the declaration of the accessors will be generated.
+ "external_state_api" : []
}
}