aboutsummaryrefslogtreecommitdiff
path: root/risugen
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2017-02-10 17:01:03 +0000
committerPeter Maydell <peter.maydell@linaro.org>2017-02-10 17:01:03 +0000
commit71c81d66264f8adeed2787eab056a9f62c12e079 (patch)
treefa38bb76bdd52aa54c6c55348fb5fe1fc1b0fccd /risugen
parentff847f5ce26e7970b9b36dd0e498a986e8b71bbe (diff)
Create new risugen_common module and put some functions in it
Create a new risugen_common module which we can use to store utility functions that any CPU-specific backend might need to use. Start it off with the implementations of open_bin(), close_bin(), insn32() and insn16(), and remove those from the per-CPU files. This requires us also to abstract out a way for the CPU backend to specify whether it wants insn32 and insn16 to write big or little endian values, so create one. Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'risugen')
-rwxr-xr-xrisugen1
1 files changed, 1 insertions, 0 deletions
diff --git a/risugen b/risugen
index 77a550b..b94eb6a 100755
--- a/risugen
+++ b/risugen
@@ -24,6 +24,7 @@ use Text::Balanced qw { extract_bracketed extract_multiple };
# same directory as this script.
use FindBin;
use lib "$FindBin::Bin";
+use risugen_common;
my %insn_details;