aboutsummaryrefslogtreecommitdiff
path: root/thumb.risu
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2011-02-11 13:51:43 +0000
committerPeter Maydell <peter.maydell@linaro.org>2011-02-11 13:51:43 +0000
commit3d6adbed9ff91489506f32376abb156929605912 (patch)
treee07c913ffcaa96b527a1b1e6f0a9ae7632b793f9 /thumb.risu
parentf0d351116770ebdc498021106f6ad14702647053 (diff)
Specify thumb vs ARM in the .risu file rather than command line
Add support to risugen for reading "directives" from the .risu config file as well as instruction patterns. Use this to allow the .risu file to specify whether it contains ARM mode or Thumb mode patterns, rather than forcing the risugen user to pass the correct command line argument for the .risu file being used.
Diffstat (limited to 'thumb.risu')
-rw-r--r--thumb.risu2
1 files changed, 2 insertions, 0 deletions
diff --git a/thumb.risu b/thumb.risu
index 81a52ef..bf77906 100644
--- a/thumb.risu
+++ b/thumb.risu
@@ -11,6 +11,8 @@
# Input file for risugen defining Thumb instructions
+.mode thumb
+
# The format here is:
# insnname encodingname bitfield ...
# (and we'll have a trailing bit for specifying constraints later)