}
$third_section = "";
-if ($opt_EB && $opt_EL) { die "Both -EB and -EL specified\n"; }
-if (!$opt_EB && !$opt_EL && $opt_gdb != 0)
- {
- if ($cpu_defaultendian{$opt_cpu} eq "-EB") { $opt_EB = 1; }
- elsif ($cpu_defaultendian{$opt_cpu} eq "-EL") { $opt_EL = 1; }
- else { warn "Should specify endianness"; &usage; }
- }
-elsif (!$opt_EB && !$opt_EL && !$exec)
- {
- warn "Should specify executable"; &usage;
- }
-if ($opt_EB) { $third_section .= "set cpu endian big\n"; }
-if ($opt_EL) { $third_section .= "set cpu endian little\n"; }
# ----------------------------------------------------------------------------
die "Unknown board `$opt_board'\n";
}
-#
+
+
+# ------------------------------------------------------------------------
+# Handle endianness
+
+if ($opt_EB && $opt_EL) { die "Both -EB and -EL specified\n"; }
+if (!$opt_EB && !$opt_EL && $opt_gdb != 0)
+ {
+ if ($cpu_defaultendian{$opt_cpu} eq "-EB") { $opt_EB = 1; }
+ elsif ($cpu_defaultendian{$opt_cpu} eq "-EL") { $opt_EL = 1; }
+ else { warn "Should specify endianness"; &usage; }
+ }
+elsif (!$opt_EB && !$opt_EL && !$exec)
+ {
+ warn "Should specify executable"; &usage;
+ }
+if ($opt_EB) { $third_section .= "set cpu endian big\n"; }
+if ($opt_EL) { $third_section .= "set cpu endian little\n"; }
+
+
+# ----------------------------------------------------------------------------
+# Misc. logic
+
# this is used by both the arm710t and cogent cma110 boards.
sub configure_uart1_uart2
{
}
-# ----------------------------------------------------------------------------
-# Misc. logic
-
sub configure_harvard_bus
{
my $cpu = $_[0];
}
+
+
if ($opt_cpu eq "arm")
{
$enable_z_packet = "true";
# [,relate=COMPONENT/RELATION] (deprecated)
@spec = split /,/, $spec;
+ # print STDERR "spec=$spec\n";
die "Cannot parse memory region specification `$spec'.\n" if ($#spec < 1);
$base = shift @spec;