use strict "subs";
unless ($return = do $specfile) {
- die "couldn't parse $specfile: $@" if $@;
- die "couldn't do $specfile: $!" unless defined $return;
- die "couldn't run $specfile" unless $return;
+ die "Fatal error: couldn't parse $specfile: $@" if $@;
+ die "Fatal error: couldn't do $specfile: $!" unless defined $return;
+ die "Fatal error: couldn't run $specfile" unless $return;
}
use strict "subs";
# generate header _t (internal usage) file
-open(OUT, ">$target_h_t") || die("Could not open $target_h_t, reason: $!\n");
+open(OUT, ">$target_h_t") || die("Fatal error: Could not open $target_h_t, reason: $!\n");
my $creation_time = localtime(time());
# generate header (external usage) file
-open(OUT, ">$target_h") || die("Could not open $target_h, reason: $!\n");
+open(OUT, ">$target_h") || die("Fatal error: Could not open $target_h, reason: $!\n");
$creation_time = localtime(time());
print OUT "extern arch_register_class_t $arch\_reg_classes[N_CLASSES];\n\n";
-print OUT "void ".$arch."_register_init(void *isa_ptr);\n\n";
+print OUT "void ".$arch."_register_init(void);\n\n";
print OUT @obst_header_all, "\n";
# generate c file
-open(OUT, ">$target_c") || die("Could not open $target_c, reason: $!\n");
+open(OUT, ">$target_c") || die("Fatal error: Could not open $target_c, reason: $!\n");
$creation_time = localtime(time());
print OUT @obst_regtypes_def, "\n";
-print OUT "void ${arch}_register_init(void *isa_ptr) {\n";
+print OUT "void ${arch}_register_init(void) {\n";
print OUT @obst_reginit;
print OUT "}\n\n";
else {
$class = get_reg_class($reg);
if (!defined $class) {
- die("Could not get ".uc($inout)." register class for '$op' pos $idx (reg $reg) ... exiting.\n");
+ die("Fatal error: Could not get ".uc($inout)." register class for '$op' pos $idx (reg $reg) ... exiting.\n");
}
else {
last GET_CLASS;
my ($class, $has_limit, $same_pos, $different_pos) = build_subset_class_func($n, $op, $idx, (($inout eq "in") ? 1 : 0), $reqs[$idx]);
if (!defined($class)) {
- die("Could not build subset for ".uc($inout)." requirements '$op' pos $idx ... exiting.\n");
+ die("Fatal error: Could not build subset for ".uc($inout)." requirements '$op' pos $idx ... exiting.\n");
}
if ($has_limit) {