diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2017-02-10 17:01:03 +0000 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2017-02-10 17:01:03 +0000 |
commit | 71c81d66264f8adeed2787eab056a9f62c12e079 (patch) | |
tree | fa38bb76bdd52aa54c6c55348fb5fe1fc1b0fccd /risugen | |
parent | ff847f5ce26e7970b9b36dd0e498a986e8b71bbe (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-x | risugen | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; |