-
Notifications
You must be signed in to change notification settings - Fork 12
/
aarch32.pl
51 lines (42 loc) · 1.05 KB
/
aarch32.pl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
use strict;
use warnings;
use Data::Dump qw/pp/;
use feature qw/say/;
use JSON::XS;
sub get_arch{'aarch32'}
require 'core.pl';
require 'node.pl';
require 'arm.pl';
require "db/attrs.pl";
require "db/aarch32/nodes.pl";
require "db/aarch32/enums.pl";
require "db/aarch32/invalid.pl";
require "db/aarch32/registers.pl";
foreach my $key (qw/cond-table tables/) {
require "db/aarch32/$key.pl";
}
foreach my $key (qw/basic fpsimd/) {
require "db/aarch32/$key/groups.pl";
require "db/aarch32/$key/iclasses.pl";
require "db/aarch32/$key/pages.pl";
require "db/aarch32/$key/classes.pl";
require "db/aarch32/$key/encodings.pl";
require "db/aarch32/$key/templates.pl";
}
my $records = records();
my $tables = tables();
my $enums = enums();
my $registers = registers();
my $environment = {
arch => 'aarch32',
version => '3',
enums => $enums,
records => $records,
tables => $tables,
registers => $registers,
};
my $json = JSON::XS->new->pretty(1)->encode($environment);
open my $fh, '>', 'json/aarch32.json';
print $fh $json;
close $fh;
1;