[t][tools] Allow assigning to lowercase register names in parrot_debugger, since...
[parrot.git] / config / auto / cpu.pm
blob2172ca2be42d0caaa1784605bade985e27285918
1 # Copyright (C) 2001-2006, Parrot Foundation.
2 # $Id$
4 =head1 NAME
6 config/auto/cpu.pm - CPU specific Files
8 =head1 DESCRIPTION
10 Runs C<runstep()> in F<config/auto/cpu/${cpuarch}/auto.pm> if it exists.
12 =cut
14 package auto::cpu;
16 use strict;
17 use warnings;
19 use base qw(Parrot::Configure::Step);
21 use Parrot::Configure::Utils qw(copy_if_diff);
22 use Carp;
25 sub _init {
26 my $self = shift;
27 my %data;
28 $data{description} = q{Generate CPU specific stuff};
29 $data{result} = q{};
30 return \%data;
33 sub runstep {
34 my ( $self, $conf ) = @_;
36 my $verbose = $conf->options->get('verbose');
38 $conf->data->add( ' ', TEMP_atomic_o => '' ); # assure a default
40 my $hints = "auto::cpu::" . $conf->data->get('cpuarch') . "::auto";
42 print "\t(cpu hints = '$hints') " if $verbose;
44 eval "use $hints";
45 unless ($@) {
46 $hints->runstep( $conf, @_ );
48 else {
49 print "(no cpu specific hints)" if $verbose;
52 return 1;
57 # Local Variables:
58 # mode: cperl
59 # cperl-indent-level: 4
60 # fill-column: 100
61 # End:
62 # vim: expandtab shiftwidth=4: